[2024-12-25 00:00:05] Production.INFO: next invoice date [2024-12-25 00:00:05] Production.INFO: 2025-01-25 [2024-12-25 00:00:05] Production.INFO: getdaysdiff [2024-12-25 00:00:05] Production.INFO: +31 [2024-12-25 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (111,11,1,31,31,'RMScheduler',2024-12-25 00:00:05,1,0,,,0) [2024-12-25 00:00:05] Production.INFO: next invoice date [2024-12-25 00:00:05] Production.INFO: 2025-01-25 [2024-12-25 00:00:05] Production.INFO: getdaysdiff [2024-12-25 00:00:05] Production.INFO: +31 [2024-12-25 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (110,11,1,31,31,'RMScheduler',2024-12-25 00:00:05,1,0,,,0) [2024-12-25 00:00:05] Production.INFO: next invoice date [2024-12-25 00:00:05] Production.INFO: 2025-01-08 [2024-12-25 00:00:05] Production.INFO: getdaysdiff [2024-12-25 00:00:05] Production.INFO: +14 [2024-12-25 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,31,14,'RMScheduler',2024-12-25 00:00:05,1,0,,,0) [2024-12-25 00:00:05] Production.INFO: next invoice date [2024-12-25 00:00:05] Production.INFO: 2025-01-08 [2024-12-25 00:00:05] Production.INFO: getdaysdiff [2024-12-25 00:00:05] Production.INFO: +14 [2024-12-25 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,31,14,'RMScheduler',2024-12-25 00:00:05,1,0,,,0) [2024-12-25 00:00:05] Production.INFO: next invoice date [2024-12-25 00:00:05] Production.INFO: 2025-01-08 [2024-12-25 00:00:05] Production.INFO: getdaysdiff [2024-12-25 00:00:05] Production.INFO: +14 [2024-12-25 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,31,14,'RMScheduler',2024-12-25 00:00:05,0,0,,,0) [2024-12-25 00:00:05] Production.INFO: next invoice date [2024-12-25 00:00:05] Production.INFO: 2025-01-08 [2024-12-25 00:00:05] Production.INFO: getdaysdiff [2024-12-25 00:00:05] Production.INFO: +14 [2024-12-25 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,31,14,'RMScheduler',2024-12-25 00:00:05,0,0,,,0) [2024-12-25 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:00:06 [end_date_ymd] => 2024-12-25 00:00:06 [RateCDR] => 1 ) [2024-12-25 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-24 21:00:06' and `end` < '2024-12-25 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-25 00:00:20] Production.INFO: count ==1939 [2024-12-25 00:00:21] Production.ERROR: pbx CDR StartTime 2024-12-24 21:00:06 - End Time 2024-12-25 00:00:06 [2024-12-25 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095702', 'tblTempUsageDetail_20' ) start [2024-12-25 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095702', 'tblTempUsageDetail_20' ) end [2024-12-25 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095702', 'tblTempVendorCDR_20' ) start [2024-12-25 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095702', 'tblTempVendorCDR_20' ) end [2024-12-25 00:00:21] Production.INFO: ProcessCDR(1,14095702,1,1,2) [2024-12-25 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095702', 'tblTempUsageDetail_20' ) start [2024-12-25 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095702', 'tblTempUsageDetail_20' ) end [2024-12-25 00:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:00:25] Production.INFO: ==15563== Releasing lock... [2024-12-25 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:00:25] Production.INFO: 43.5 MB #Memory Used# [2024-12-25 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:01:05 [end_date_ymd] => 2024-12-25 00:01:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:01:05' and `end` < '2024-12-25 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-25 00:01:18] Production.INFO: count ==1929 [2024-12-25 00:01:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:01:05 - End Time 2024-12-25 00:01:05 [2024-12-25 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095707', 'tblTempUsageDetail_20' ) start [2024-12-25 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095707', 'tblTempUsageDetail_20' ) end [2024-12-25 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095707', 'tblTempVendorCDR_20' ) start [2024-12-25 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095707', 'tblTempVendorCDR_20' ) end [2024-12-25 00:01:18] Production.INFO: ProcessCDR(1,14095707,1,1,2) [2024-12-25 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095707', 'tblTempUsageDetail_20' ) start [2024-12-25 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095707', 'tblTempUsageDetail_20' ) end [2024-12-25 00:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:01:21] Production.INFO: ==15660== Releasing lock... [2024-12-25 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:01:21] Production.INFO: 43 MB #Memory Used# [2024-12-25 00:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:02:04 [end_date_ymd] => 2024-12-25 00:02:04 [RateCDR] => 1 ) [2024-12-25 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-24 21:02:04' and `end` < '2024-12-25 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-25 00:02:16] Production.INFO: count ==1130 [2024-12-25 00:02:17] Production.ERROR: pbx CDR StartTime 2024-12-24 21:02:04 - End Time 2024-12-25 00:02:04 [2024-12-25 00:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095712', 'tblTempUsageDetail_20' ) start [2024-12-25 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095712', 'tblTempUsageDetail_20' ) end [2024-12-25 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095712', 'tblTempVendorCDR_20' ) start [2024-12-25 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095712', 'tblTempVendorCDR_20' ) end [2024-12-25 00:02:17] Production.INFO: ProcessCDR(1,14095712,1,1,2) [2024-12-25 00:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095712', 'tblTempUsageDetail_20' ) start [2024-12-25 00:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095712', 'tblTempUsageDetail_20' ) end [2024-12-25 00:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:02:20] Production.INFO: ==15736== Releasing lock... [2024-12-25 00:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:02:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:03:05 [end_date_ymd] => 2024-12-25 00:03:05 [RateCDR] => 1 ) [2024-12-25 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:03:05' and `end` < '2024-12-25 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:03:17] Production.INFO: count ==1130 [2024-12-25 00:03:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:03:05 - End Time 2024-12-25 00:03:05 [2024-12-25 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095717', 'tblTempUsageDetail_20' ) start [2024-12-25 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095717', 'tblTempUsageDetail_20' ) end [2024-12-25 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095717', 'tblTempVendorCDR_20' ) start [2024-12-25 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095717', 'tblTempVendorCDR_20' ) end [2024-12-25 00:03:18] Production.INFO: ProcessCDR(1,14095717,1,1,2) [2024-12-25 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095717', 'tblTempUsageDetail_20' ) start [2024-12-25 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095717', 'tblTempUsageDetail_20' ) end [2024-12-25 00:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:03:21] Production.INFO: ==15856== Releasing lock... [2024-12-25 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:03:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:04:05 [end_date_ymd] => 2024-12-25 00:04:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:04:05' and `end` < '2024-12-25 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-25 00:04:18] Production.INFO: count ==1128 [2024-12-25 00:04:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:04:05 - End Time 2024-12-25 00:04:05 [2024-12-25 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095722', 'tblTempUsageDetail_20' ) start [2024-12-25 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095722', 'tblTempUsageDetail_20' ) end [2024-12-25 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095722', 'tblTempVendorCDR_20' ) start [2024-12-25 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095722', 'tblTempVendorCDR_20' ) end [2024-12-25 00:04:18] Production.INFO: ProcessCDR(1,14095722,1,1,2) [2024-12-25 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095722', 'tblTempUsageDetail_20' ) start [2024-12-25 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095722', 'tblTempUsageDetail_20' ) end [2024-12-25 00:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:04:21] Production.INFO: ==15941== Releasing lock... [2024-12-25 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:04:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:05:05 [end_date_ymd] => 2024-12-25 00:05:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:05:05' and `end` < '2024-12-25 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-25 00:05:18] Production.INFO: count ==1129 [2024-12-25 00:05:19] Production.ERROR: pbx CDR StartTime 2024-12-24 21:05:05 - End Time 2024-12-25 00:05:05 [2024-12-25 00:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095727', 'tblTempUsageDetail_20' ) start [2024-12-25 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095727', 'tblTempUsageDetail_20' ) end [2024-12-25 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095727', 'tblTempVendorCDR_20' ) start [2024-12-25 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095727', 'tblTempVendorCDR_20' ) end [2024-12-25 00:05:19] Production.INFO: ProcessCDR(1,14095727,1,1,2) [2024-12-25 00:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095727', 'tblTempUsageDetail_20' ) start [2024-12-25 00:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095727', 'tblTempUsageDetail_20' ) end [2024-12-25 00:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:05:22] Production.INFO: ==16021== Releasing lock... [2024-12-25 00:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:05:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:06:05 [end_date_ymd] => 2024-12-25 00:06:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:06:05' and `end` < '2024-12-25 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-25 00:06:17] Production.INFO: count ==1123 [2024-12-25 00:06:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:06:05 - End Time 2024-12-25 00:06:05 [2024-12-25 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095732', 'tblTempUsageDetail_20' ) start [2024-12-25 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095732', 'tblTempUsageDetail_20' ) end [2024-12-25 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095732', 'tblTempVendorCDR_20' ) start [2024-12-25 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095732', 'tblTempVendorCDR_20' ) end [2024-12-25 00:06:18] Production.INFO: ProcessCDR(1,14095732,1,1,2) [2024-12-25 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095732', 'tblTempUsageDetail_20' ) start [2024-12-25 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095732', 'tblTempUsageDetail_20' ) end [2024-12-25 00:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:06:21] Production.INFO: ==16102== Releasing lock... [2024-12-25 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:06:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:07:05 [end_date_ymd] => 2024-12-25 00:07:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:07:05' and `end` < '2024-12-25 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-25 00:07:18] Production.INFO: count ==1121 [2024-12-25 00:07:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:07:05 - End Time 2024-12-25 00:07:05 [2024-12-25 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095737', 'tblTempUsageDetail_20' ) start [2024-12-25 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095737', 'tblTempUsageDetail_20' ) end [2024-12-25 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095737', 'tblTempVendorCDR_20' ) start [2024-12-25 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095737', 'tblTempVendorCDR_20' ) end [2024-12-25 00:07:18] Production.INFO: ProcessCDR(1,14095737,1,1,2) [2024-12-25 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095737', 'tblTempUsageDetail_20' ) start [2024-12-25 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095737', 'tblTempUsageDetail_20' ) end [2024-12-25 00:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:07:22] Production.INFO: ==16178== Releasing lock... [2024-12-25 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:07:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:08:05 [end_date_ymd] => 2024-12-25 00:08:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:08:05' and `end` < '2024-12-25 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-25 00:08:18] Production.INFO: count ==1119 [2024-12-25 00:08:19] Production.ERROR: pbx CDR StartTime 2024-12-24 21:08:05 - End Time 2024-12-25 00:08:05 [2024-12-25 00:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095742', 'tblTempUsageDetail_20' ) start [2024-12-25 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095742', 'tblTempUsageDetail_20' ) end [2024-12-25 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095742', 'tblTempVendorCDR_20' ) start [2024-12-25 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095742', 'tblTempVendorCDR_20' ) end [2024-12-25 00:08:19] Production.INFO: ProcessCDR(1,14095742,1,1,2) [2024-12-25 00:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095742', 'tblTempUsageDetail_20' ) start [2024-12-25 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095742', 'tblTempUsageDetail_20' ) end [2024-12-25 00:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:08:22] Production.INFO: ==16263== Releasing lock... [2024-12-25 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:08:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 00:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:09:04 [end_date_ymd] => 2024-12-25 00:09:04 [RateCDR] => 1 ) [2024-12-25 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-24 21:09:04' and `end` < '2024-12-25 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-25 00:09:17] Production.INFO: count ==1118 [2024-12-25 00:09:17] Production.ERROR: pbx CDR StartTime 2024-12-24 21:09:04 - End Time 2024-12-25 00:09:04 [2024-12-25 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095747', 'tblTempUsageDetail_20' ) start [2024-12-25 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095747', 'tblTempUsageDetail_20' ) end [2024-12-25 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095747', 'tblTempVendorCDR_20' ) start [2024-12-25 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095747', 'tblTempVendorCDR_20' ) end [2024-12-25 00:09:17] Production.INFO: ProcessCDR(1,14095747,1,1,2) [2024-12-25 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095747', 'tblTempUsageDetail_20' ) start [2024-12-25 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095747', 'tblTempUsageDetail_20' ) end [2024-12-25 00:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:09:21] Production.INFO: ==16349== Releasing lock... [2024-12-25 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:09:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:10:06 [end_date_ymd] => 2024-12-25 00:10:06 [RateCDR] => 1 ) [2024-12-25 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:10:06' and `end` < '2024-12-25 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:10:18] Production.INFO: count ==1126 [2024-12-25 00:10:19] Production.ERROR: pbx CDR StartTime 2024-12-24 21:10:06 - End Time 2024-12-25 00:10:06 [2024-12-25 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095753', 'tblTempUsageDetail_20' ) start [2024-12-25 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095753', 'tblTempUsageDetail_20' ) end [2024-12-25 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095753', 'tblTempVendorCDR_20' ) start [2024-12-25 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095753', 'tblTempVendorCDR_20' ) end [2024-12-25 00:10:19] Production.INFO: ProcessCDR(1,14095753,1,1,2) [2024-12-25 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095753', 'tblTempUsageDetail_20' ) start [2024-12-25 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095753', 'tblTempUsageDetail_20' ) end [2024-12-25 00:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:10:22] Production.INFO: ==16451== Releasing lock... [2024-12-25 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:10:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:11:04 [end_date_ymd] => 2024-12-25 00:11:04 [RateCDR] => 1 ) [2024-12-25 00:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:11:04' and `end` < '2024-12-25 00:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:11:17] Production.INFO: count ==1147 [2024-12-25 00:11:17] Production.ERROR: pbx CDR StartTime 2024-12-24 21:11:04 - End Time 2024-12-25 00:11:04 [2024-12-25 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095758', 'tblTempUsageDetail_20' ) start [2024-12-25 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095758', 'tblTempUsageDetail_20' ) end [2024-12-25 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095758', 'tblTempVendorCDR_20' ) start [2024-12-25 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095758', 'tblTempVendorCDR_20' ) end [2024-12-25 00:11:17] Production.INFO: ProcessCDR(1,14095758,1,1,2) [2024-12-25 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095758', 'tblTempUsageDetail_20' ) start [2024-12-25 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095758', 'tblTempUsageDetail_20' ) end [2024-12-25 00:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:11:21] Production.INFO: ==16547== Releasing lock... [2024-12-25 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:11:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:12:05 [end_date_ymd] => 2024-12-25 00:12:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:12:05' and `end` < '2024-12-25 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-25 00:12:18] Production.INFO: count ==1148 [2024-12-25 00:12:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:12:05 - End Time 2024-12-25 00:12:05 [2024-12-25 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095763', 'tblTempUsageDetail_20' ) start [2024-12-25 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095763', 'tblTempUsageDetail_20' ) end [2024-12-25 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095763', 'tblTempVendorCDR_20' ) start [2024-12-25 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095763', 'tblTempVendorCDR_20' ) end [2024-12-25 00:12:18] Production.INFO: ProcessCDR(1,14095763,1,1,2) [2024-12-25 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095763', 'tblTempUsageDetail_20' ) start [2024-12-25 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095763', 'tblTempUsageDetail_20' ) end [2024-12-25 00:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:12:22] Production.INFO: ==16648== Releasing lock... [2024-12-25 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:12:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:13:04 [end_date_ymd] => 2024-12-25 00:13:04 [RateCDR] => 1 ) [2024-12-25 00:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:13:04' and `end` < '2024-12-25 00:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:13:17] Production.INFO: count ==1146 [2024-12-25 00:13:17] Production.ERROR: pbx CDR StartTime 2024-12-24 21:13:04 - End Time 2024-12-25 00:13:04 [2024-12-25 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095768', 'tblTempUsageDetail_20' ) start [2024-12-25 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095768', 'tblTempUsageDetail_20' ) end [2024-12-25 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095768', 'tblTempVendorCDR_20' ) start [2024-12-25 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095768', 'tblTempVendorCDR_20' ) end [2024-12-25 00:13:17] Production.INFO: ProcessCDR(1,14095768,1,1,2) [2024-12-25 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095768', 'tblTempUsageDetail_20' ) start [2024-12-25 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095768', 'tblTempUsageDetail_20' ) end [2024-12-25 00:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:13:21] Production.INFO: ==16755== Releasing lock... [2024-12-25 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:13:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:14:05 [end_date_ymd] => 2024-12-25 00:14:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:14:05' and `end` < '2024-12-25 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-25 00:14:18] Production.INFO: count ==1148 [2024-12-25 00:14:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:14:05 - End Time 2024-12-25 00:14:05 [2024-12-25 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095773', 'tblTempUsageDetail_20' ) start [2024-12-25 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095773', 'tblTempUsageDetail_20' ) end [2024-12-25 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095773', 'tblTempVendorCDR_20' ) start [2024-12-25 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095773', 'tblTempVendorCDR_20' ) end [2024-12-25 00:14:18] Production.INFO: ProcessCDR(1,14095773,1,1,2) [2024-12-25 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095773', 'tblTempUsageDetail_20' ) start [2024-12-25 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095773', 'tblTempUsageDetail_20' ) end [2024-12-25 00:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:14:21] Production.INFO: ==16856== Releasing lock... [2024-12-25 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:14:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:15:04 [end_date_ymd] => 2024-12-25 00:15:04 [RateCDR] => 1 ) [2024-12-25 00: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-24 21:15:04' and `end` < '2024-12-25 00: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-25 00:15:17] Production.INFO: count ==1145 [2024-12-25 00:15:17] Production.ERROR: pbx CDR StartTime 2024-12-24 21:15:04 - End Time 2024-12-25 00:15:04 [2024-12-25 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095778', 'tblTempUsageDetail_20' ) start [2024-12-25 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095778', 'tblTempUsageDetail_20' ) end [2024-12-25 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095778', 'tblTempVendorCDR_20' ) start [2024-12-25 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095778', 'tblTempVendorCDR_20' ) end [2024-12-25 00:15:17] Production.INFO: ProcessCDR(1,14095778,1,1,2) [2024-12-25 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095778', 'tblTempUsageDetail_20' ) start [2024-12-25 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095778', 'tblTempUsageDetail_20' ) end [2024-12-25 00:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:15:20] Production.INFO: ==16959== Releasing lock... [2024-12-25 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:15:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:16:05 [end_date_ymd] => 2024-12-25 00:16:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:16:05' and `end` < '2024-12-25 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-25 00:16:17] Production.INFO: count ==1145 [2024-12-25 00:16:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:16:05 - End Time 2024-12-25 00:16:05 [2024-12-25 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095783', 'tblTempUsageDetail_20' ) start [2024-12-25 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095783', 'tblTempUsageDetail_20' ) end [2024-12-25 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095783', 'tblTempVendorCDR_20' ) start [2024-12-25 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095783', 'tblTempVendorCDR_20' ) end [2024-12-25 00:16:18] Production.INFO: ProcessCDR(1,14095783,1,1,2) [2024-12-25 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095783', 'tblTempUsageDetail_20' ) start [2024-12-25 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095783', 'tblTempUsageDetail_20' ) end [2024-12-25 00:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:16:21] Production.INFO: ==17066== Releasing lock... [2024-12-25 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:16:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:17:05 [end_date_ymd] => 2024-12-25 00:17:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:17:05' and `end` < '2024-12-25 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-25 00:17:17] Production.INFO: count ==1145 [2024-12-25 00:17:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:17:05 - End Time 2024-12-25 00:17:05 [2024-12-25 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095788', 'tblTempUsageDetail_20' ) start [2024-12-25 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095788', 'tblTempUsageDetail_20' ) end [2024-12-25 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095788', 'tblTempVendorCDR_20' ) start [2024-12-25 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095788', 'tblTempVendorCDR_20' ) end [2024-12-25 00:17:18] Production.INFO: ProcessCDR(1,14095788,1,1,2) [2024-12-25 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095788', 'tblTempUsageDetail_20' ) start [2024-12-25 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095788', 'tblTempUsageDetail_20' ) end [2024-12-25 00:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:17:21] Production.INFO: ==17177== Releasing lock... [2024-12-25 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:17:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:18:05 [end_date_ymd] => 2024-12-25 00:18:05 [RateCDR] => 1 ) [2024-12-25 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:18:05' and `end` < '2024-12-25 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:18:17] Production.INFO: count ==1141 [2024-12-25 00:18:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:18:05 - End Time 2024-12-25 00:18:05 [2024-12-25 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095793', 'tblTempUsageDetail_20' ) start [2024-12-25 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095793', 'tblTempUsageDetail_20' ) end [2024-12-25 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095793', 'tblTempVendorCDR_20' ) start [2024-12-25 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095793', 'tblTempVendorCDR_20' ) end [2024-12-25 00:18:18] Production.INFO: ProcessCDR(1,14095793,1,1,2) [2024-12-25 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095793', 'tblTempUsageDetail_20' ) start [2024-12-25 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095793', 'tblTempUsageDetail_20' ) end [2024-12-25 00:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:18:21] Production.INFO: ==17271== Releasing lock... [2024-12-25 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:18:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:19:05 [end_date_ymd] => 2024-12-25 00:19:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:19:05' and `end` < '2024-12-25 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-25 00:19:18] Production.INFO: count ==1132 [2024-12-25 00:19:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:19:05 - End Time 2024-12-25 00:19:05 [2024-12-25 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095798', 'tblTempUsageDetail_20' ) start [2024-12-25 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095798', 'tblTempUsageDetail_20' ) end [2024-12-25 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095798', 'tblTempVendorCDR_20' ) start [2024-12-25 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095798', 'tblTempVendorCDR_20' ) end [2024-12-25 00:19:18] Production.INFO: ProcessCDR(1,14095798,1,1,2) [2024-12-25 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095798', 'tblTempUsageDetail_20' ) start [2024-12-25 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095798', 'tblTempUsageDetail_20' ) end [2024-12-25 00:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:19:22] Production.INFO: ==17413== Releasing lock... [2024-12-25 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:19:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:20:05 [end_date_ymd] => 2024-12-25 00:20:05 [RateCDR] => 1 ) [2024-12-25 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:20:05' and `end` < '2024-12-25 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:20:18] Production.INFO: count ==1128 [2024-12-25 00:20:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:20:05 - End Time 2024-12-25 00:20:05 [2024-12-25 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095804', 'tblTempUsageDetail_20' ) start [2024-12-25 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095804', 'tblTempUsageDetail_20' ) end [2024-12-25 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095804', 'tblTempVendorCDR_20' ) start [2024-12-25 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095804', 'tblTempVendorCDR_20' ) end [2024-12-25 00:20:18] Production.INFO: ProcessCDR(1,14095804,1,1,2) [2024-12-25 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095804', 'tblTempUsageDetail_20' ) start [2024-12-25 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095804', 'tblTempUsageDetail_20' ) end [2024-12-25 00:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:20:22] Production.INFO: ==17504== Releasing lock... [2024-12-25 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:20:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:21:05 [end_date_ymd] => 2024-12-25 00:21:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:21:05' and `end` < '2024-12-25 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-25 00:21:18] Production.INFO: count ==1151 [2024-12-25 00:21:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:21:05 - End Time 2024-12-25 00:21:05 [2024-12-25 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095809', 'tblTempUsageDetail_20' ) start [2024-12-25 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095809', 'tblTempUsageDetail_20' ) end [2024-12-25 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095809', 'tblTempVendorCDR_20' ) start [2024-12-25 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095809', 'tblTempVendorCDR_20' ) end [2024-12-25 00:21:18] Production.INFO: ProcessCDR(1,14095809,1,1,2) [2024-12-25 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095809', 'tblTempUsageDetail_20' ) start [2024-12-25 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095809', 'tblTempUsageDetail_20' ) end [2024-12-25 00:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:21:21] Production.INFO: ==17612== Releasing lock... [2024-12-25 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:21:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:22:05 [end_date_ymd] => 2024-12-25 00:22:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:22:05' and `end` < '2024-12-25 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-25 00:22:18] Production.INFO: count ==1142 [2024-12-25 00:22:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:22:05 - End Time 2024-12-25 00:22:05 [2024-12-25 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095814', 'tblTempUsageDetail_20' ) start [2024-12-25 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095814', 'tblTempUsageDetail_20' ) end [2024-12-25 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095814', 'tblTempVendorCDR_20' ) start [2024-12-25 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095814', 'tblTempVendorCDR_20' ) end [2024-12-25 00:22:18] Production.INFO: ProcessCDR(1,14095814,1,1,2) [2024-12-25 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095814', 'tblTempUsageDetail_20' ) start [2024-12-25 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095814', 'tblTempUsageDetail_20' ) end [2024-12-25 00:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:22:22] Production.INFO: ==17701== Releasing lock... [2024-12-25 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:22:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:23:05 [end_date_ymd] => 2024-12-25 00:23:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:23:05' and `end` < '2024-12-25 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-25 00:23:18] Production.INFO: count ==1138 [2024-12-25 00:23:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:23:05 - End Time 2024-12-25 00:23:05 [2024-12-25 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095819', 'tblTempUsageDetail_20' ) start [2024-12-25 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095819', 'tblTempUsageDetail_20' ) end [2024-12-25 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095819', 'tblTempVendorCDR_20' ) start [2024-12-25 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095819', 'tblTempVendorCDR_20' ) end [2024-12-25 00:23:18] Production.INFO: ProcessCDR(1,14095819,1,1,2) [2024-12-25 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095819', 'tblTempUsageDetail_20' ) start [2024-12-25 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095819', 'tblTempUsageDetail_20' ) end [2024-12-25 00:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:23:21] Production.INFO: ==17799== Releasing lock... [2024-12-25 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:23:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:24:05 [end_date_ymd] => 2024-12-25 00:24:05 [RateCDR] => 1 ) [2024-12-25 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:24:05' and `end` < '2024-12-25 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:24:18] Production.INFO: count ==1135 [2024-12-25 00:24:19] Production.ERROR: pbx CDR StartTime 2024-12-24 21:24:05 - End Time 2024-12-25 00:24:05 [2024-12-25 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095824', 'tblTempUsageDetail_20' ) start [2024-12-25 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095824', 'tblTempUsageDetail_20' ) end [2024-12-25 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095824', 'tblTempVendorCDR_20' ) start [2024-12-25 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095824', 'tblTempVendorCDR_20' ) end [2024-12-25 00:24:19] Production.INFO: ProcessCDR(1,14095824,1,1,2) [2024-12-25 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095824', 'tblTempUsageDetail_20' ) start [2024-12-25 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095824', 'tblTempUsageDetail_20' ) end [2024-12-25 00:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:24:22] Production.INFO: ==17895== Releasing lock... [2024-12-25 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:24:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:25:06 [end_date_ymd] => 2024-12-25 00:25:06 [RateCDR] => 1 ) [2024-12-25 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:25:06' and `end` < '2024-12-25 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:25:18] Production.INFO: count ==1134 [2024-12-25 00:25:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:25:06 - End Time 2024-12-25 00:25:06 [2024-12-25 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095829', 'tblTempUsageDetail_20' ) start [2024-12-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095829', 'tblTempUsageDetail_20' ) end [2024-12-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095829', 'tblTempVendorCDR_20' ) start [2024-12-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095829', 'tblTempVendorCDR_20' ) end [2024-12-25 00:25:18] Production.INFO: ProcessCDR(1,14095829,1,1,2) [2024-12-25 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095829', 'tblTempUsageDetail_20' ) start [2024-12-25 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095829', 'tblTempUsageDetail_20' ) end [2024-12-25 00:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:25:22] Production.INFO: ==17990== Releasing lock... [2024-12-25 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:25:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:26:05 [end_date_ymd] => 2024-12-25 00:26:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:26:05' and `end` < '2024-12-25 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-25 00:26:18] Production.INFO: count ==1134 [2024-12-25 00:26:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:26:05 - End Time 2024-12-25 00:26:05 [2024-12-25 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095834', 'tblTempUsageDetail_20' ) start [2024-12-25 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095834', 'tblTempUsageDetail_20' ) end [2024-12-25 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095834', 'tblTempVendorCDR_20' ) start [2024-12-25 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095834', 'tblTempVendorCDR_20' ) end [2024-12-25 00:26:18] Production.INFO: ProcessCDR(1,14095834,1,1,2) [2024-12-25 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095834', 'tblTempUsageDetail_20' ) start [2024-12-25 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095834', 'tblTempUsageDetail_20' ) end [2024-12-25 00:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:26:22] Production.INFO: ==18078== Releasing lock... [2024-12-25 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:26:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:27:05 [end_date_ymd] => 2024-12-25 00:27:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:27:05' and `end` < '2024-12-25 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-25 00:27:18] Production.INFO: count ==1133 [2024-12-25 00:27:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:27:05 - End Time 2024-12-25 00:27:05 [2024-12-25 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095839', 'tblTempUsageDetail_20' ) start [2024-12-25 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095839', 'tblTempUsageDetail_20' ) end [2024-12-25 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095839', 'tblTempVendorCDR_20' ) start [2024-12-25 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095839', 'tblTempVendorCDR_20' ) end [2024-12-25 00:27:18] Production.INFO: ProcessCDR(1,14095839,1,1,2) [2024-12-25 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095839', 'tblTempUsageDetail_20' ) start [2024-12-25 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095839', 'tblTempUsageDetail_20' ) end [2024-12-25 00:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:27:21] Production.INFO: ==18175== Releasing lock... [2024-12-25 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:27:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:28:04 [end_date_ymd] => 2024-12-25 00:28:04 [RateCDR] => 1 ) [2024-12-25 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-24 21:28:04' and `end` < '2024-12-25 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-25 00:28:17] Production.INFO: count ==1132 [2024-12-25 00:28:17] Production.ERROR: pbx CDR StartTime 2024-12-24 21:28:04 - End Time 2024-12-25 00:28:04 [2024-12-25 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095844', 'tblTempUsageDetail_20' ) start [2024-12-25 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095844', 'tblTempUsageDetail_20' ) end [2024-12-25 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095844', 'tblTempVendorCDR_20' ) start [2024-12-25 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095844', 'tblTempVendorCDR_20' ) end [2024-12-25 00:28:17] Production.INFO: ProcessCDR(1,14095844,1,1,2) [2024-12-25 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095844', 'tblTempUsageDetail_20' ) start [2024-12-25 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095844', 'tblTempUsageDetail_20' ) end [2024-12-25 00:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:28:20] Production.INFO: ==18261== Releasing lock... [2024-12-25 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:28:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:29:05 [end_date_ymd] => 2024-12-25 00:29:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:29:05' and `end` < '2024-12-25 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-25 00:29:18] Production.INFO: count ==1132 [2024-12-25 00:29:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:29:05 - End Time 2024-12-25 00:29:05 [2024-12-25 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095849', 'tblTempUsageDetail_20' ) start [2024-12-25 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095849', 'tblTempUsageDetail_20' ) end [2024-12-25 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095849', 'tblTempVendorCDR_20' ) start [2024-12-25 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095849', 'tblTempVendorCDR_20' ) end [2024-12-25 00:29:18] Production.INFO: ProcessCDR(1,14095849,1,1,2) [2024-12-25 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095849', 'tblTempUsageDetail_20' ) start [2024-12-25 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095849', 'tblTempUsageDetail_20' ) end [2024-12-25 00:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:29:21] Production.INFO: ==18350== Releasing lock... [2024-12-25 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:29:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:30:05 [end_date_ymd] => 2024-12-25 00:30:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:30:05' and `end` < '2024-12-25 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-25 00:30:18] Production.INFO: count ==1140 [2024-12-25 00:30:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:30:05 - End Time 2024-12-25 00:30:05 [2024-12-25 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095855', 'tblTempUsageDetail_20' ) start [2024-12-25 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095855', 'tblTempUsageDetail_20' ) end [2024-12-25 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095855', 'tblTempVendorCDR_20' ) start [2024-12-25 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095855', 'tblTempVendorCDR_20' ) end [2024-12-25 00:30:18] Production.INFO: ProcessCDR(1,14095855,1,1,2) [2024-12-25 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095855', 'tblTempUsageDetail_20' ) start [2024-12-25 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095855', 'tblTempUsageDetail_20' ) end [2024-12-25 00:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:30:21] Production.INFO: ==18443== Releasing lock... [2024-12-25 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:30:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:31:05 [end_date_ymd] => 2024-12-25 00:31:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:31:05' and `end` < '2024-12-25 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-25 00:31:17] Production.INFO: count ==1159 [2024-12-25 00:31:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:31:05 - End Time 2024-12-25 00:31:05 [2024-12-25 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095860', 'tblTempUsageDetail_20' ) start [2024-12-25 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095860', 'tblTempUsageDetail_20' ) end [2024-12-25 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095860', 'tblTempVendorCDR_20' ) start [2024-12-25 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095860', 'tblTempVendorCDR_20' ) end [2024-12-25 00:31:18] Production.INFO: ProcessCDR(1,14095860,1,1,2) [2024-12-25 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095860', 'tblTempUsageDetail_20' ) start [2024-12-25 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095860', 'tblTempUsageDetail_20' ) end [2024-12-25 00:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:31:21] Production.INFO: ==18538== Releasing lock... [2024-12-25 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:31:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:32:05 [end_date_ymd] => 2024-12-25 00:32:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:32:05' and `end` < '2024-12-25 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-25 00:32:17] Production.INFO: count ==1156 [2024-12-25 00:32:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:32:05 - End Time 2024-12-25 00:32:05 [2024-12-25 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095865', 'tblTempUsageDetail_20' ) start [2024-12-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095865', 'tblTempUsageDetail_20' ) end [2024-12-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095865', 'tblTempVendorCDR_20' ) start [2024-12-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095865', 'tblTempVendorCDR_20' ) end [2024-12-25 00:32:18] Production.INFO: ProcessCDR(1,14095865,1,1,2) [2024-12-25 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095865', 'tblTempUsageDetail_20' ) start [2024-12-25 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095865', 'tblTempUsageDetail_20' ) end [2024-12-25 00:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:32:21] Production.INFO: ==18635== Releasing lock... [2024-12-25 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:32:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:33:05 [end_date_ymd] => 2024-12-25 00:33:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:33:05' and `end` < '2024-12-25 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-25 00:33:17] Production.INFO: count ==1158 [2024-12-25 00:33:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:33:05 - End Time 2024-12-25 00:33:05 [2024-12-25 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095870', 'tblTempUsageDetail_20' ) start [2024-12-25 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095870', 'tblTempUsageDetail_20' ) end [2024-12-25 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095870', 'tblTempVendorCDR_20' ) start [2024-12-25 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095870', 'tblTempVendorCDR_20' ) end [2024-12-25 00:33:18] Production.INFO: ProcessCDR(1,14095870,1,1,2) [2024-12-25 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095870', 'tblTempUsageDetail_20' ) start [2024-12-25 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095870', 'tblTempUsageDetail_20' ) end [2024-12-25 00:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:33:22] Production.INFO: ==18728== Releasing lock... [2024-12-25 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:33:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:34:05 [end_date_ymd] => 2024-12-25 00:34:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:34:05' and `end` < '2024-12-25 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-25 00:34:17] Production.INFO: count ==1155 [2024-12-25 00:34:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:34:05 - End Time 2024-12-25 00:34:05 [2024-12-25 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095875', 'tblTempUsageDetail_20' ) start [2024-12-25 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095875', 'tblTempUsageDetail_20' ) end [2024-12-25 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095875', 'tblTempVendorCDR_20' ) start [2024-12-25 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095875', 'tblTempVendorCDR_20' ) end [2024-12-25 00:34:18] Production.INFO: ProcessCDR(1,14095875,1,1,2) [2024-12-25 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095875', 'tblTempUsageDetail_20' ) start [2024-12-25 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095875', 'tblTempUsageDetail_20' ) end [2024-12-25 00:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:34:21] Production.INFO: ==18861== Releasing lock... [2024-12-25 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:34:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:35:05 [end_date_ymd] => 2024-12-25 00:35:05 [RateCDR] => 1 ) [2024-12-25 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:35:05' and `end` < '2024-12-25 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:35:17] Production.INFO: count ==1153 [2024-12-25 00:35:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:35:05 - End Time 2024-12-25 00:35:05 [2024-12-25 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095880', 'tblTempUsageDetail_20' ) start [2024-12-25 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095880', 'tblTempUsageDetail_20' ) end [2024-12-25 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095880', 'tblTempVendorCDR_20' ) start [2024-12-25 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095880', 'tblTempVendorCDR_20' ) end [2024-12-25 00:35:18] Production.INFO: ProcessCDR(1,14095880,1,1,2) [2024-12-25 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095880', 'tblTempUsageDetail_20' ) start [2024-12-25 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095880', 'tblTempUsageDetail_20' ) end [2024-12-25 00:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:35:21] Production.INFO: ==18954== Releasing lock... [2024-12-25 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:35:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:36:05 [end_date_ymd] => 2024-12-25 00:36:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:36:05' and `end` < '2024-12-25 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-25 00:36:17] Production.INFO: count ==1150 [2024-12-25 00:36:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:36:05 - End Time 2024-12-25 00:36:05 [2024-12-25 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095885', 'tblTempUsageDetail_20' ) start [2024-12-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095885', 'tblTempUsageDetail_20' ) end [2024-12-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095885', 'tblTempVendorCDR_20' ) start [2024-12-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095885', 'tblTempVendorCDR_20' ) end [2024-12-25 00:36:18] Production.INFO: ProcessCDR(1,14095885,1,1,2) [2024-12-25 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095885', 'tblTempUsageDetail_20' ) start [2024-12-25 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095885', 'tblTempUsageDetail_20' ) end [2024-12-25 00:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:36:21] Production.INFO: ==19044== Releasing lock... [2024-12-25 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:36:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:37:04 [end_date_ymd] => 2024-12-25 00:37:04 [RateCDR] => 1 ) [2024-12-25 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-24 21:37:04' and `end` < '2024-12-25 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-25 00:37:17] Production.INFO: count ==1147 [2024-12-25 00:37:17] Production.ERROR: pbx CDR StartTime 2024-12-24 21:37:04 - End Time 2024-12-25 00:37:04 [2024-12-25 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095890', 'tblTempUsageDetail_20' ) start [2024-12-25 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095890', 'tblTempUsageDetail_20' ) end [2024-12-25 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095890', 'tblTempVendorCDR_20' ) start [2024-12-25 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095890', 'tblTempVendorCDR_20' ) end [2024-12-25 00:37:17] Production.INFO: ProcessCDR(1,14095890,1,1,2) [2024-12-25 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095890', 'tblTempUsageDetail_20' ) start [2024-12-25 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095890', 'tblTempUsageDetail_20' ) end [2024-12-25 00:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:37:22] Production.INFO: ==19137== Releasing lock... [2024-12-25 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:37:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:38:05 [end_date_ymd] => 2024-12-25 00:38:05 [RateCDR] => 1 ) [2024-12-25 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:38:05' and `end` < '2024-12-25 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:38:17] Production.INFO: count ==1142 [2024-12-25 00:38:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:38:05 - End Time 2024-12-25 00:38:05 [2024-12-25 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095895', 'tblTempUsageDetail_20' ) start [2024-12-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095895', 'tblTempUsageDetail_20' ) end [2024-12-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095895', 'tblTempVendorCDR_20' ) start [2024-12-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095895', 'tblTempVendorCDR_20' ) end [2024-12-25 00:38:18] Production.INFO: ProcessCDR(1,14095895,1,1,2) [2024-12-25 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095895', 'tblTempUsageDetail_20' ) start [2024-12-25 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095895', 'tblTempUsageDetail_20' ) end [2024-12-25 00:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:38:23] Production.INFO: ==19228== Releasing lock... [2024-12-25 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:38:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:39:05 [end_date_ymd] => 2024-12-25 00:39:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:39:05' and `end` < '2024-12-25 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-25 00:39:17] Production.INFO: count ==1136 [2024-12-25 00:39:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:39:05 - End Time 2024-12-25 00:39:05 [2024-12-25 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095899', 'tblTempUsageDetail_20' ) start [2024-12-25 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095899', 'tblTempUsageDetail_20' ) end [2024-12-25 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095899', 'tblTempVendorCDR_20' ) start [2024-12-25 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095899', 'tblTempVendorCDR_20' ) end [2024-12-25 00:39:18] Production.INFO: ProcessCDR(1,14095899,1,1,2) [2024-12-25 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095899', 'tblTempUsageDetail_20' ) start [2024-12-25 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095899', 'tblTempUsageDetail_20' ) end [2024-12-25 00:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:39:21] Production.INFO: ==19323== Releasing lock... [2024-12-25 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:39:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:40:06 [end_date_ymd] => 2024-12-25 00:40:06 [RateCDR] => 1 ) [2024-12-25 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:40:06' and `end` < '2024-12-25 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:40:18] Production.INFO: count ==1139 [2024-12-25 00:40:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:40:06 - End Time 2024-12-25 00:40:06 [2024-12-25 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095906', 'tblTempUsageDetail_20' ) start [2024-12-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095906', 'tblTempUsageDetail_20' ) end [2024-12-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095906', 'tblTempVendorCDR_20' ) start [2024-12-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095906', 'tblTempVendorCDR_20' ) end [2024-12-25 00:40:18] Production.INFO: ProcessCDR(1,14095906,1,1,2) [2024-12-25 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095906', 'tblTempUsageDetail_20' ) start [2024-12-25 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095906', 'tblTempUsageDetail_20' ) end [2024-12-25 00:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:40:23] Production.INFO: ==19413== Releasing lock... [2024-12-25 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:40:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:41:05 [end_date_ymd] => 2024-12-25 00:41:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:41:05' and `end` < '2024-12-25 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-25 00:41:18] Production.INFO: count ==1139 [2024-12-25 00:41:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:41:05 - End Time 2024-12-25 00:41:05 [2024-12-25 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095911', 'tblTempUsageDetail_20' ) start [2024-12-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095911', 'tblTempUsageDetail_20' ) end [2024-12-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095911', 'tblTempVendorCDR_20' ) start [2024-12-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095911', 'tblTempVendorCDR_20' ) end [2024-12-25 00:41:18] Production.INFO: ProcessCDR(1,14095911,1,1,2) [2024-12-25 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095911', 'tblTempUsageDetail_20' ) start [2024-12-25 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095911', 'tblTempUsageDetail_20' ) end [2024-12-25 00:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:41:21] Production.INFO: ==19517== Releasing lock... [2024-12-25 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:41:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:42:05 [end_date_ymd] => 2024-12-25 00:42:05 [RateCDR] => 1 ) [2024-12-25 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:42:05' and `end` < '2024-12-25 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:42:17] Production.INFO: count ==1128 [2024-12-25 00:42:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:42:05 - End Time 2024-12-25 00:42:05 [2024-12-25 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095916', 'tblTempUsageDetail_20' ) start [2024-12-25 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095916', 'tblTempUsageDetail_20' ) end [2024-12-25 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095916', 'tblTempVendorCDR_20' ) start [2024-12-25 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095916', 'tblTempVendorCDR_20' ) end [2024-12-25 00:42:18] Production.INFO: ProcessCDR(1,14095916,1,1,2) [2024-12-25 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095916', 'tblTempUsageDetail_20' ) start [2024-12-25 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095916', 'tblTempUsageDetail_20' ) end [2024-12-25 00:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:42:21] Production.INFO: ==19605== Releasing lock... [2024-12-25 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:42:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:43:05 [end_date_ymd] => 2024-12-25 00:43:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:43:05' and `end` < '2024-12-25 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-25 00:43:18] Production.INFO: count ==1131 [2024-12-25 00:43:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:43:05 - End Time 2024-12-25 00:43:05 [2024-12-25 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095921', 'tblTempUsageDetail_20' ) start [2024-12-25 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095921', 'tblTempUsageDetail_20' ) end [2024-12-25 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095921', 'tblTempVendorCDR_20' ) start [2024-12-25 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095921', 'tblTempVendorCDR_20' ) end [2024-12-25 00:43:18] Production.INFO: ProcessCDR(1,14095921,1,1,2) [2024-12-25 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095921', 'tblTempUsageDetail_20' ) start [2024-12-25 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095921', 'tblTempUsageDetail_20' ) end [2024-12-25 00:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:43:23] Production.INFO: ==19701== Releasing lock... [2024-12-25 00:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:43:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:44:04 [end_date_ymd] => 2024-12-25 00:44:04 [RateCDR] => 1 ) [2024-12-25 00:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:44:04' and `end` < '2024-12-25 00:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:44:17] Production.INFO: count ==1139 [2024-12-25 00:44:17] Production.ERROR: pbx CDR StartTime 2024-12-24 21:44:04 - End Time 2024-12-25 00:44:04 [2024-12-25 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095926', 'tblTempUsageDetail_20' ) start [2024-12-25 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095926', 'tblTempUsageDetail_20' ) end [2024-12-25 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095926', 'tblTempVendorCDR_20' ) start [2024-12-25 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095926', 'tblTempVendorCDR_20' ) end [2024-12-25 00:44:17] Production.INFO: ProcessCDR(1,14095926,1,1,2) [2024-12-25 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095926', 'tblTempUsageDetail_20' ) start [2024-12-25 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095926', 'tblTempUsageDetail_20' ) end [2024-12-25 00:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:44:22] Production.INFO: ==19784== Releasing lock... [2024-12-25 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:44:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:45:05 [end_date_ymd] => 2024-12-25 00:45:05 [RateCDR] => 1 ) [2024-12-25 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:45:05' and `end` < '2024-12-25 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:45:17] Production.INFO: count ==1142 [2024-12-25 00:45:17] Production.ERROR: pbx CDR StartTime 2024-12-24 21:45:05 - End Time 2024-12-25 00:45:05 [2024-12-25 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095931', 'tblTempUsageDetail_20' ) start [2024-12-25 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095931', 'tblTempUsageDetail_20' ) end [2024-12-25 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095931', 'tblTempVendorCDR_20' ) start [2024-12-25 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095931', 'tblTempVendorCDR_20' ) end [2024-12-25 00:45:17] Production.INFO: ProcessCDR(1,14095931,1,1,2) [2024-12-25 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095931', 'tblTempUsageDetail_20' ) start [2024-12-25 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095931', 'tblTempUsageDetail_20' ) end [2024-12-25 00:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:45:22] Production.INFO: ==19864== Releasing lock... [2024-12-25 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:45:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:46:05 [end_date_ymd] => 2024-12-25 00:46:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:46:05' and `end` < '2024-12-25 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-25 00:46:17] Production.INFO: count ==1151 [2024-12-25 00:46:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:46:05 - End Time 2024-12-25 00:46:05 [2024-12-25 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095936', 'tblTempUsageDetail_20' ) start [2024-12-25 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095936', 'tblTempUsageDetail_20' ) end [2024-12-25 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095936', 'tblTempVendorCDR_20' ) start [2024-12-25 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095936', 'tblTempVendorCDR_20' ) end [2024-12-25 00:46:18] Production.INFO: ProcessCDR(1,14095936,1,1,2) [2024-12-25 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095936', 'tblTempUsageDetail_20' ) start [2024-12-25 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095936', 'tblTempUsageDetail_20' ) end [2024-12-25 00:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:46:23] Production.INFO: ==19949== Releasing lock... [2024-12-25 00:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:46:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:47:05 [end_date_ymd] => 2024-12-25 00:47:05 [RateCDR] => 1 ) [2024-12-25 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:47:05' and `end` < '2024-12-25 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:47:17] Production.INFO: count ==1146 [2024-12-25 00:47:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:47:05 - End Time 2024-12-25 00:47:05 [2024-12-25 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095941', 'tblTempUsageDetail_20' ) start [2024-12-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095941', 'tblTempUsageDetail_20' ) end [2024-12-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095941', 'tblTempVendorCDR_20' ) start [2024-12-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095941', 'tblTempVendorCDR_20' ) end [2024-12-25 00:47:18] Production.INFO: ProcessCDR(1,14095941,1,1,2) [2024-12-25 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095941', 'tblTempUsageDetail_20' ) start [2024-12-25 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095941', 'tblTempUsageDetail_20' ) end [2024-12-25 00:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:47:21] Production.INFO: ==20026== Releasing lock... [2024-12-25 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:47:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:48:05 [end_date_ymd] => 2024-12-25 00:48:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:48:05' and `end` < '2024-12-25 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-25 00:48:17] Production.INFO: count ==1147 [2024-12-25 00:48:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:48:05 - End Time 2024-12-25 00:48:05 [2024-12-25 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095946', 'tblTempUsageDetail_20' ) start [2024-12-25 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095946', 'tblTempUsageDetail_20' ) end [2024-12-25 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095946', 'tblTempVendorCDR_20' ) start [2024-12-25 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095946', 'tblTempVendorCDR_20' ) end [2024-12-25 00:48:18] Production.INFO: ProcessCDR(1,14095946,1,1,2) [2024-12-25 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095946', 'tblTempUsageDetail_20' ) start [2024-12-25 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095946', 'tblTempUsageDetail_20' ) end [2024-12-25 00:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:48:21] Production.INFO: ==20112== Releasing lock... [2024-12-25 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:48:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:49:05 [end_date_ymd] => 2024-12-25 00:49:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:49:05' and `end` < '2024-12-25 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:49:18] Production.INFO: count ==1151 [2024-12-25 00:49:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:49:05 - End Time 2024-12-25 00:49:05 [2024-12-25 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095951', 'tblTempUsageDetail_20' ) start [2024-12-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095951', 'tblTempUsageDetail_20' ) end [2024-12-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095951', 'tblTempVendorCDR_20' ) start [2024-12-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095951', 'tblTempVendorCDR_20' ) end [2024-12-25 00:49:18] Production.INFO: ProcessCDR(1,14095951,1,1,2) [2024-12-25 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095951', 'tblTempUsageDetail_20' ) start [2024-12-25 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095951', 'tblTempUsageDetail_20' ) end [2024-12-25 00:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:49:21] Production.INFO: ==20193== Releasing lock... [2024-12-25 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:49:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:50:05 [end_date_ymd] => 2024-12-25 00:50:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:50:05' and `end` < '2024-12-25 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-25 00:50:18] Production.INFO: count ==1157 [2024-12-25 00:50:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:50:05 - End Time 2024-12-25 00:50:05 [2024-12-25 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095956', 'tblTempUsageDetail_20' ) start [2024-12-25 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095956', 'tblTempUsageDetail_20' ) end [2024-12-25 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095956', 'tblTempVendorCDR_20' ) start [2024-12-25 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095956', 'tblTempVendorCDR_20' ) end [2024-12-25 00:50:18] Production.INFO: ProcessCDR(1,14095956,1,1,2) [2024-12-25 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095956', 'tblTempUsageDetail_20' ) start [2024-12-25 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095956', 'tblTempUsageDetail_20' ) end [2024-12-25 00:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:50:21] Production.INFO: ==20315== Releasing lock... [2024-12-25 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:50:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:51:04 [end_date_ymd] => 2024-12-25 00:51:04 [RateCDR] => 1 ) [2024-12-25 00:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:51:04' and `end` < '2024-12-25 00:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:51:17] Production.INFO: count ==1191 [2024-12-25 00:51:17] Production.ERROR: pbx CDR StartTime 2024-12-24 21:51:04 - End Time 2024-12-25 00:51:04 [2024-12-25 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095962', 'tblTempUsageDetail_20' ) start [2024-12-25 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095962', 'tblTempUsageDetail_20' ) end [2024-12-25 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095962', 'tblTempVendorCDR_20' ) start [2024-12-25 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095962', 'tblTempVendorCDR_20' ) end [2024-12-25 00:51:17] Production.INFO: ProcessCDR(1,14095962,1,1,2) [2024-12-25 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095962', 'tblTempUsageDetail_20' ) start [2024-12-25 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095962', 'tblTempUsageDetail_20' ) end [2024-12-25 00:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:51:20] Production.INFO: ==20408== Releasing lock... [2024-12-25 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:51:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:52:05 [end_date_ymd] => 2024-12-25 00:52:05 [RateCDR] => 1 ) [2024-12-25 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:52:05' and `end` < '2024-12-25 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:52:18] Production.INFO: count ==1192 [2024-12-25 00:52:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:52:05 - End Time 2024-12-25 00:52:05 [2024-12-25 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095965', 'tblTempUsageDetail_20' ) start [2024-12-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095965', 'tblTempUsageDetail_20' ) end [2024-12-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095965', 'tblTempVendorCDR_20' ) start [2024-12-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095965', 'tblTempVendorCDR_20' ) end [2024-12-25 00:52:18] Production.INFO: ProcessCDR(1,14095965,1,1,2) [2024-12-25 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095965', 'tblTempUsageDetail_20' ) start [2024-12-25 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095965', 'tblTempUsageDetail_20' ) end [2024-12-25 00:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:52:21] Production.INFO: ==20489== Releasing lock... [2024-12-25 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:52:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:53:05 [end_date_ymd] => 2024-12-25 00:53:05 [RateCDR] => 1 ) [2024-12-25 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:53:05' and `end` < '2024-12-25 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:53:18] Production.INFO: count ==1194 [2024-12-25 00:53:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:53:05 - End Time 2024-12-25 00:53:05 [2024-12-25 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095972', 'tblTempUsageDetail_20' ) start [2024-12-25 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095972', 'tblTempUsageDetail_20' ) end [2024-12-25 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095972', 'tblTempVendorCDR_20' ) start [2024-12-25 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095972', 'tblTempVendorCDR_20' ) end [2024-12-25 00:53:18] Production.INFO: ProcessCDR(1,14095972,1,1,2) [2024-12-25 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095972', 'tblTempUsageDetail_20' ) start [2024-12-25 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095972', 'tblTempUsageDetail_20' ) end [2024-12-25 00:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:53:22] Production.INFO: ==20572== Releasing lock... [2024-12-25 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:53:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:54:04 [end_date_ymd] => 2024-12-25 00:54:04 [RateCDR] => 1 ) [2024-12-25 00: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-24 21:54:04' and `end` < '2024-12-25 00: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-25 00:54:17] Production.INFO: count ==1195 [2024-12-25 00:54:17] Production.ERROR: pbx CDR StartTime 2024-12-24 21:54:04 - End Time 2024-12-25 00:54:04 [2024-12-25 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095977', 'tblTempUsageDetail_20' ) start [2024-12-25 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095977', 'tblTempUsageDetail_20' ) end [2024-12-25 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095977', 'tblTempVendorCDR_20' ) start [2024-12-25 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095977', 'tblTempVendorCDR_20' ) end [2024-12-25 00:54:17] Production.INFO: ProcessCDR(1,14095977,1,1,2) [2024-12-25 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095977', 'tblTempUsageDetail_20' ) start [2024-12-25 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095977', 'tblTempUsageDetail_20' ) end [2024-12-25 00:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:54:20] Production.INFO: ==20655== Releasing lock... [2024-12-25 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:54:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:55:05 [end_date_ymd] => 2024-12-25 00:55:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:55:05' and `end` < '2024-12-25 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-25 00:55:18] Production.INFO: count ==1196 [2024-12-25 00:55:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:55:05 - End Time 2024-12-25 00:55:05 [2024-12-25 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095982', 'tblTempUsageDetail_20' ) start [2024-12-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095982', 'tblTempUsageDetail_20' ) end [2024-12-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095982', 'tblTempVendorCDR_20' ) start [2024-12-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095982', 'tblTempVendorCDR_20' ) end [2024-12-25 00:55:18] Production.INFO: ProcessCDR(1,14095982,1,1,2) [2024-12-25 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095982', 'tblTempUsageDetail_20' ) start [2024-12-25 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095982', 'tblTempUsageDetail_20' ) end [2024-12-25 00:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:55:21] Production.INFO: ==20732== Releasing lock... [2024-12-25 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:55:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:56:05 [end_date_ymd] => 2024-12-25 00:56:05 [RateCDR] => 1 ) [2024-12-25 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 21:56:05' and `end` < '2024-12-25 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 00:56:17] Production.INFO: count ==1195 [2024-12-25 00:56:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:56:05 - End Time 2024-12-25 00:56:05 [2024-12-25 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095987', 'tblTempUsageDetail_20' ) start [2024-12-25 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095987', 'tblTempUsageDetail_20' ) end [2024-12-25 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095987', 'tblTempVendorCDR_20' ) start [2024-12-25 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095987', 'tblTempVendorCDR_20' ) end [2024-12-25 00:56:18] Production.INFO: ProcessCDR(1,14095987,1,1,2) [2024-12-25 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095987', 'tblTempUsageDetail_20' ) start [2024-12-25 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095987', 'tblTempUsageDetail_20' ) end [2024-12-25 00:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:56:21] Production.INFO: ==20819== Releasing lock... [2024-12-25 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:56:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:57:05 [end_date_ymd] => 2024-12-25 00:57:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:57:05' and `end` < '2024-12-25 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-25 00:57:18] Production.INFO: count ==1199 [2024-12-25 00:57:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:57:05 - End Time 2024-12-25 00:57:05 [2024-12-25 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095992', 'tblTempUsageDetail_20' ) start [2024-12-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095992', 'tblTempUsageDetail_20' ) end [2024-12-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095992', 'tblTempVendorCDR_20' ) start [2024-12-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095992', 'tblTempVendorCDR_20' ) end [2024-12-25 00:57:18] Production.INFO: ProcessCDR(1,14095992,1,1,2) [2024-12-25 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095992', 'tblTempUsageDetail_20' ) start [2024-12-25 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095992', 'tblTempUsageDetail_20' ) end [2024-12-25 00:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:57:23] Production.INFO: ==20910== Releasing lock... [2024-12-25 00:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:57:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:58:04 [end_date_ymd] => 2024-12-25 00:58:04 [RateCDR] => 1 ) [2024-12-25 00: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-24 21:58:04' and `end` < '2024-12-25 00: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-25 00:58:17] Production.INFO: count ==1198 [2024-12-25 00:58:17] Production.ERROR: pbx CDR StartTime 2024-12-24 21:58:04 - End Time 2024-12-25 00:58:04 [2024-12-25 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095997', 'tblTempUsageDetail_20' ) start [2024-12-25 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14095997', 'tblTempUsageDetail_20' ) end [2024-12-25 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095997', 'tblTempVendorCDR_20' ) start [2024-12-25 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14095997', 'tblTempVendorCDR_20' ) end [2024-12-25 00:58:17] Production.INFO: ProcessCDR(1,14095997,1,1,2) [2024-12-25 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14095997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14095997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14095997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14095997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095997', 'tblTempUsageDetail_20' ) start [2024-12-25 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14095997', 'tblTempUsageDetail_20' ) end [2024-12-25 00:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:58:21] Production.INFO: ==21019== Releasing lock... [2024-12-25 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:58:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 21:59:05 [end_date_ymd] => 2024-12-25 00:59:05 [RateCDR] => 1 ) [2024-12-25 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-24 21:59:05' and `end` < '2024-12-25 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-25 00:59:17] Production.INFO: count ==1198 [2024-12-25 00:59:18] Production.ERROR: pbx CDR StartTime 2024-12-24 21:59:05 - End Time 2024-12-25 00:59:05 [2024-12-25 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096002', 'tblTempUsageDetail_20' ) start [2024-12-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096002', 'tblTempUsageDetail_20' ) end [2024-12-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096002', 'tblTempVendorCDR_20' ) start [2024-12-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096002', 'tblTempVendorCDR_20' ) end [2024-12-25 00:59:18] Production.INFO: ProcessCDR(1,14096002,1,1,2) [2024-12-25 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096002', 'tblTempUsageDetail_20' ) start [2024-12-25 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096002', 'tblTempUsageDetail_20' ) end [2024-12-25 00:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 00:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 00:59:21] Production.INFO: ==21098== Releasing lock... [2024-12-25 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 00:59:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:00:05 [end_date_ymd] => 2024-12-25 01:00:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:00:05' and `end` < '2024-12-25 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-25 01:00:17] Production.INFO: count ==1203 [2024-12-25 01:00:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:00:05 - End Time 2024-12-25 01:00:05 [2024-12-25 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096007', 'tblTempUsageDetail_20' ) start [2024-12-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096007', 'tblTempUsageDetail_20' ) end [2024-12-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096007', 'tblTempVendorCDR_20' ) start [2024-12-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096007', 'tblTempVendorCDR_20' ) end [2024-12-25 01:00:18] Production.INFO: ProcessCDR(1,14096007,1,1,2) [2024-12-25 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096007', 'tblTempUsageDetail_20' ) start [2024-12-25 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096007', 'tblTempUsageDetail_20' ) end [2024-12-25 01:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:00:21] Production.INFO: ==21181== Releasing lock... [2024-12-25 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:00:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:01:05 [end_date_ymd] => 2024-12-25 01:01:05 [RateCDR] => 1 ) [2024-12-25 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:01:05' and `end` < '2024-12-25 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:01:17] Production.INFO: count ==1205 [2024-12-25 01:01:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:01:05 - End Time 2024-12-25 01:01:05 [2024-12-25 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096013', 'tblTempUsageDetail_20' ) start [2024-12-25 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096013', 'tblTempUsageDetail_20' ) end [2024-12-25 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096013', 'tblTempVendorCDR_20' ) start [2024-12-25 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096013', 'tblTempVendorCDR_20' ) end [2024-12-25 01:01:17] Production.INFO: ProcessCDR(1,14096013,1,1,2) [2024-12-25 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096013', 'tblTempUsageDetail_20' ) start [2024-12-25 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096013', 'tblTempUsageDetail_20' ) end [2024-12-25 01:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:01:22] Production.INFO: ==21276== Releasing lock... [2024-12-25 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:01:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:02:04 [end_date_ymd] => 2024-12-25 01:02:04 [RateCDR] => 1 ) [2024-12-25 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-24 22:02:04' and `end` < '2024-12-25 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-25 01:02:16] Production.INFO: count ==1203 [2024-12-25 01:02:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:02:04 - End Time 2024-12-25 01:02:04 [2024-12-25 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096018', 'tblTempUsageDetail_20' ) start [2024-12-25 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096018', 'tblTempUsageDetail_20' ) end [2024-12-25 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096018', 'tblTempVendorCDR_20' ) start [2024-12-25 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096018', 'tblTempVendorCDR_20' ) end [2024-12-25 01:02:17] Production.INFO: ProcessCDR(1,14096018,1,1,2) [2024-12-25 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096018', 'tblTempUsageDetail_20' ) start [2024-12-25 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096018', 'tblTempUsageDetail_20' ) end [2024-12-25 01:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:02:20] Production.INFO: ==21359== Releasing lock... [2024-12-25 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:02:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:03:04 [end_date_ymd] => 2024-12-25 01:03:04 [RateCDR] => 1 ) [2024-12-25 01: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-24 22:03:04' and `end` < '2024-12-25 01: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-25 01:03:17] Production.INFO: count ==1203 [2024-12-25 01:03:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:03:04 - End Time 2024-12-25 01:03:04 [2024-12-25 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096023', 'tblTempUsageDetail_20' ) start [2024-12-25 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096023', 'tblTempUsageDetail_20' ) end [2024-12-25 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096023', 'tblTempVendorCDR_20' ) start [2024-12-25 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096023', 'tblTempVendorCDR_20' ) end [2024-12-25 01:03:17] Production.INFO: ProcessCDR(1,14096023,1,1,2) [2024-12-25 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096023', 'tblTempUsageDetail_20' ) start [2024-12-25 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096023', 'tblTempUsageDetail_20' ) end [2024-12-25 01:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:03:20] Production.INFO: ==21440== Releasing lock... [2024-12-25 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:03:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:04:05 [end_date_ymd] => 2024-12-25 01:04:05 [RateCDR] => 1 ) [2024-12-25 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:04:05' and `end` < '2024-12-25 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:04:18] Production.INFO: count ==1203 [2024-12-25 01:04:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:04:05 - End Time 2024-12-25 01:04:05 [2024-12-25 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096028', 'tblTempUsageDetail_20' ) start [2024-12-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096028', 'tblTempUsageDetail_20' ) end [2024-12-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096028', 'tblTempVendorCDR_20' ) start [2024-12-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096028', 'tblTempVendorCDR_20' ) end [2024-12-25 01:04:18] Production.INFO: ProcessCDR(1,14096028,1,1,2) [2024-12-25 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096028', 'tblTempUsageDetail_20' ) start [2024-12-25 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096028', 'tblTempUsageDetail_20' ) end [2024-12-25 01:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:04:21] Production.INFO: ==21520== Releasing lock... [2024-12-25 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:04:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:05:04 [end_date_ymd] => 2024-12-25 01:05:04 [RateCDR] => 1 ) [2024-12-25 01: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-24 22:05:04' and `end` < '2024-12-25 01: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-25 01:05:17] Production.INFO: count ==1202 [2024-12-25 01:05:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:05:04 - End Time 2024-12-25 01:05:04 [2024-12-25 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096033', 'tblTempUsageDetail_20' ) start [2024-12-25 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096033', 'tblTempUsageDetail_20' ) end [2024-12-25 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096033', 'tblTempVendorCDR_20' ) start [2024-12-25 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096033', 'tblTempVendorCDR_20' ) end [2024-12-25 01:05:17] Production.INFO: ProcessCDR(1,14096033,1,1,2) [2024-12-25 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096033', 'tblTempUsageDetail_20' ) start [2024-12-25 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096033', 'tblTempUsageDetail_20' ) end [2024-12-25 01:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:05:20] Production.INFO: ==21602== Releasing lock... [2024-12-25 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:05:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:06:05 [end_date_ymd] => 2024-12-25 01:06:05 [RateCDR] => 1 ) [2024-12-25 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:06:05' and `end` < '2024-12-25 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:06:17] Production.INFO: count ==1203 [2024-12-25 01:06:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:06:05 - End Time 2024-12-25 01:06:05 [2024-12-25 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096038', 'tblTempUsageDetail_20' ) start [2024-12-25 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096038', 'tblTempUsageDetail_20' ) end [2024-12-25 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096038', 'tblTempVendorCDR_20' ) start [2024-12-25 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096038', 'tblTempVendorCDR_20' ) end [2024-12-25 01:06:18] Production.INFO: ProcessCDR(1,14096038,1,1,2) [2024-12-25 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096038', 'tblTempUsageDetail_20' ) start [2024-12-25 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096038', 'tblTempUsageDetail_20' ) end [2024-12-25 01:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:06:21] Production.INFO: ==21720== Releasing lock... [2024-12-25 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:06:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:07:04 [end_date_ymd] => 2024-12-25 01:07:04 [RateCDR] => 1 ) [2024-12-25 01: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-24 22:07:04' and `end` < '2024-12-25 01: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-25 01:07:16] Production.INFO: count ==1199 [2024-12-25 01:07:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:07:04 - End Time 2024-12-25 01:07:04 [2024-12-25 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096043', 'tblTempUsageDetail_20' ) start [2024-12-25 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096043', 'tblTempUsageDetail_20' ) end [2024-12-25 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096043', 'tblTempVendorCDR_20' ) start [2024-12-25 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096043', 'tblTempVendorCDR_20' ) end [2024-12-25 01:07:17] Production.INFO: ProcessCDR(1,14096043,1,1,2) [2024-12-25 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096043', 'tblTempUsageDetail_20' ) start [2024-12-25 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096043', 'tblTempUsageDetail_20' ) end [2024-12-25 01:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:07:20] Production.INFO: ==21801== Releasing lock... [2024-12-25 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:07:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:08:05 [end_date_ymd] => 2024-12-25 01:08:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:08:05' and `end` < '2024-12-25 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-25 01:08:18] Production.INFO: count ==1188 [2024-12-25 01:08:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:08:05 - End Time 2024-12-25 01:08:05 [2024-12-25 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096048', 'tblTempUsageDetail_20' ) start [2024-12-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096048', 'tblTempUsageDetail_20' ) end [2024-12-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096048', 'tblTempVendorCDR_20' ) start [2024-12-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096048', 'tblTempVendorCDR_20' ) end [2024-12-25 01:08:18] Production.INFO: ProcessCDR(1,14096048,1,1,2) [2024-12-25 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096048', 'tblTempUsageDetail_20' ) start [2024-12-25 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096048', 'tblTempUsageDetail_20' ) end [2024-12-25 01:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:08:21] Production.INFO: ==21883== Releasing lock... [2024-12-25 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:08:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:09:05 [end_date_ymd] => 2024-12-25 01:09:05 [RateCDR] => 1 ) [2024-12-25 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:09:05' and `end` < '2024-12-25 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:09:17] Production.INFO: count ==1182 [2024-12-25 01:09:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:09:05 - End Time 2024-12-25 01:09:05 [2024-12-25 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096053', 'tblTempUsageDetail_20' ) start [2024-12-25 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096053', 'tblTempUsageDetail_20' ) end [2024-12-25 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096053', 'tblTempVendorCDR_20' ) start [2024-12-25 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096053', 'tblTempVendorCDR_20' ) end [2024-12-25 01:09:18] Production.INFO: ProcessCDR(1,14096053,1,1,2) [2024-12-25 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096053', 'tblTempUsageDetail_20' ) start [2024-12-25 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096053', 'tblTempUsageDetail_20' ) end [2024-12-25 01:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:09:21] Production.INFO: ==21963== Releasing lock... [2024-12-25 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:09:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:10:05 [end_date_ymd] => 2024-12-25 01:10:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:10:05' and `end` < '2024-12-25 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-25 01:10:18] Production.INFO: count ==1182 [2024-12-25 01:10:19] Production.ERROR: pbx CDR StartTime 2024-12-24 22:10:05 - End Time 2024-12-25 01:10:05 [2024-12-25 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096058', 'tblTempUsageDetail_20' ) start [2024-12-25 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096058', 'tblTempUsageDetail_20' ) end [2024-12-25 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096058', 'tblTempVendorCDR_20' ) start [2024-12-25 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096058', 'tblTempVendorCDR_20' ) end [2024-12-25 01:10:19] Production.INFO: ProcessCDR(1,14096058,1,1,2) [2024-12-25 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096058', 'tblTempUsageDetail_20' ) start [2024-12-25 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096058', 'tblTempUsageDetail_20' ) end [2024-12-25 01:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:10:22] Production.INFO: ==22045== Releasing lock... [2024-12-25 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:10:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:11:05 [end_date_ymd] => 2024-12-25 01:11:05 [RateCDR] => 1 ) [2024-12-25 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:11:05' and `end` < '2024-12-25 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:11:18] Production.INFO: count ==1170 [2024-12-25 01:11:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:11:05 - End Time 2024-12-25 01:11:05 [2024-12-25 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096064', 'tblTempUsageDetail_20' ) start [2024-12-25 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096064', 'tblTempUsageDetail_20' ) end [2024-12-25 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096064', 'tblTempVendorCDR_20' ) start [2024-12-25 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096064', 'tblTempVendorCDR_20' ) end [2024-12-25 01:11:18] Production.INFO: ProcessCDR(1,14096064,1,1,2) [2024-12-25 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096064', 'tblTempUsageDetail_20' ) start [2024-12-25 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096064', 'tblTempUsageDetail_20' ) end [2024-12-25 01:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:11:21] Production.INFO: ==22129== Releasing lock... [2024-12-25 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:11:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:12:04 [end_date_ymd] => 2024-12-25 01:12:04 [RateCDR] => 1 ) [2024-12-25 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-24 22:12:04' and `end` < '2024-12-25 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-25 01:12:17] Production.INFO: count ==1169 [2024-12-25 01:12:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:12:04 - End Time 2024-12-25 01:12:04 [2024-12-25 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096069', 'tblTempUsageDetail_20' ) start [2024-12-25 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096069', 'tblTempUsageDetail_20' ) end [2024-12-25 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096069', 'tblTempVendorCDR_20' ) start [2024-12-25 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096069', 'tblTempVendorCDR_20' ) end [2024-12-25 01:12:17] Production.INFO: ProcessCDR(1,14096069,1,1,2) [2024-12-25 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096069', 'tblTempUsageDetail_20' ) start [2024-12-25 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096069', 'tblTempUsageDetail_20' ) end [2024-12-25 01:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:12:20] Production.INFO: ==22209== Releasing lock... [2024-12-25 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:12:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:13:05 [end_date_ymd] => 2024-12-25 01:13:05 [RateCDR] => 1 ) [2024-12-25 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:13:05' and `end` < '2024-12-25 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:13:18] Production.INFO: count ==1167 [2024-12-25 01:13:19] Production.ERROR: pbx CDR StartTime 2024-12-24 22:13:05 - End Time 2024-12-25 01:13:05 [2024-12-25 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096074', 'tblTempUsageDetail_20' ) start [2024-12-25 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096074', 'tblTempUsageDetail_20' ) end [2024-12-25 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096074', 'tblTempVendorCDR_20' ) start [2024-12-25 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096074', 'tblTempVendorCDR_20' ) end [2024-12-25 01:13:19] Production.INFO: ProcessCDR(1,14096074,1,1,2) [2024-12-25 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096074', 'tblTempUsageDetail_20' ) start [2024-12-25 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096074', 'tblTempUsageDetail_20' ) end [2024-12-25 01:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:13:22] Production.INFO: ==22291== Releasing lock... [2024-12-25 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:13:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:14:05 [end_date_ymd] => 2024-12-25 01:14:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:14:05' and `end` < '2024-12-25 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-25 01:14:17] Production.INFO: count ==1171 [2024-12-25 01:14:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:14:05 - End Time 2024-12-25 01:14:05 [2024-12-25 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096079', 'tblTempUsageDetail_20' ) start [2024-12-25 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096079', 'tblTempUsageDetail_20' ) end [2024-12-25 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096079', 'tblTempVendorCDR_20' ) start [2024-12-25 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096079', 'tblTempVendorCDR_20' ) end [2024-12-25 01:14:18] Production.INFO: ProcessCDR(1,14096079,1,1,2) [2024-12-25 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096079', 'tblTempUsageDetail_20' ) start [2024-12-25 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096079', 'tblTempUsageDetail_20' ) end [2024-12-25 01:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:14:22] Production.INFO: ==22370== Releasing lock... [2024-12-25 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:14:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 01:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:15:04 [end_date_ymd] => 2024-12-25 01:15:04 [RateCDR] => 1 ) [2024-12-25 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-24 22:15:04' and `end` < '2024-12-25 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-25 01:15:16] Production.INFO: count ==1175 [2024-12-25 01:15:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:15:04 - End Time 2024-12-25 01:15:04 [2024-12-25 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096084', 'tblTempUsageDetail_20' ) start [2024-12-25 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096084', 'tblTempUsageDetail_20' ) end [2024-12-25 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096084', 'tblTempVendorCDR_20' ) start [2024-12-25 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096084', 'tblTempVendorCDR_20' ) end [2024-12-25 01:15:17] Production.INFO: ProcessCDR(1,14096084,1,1,2) [2024-12-25 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096084', 'tblTempUsageDetail_20' ) start [2024-12-25 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096084', 'tblTempUsageDetail_20' ) end [2024-12-25 01:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:15:20] Production.INFO: ==22448== Releasing lock... [2024-12-25 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:15:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:16:05 [end_date_ymd] => 2024-12-25 01:16:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:16:05' and `end` < '2024-12-25 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:16:18] Production.INFO: count ==1178 [2024-12-25 01:16:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:16:05 - End Time 2024-12-25 01:16:05 [2024-12-25 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096089', 'tblTempUsageDetail_20' ) start [2024-12-25 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096089', 'tblTempUsageDetail_20' ) end [2024-12-25 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096089', 'tblTempVendorCDR_20' ) start [2024-12-25 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096089', 'tblTempVendorCDR_20' ) end [2024-12-25 01:16:18] Production.INFO: ProcessCDR(1,14096089,1,1,2) [2024-12-25 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096089', 'tblTempUsageDetail_20' ) start [2024-12-25 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096089', 'tblTempUsageDetail_20' ) end [2024-12-25 01:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:16:22] Production.INFO: ==22527== Releasing lock... [2024-12-25 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:16:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:17:05 [end_date_ymd] => 2024-12-25 01:17:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:17:05' and `end` < '2024-12-25 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-25 01:17:18] Production.INFO: count ==1174 [2024-12-25 01:17:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:17:05 - End Time 2024-12-25 01:17:05 [2024-12-25 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096094', 'tblTempUsageDetail_20' ) start [2024-12-25 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096094', 'tblTempUsageDetail_20' ) end [2024-12-25 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096094', 'tblTempVendorCDR_20' ) start [2024-12-25 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096094', 'tblTempVendorCDR_20' ) end [2024-12-25 01:17:18] Production.INFO: ProcessCDR(1,14096094,1,1,2) [2024-12-25 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096094', 'tblTempUsageDetail_20' ) start [2024-12-25 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096094', 'tblTempUsageDetail_20' ) end [2024-12-25 01:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:17:22] Production.INFO: ==22607== Releasing lock... [2024-12-25 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:17:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:18:05 [end_date_ymd] => 2024-12-25 01:18:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:18:05' and `end` < '2024-12-25 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-25 01:18:18] Production.INFO: count ==1176 [2024-12-25 01:18:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:18:05 - End Time 2024-12-25 01:18:05 [2024-12-25 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096099', 'tblTempUsageDetail_20' ) start [2024-12-25 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096099', 'tblTempUsageDetail_20' ) end [2024-12-25 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096099', 'tblTempVendorCDR_20' ) start [2024-12-25 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096099', 'tblTempVendorCDR_20' ) end [2024-12-25 01:18:18] Production.INFO: ProcessCDR(1,14096099,1,1,2) [2024-12-25 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096099', 'tblTempUsageDetail_20' ) start [2024-12-25 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096099', 'tblTempUsageDetail_20' ) end [2024-12-25 01:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:18:22] Production.INFO: ==22690== Releasing lock... [2024-12-25 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:18:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:19:05 [end_date_ymd] => 2024-12-25 01:19:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:19:05' and `end` < '2024-12-25 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-25 01:19:19] Production.INFO: count ==1179 [2024-12-25 01:19:19] Production.ERROR: pbx CDR StartTime 2024-12-24 22:19:05 - End Time 2024-12-25 01:19:05 [2024-12-25 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096104', 'tblTempUsageDetail_20' ) start [2024-12-25 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096104', 'tblTempUsageDetail_20' ) end [2024-12-25 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096104', 'tblTempVendorCDR_20' ) start [2024-12-25 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096104', 'tblTempVendorCDR_20' ) end [2024-12-25 01:19:19] Production.INFO: ProcessCDR(1,14096104,1,1,2) [2024-12-25 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096104', 'tblTempUsageDetail_20' ) start [2024-12-25 01:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096104', 'tblTempUsageDetail_20' ) end [2024-12-25 01:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:19:23] Production.INFO: ==22768== Releasing lock... [2024-12-25 01:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:19:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:20:06 [end_date_ymd] => 2024-12-25 01:20:06 [RateCDR] => 1 ) [2024-12-25 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:20:06' and `end` < '2024-12-25 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:20:18] Production.INFO: count ==1199 [2024-12-25 01:20:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:20:06 - End Time 2024-12-25 01:20:06 [2024-12-25 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096110', 'tblTempUsageDetail_20' ) start [2024-12-25 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096110', 'tblTempUsageDetail_20' ) end [2024-12-25 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096110', 'tblTempVendorCDR_20' ) start [2024-12-25 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096110', 'tblTempVendorCDR_20' ) end [2024-12-25 01:20:18] Production.INFO: ProcessCDR(1,14096110,1,1,2) [2024-12-25 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096110', 'tblTempUsageDetail_20' ) start [2024-12-25 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096110', 'tblTempUsageDetail_20' ) end [2024-12-25 01:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:20:22] Production.INFO: ==22853== Releasing lock... [2024-12-25 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:20:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:21:05 [end_date_ymd] => 2024-12-25 01:21:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:21:05' and `end` < '2024-12-25 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-25 01:21:18] Production.INFO: count ==1198 [2024-12-25 01:21:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:21:05 - End Time 2024-12-25 01:21:05 [2024-12-25 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096115', 'tblTempUsageDetail_20' ) start [2024-12-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096115', 'tblTempUsageDetail_20' ) end [2024-12-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096115', 'tblTempVendorCDR_20' ) start [2024-12-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096115', 'tblTempVendorCDR_20' ) end [2024-12-25 01:21:18] Production.INFO: ProcessCDR(1,14096115,1,1,2) [2024-12-25 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096115', 'tblTempUsageDetail_20' ) start [2024-12-25 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096115', 'tblTempUsageDetail_20' ) end [2024-12-25 01:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:21:21] Production.INFO: ==22974== Releasing lock... [2024-12-25 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:21:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:22:05 [end_date_ymd] => 2024-12-25 01:22:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:22:05' and `end` < '2024-12-25 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-25 01:22:17] Production.INFO: count ==1187 [2024-12-25 01:22:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:22:05 - End Time 2024-12-25 01:22:05 [2024-12-25 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096120', 'tblTempUsageDetail_20' ) start [2024-12-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096120', 'tblTempUsageDetail_20' ) end [2024-12-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096120', 'tblTempVendorCDR_20' ) start [2024-12-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096120', 'tblTempVendorCDR_20' ) end [2024-12-25 01:22:18] Production.INFO: ProcessCDR(1,14096120,1,1,2) [2024-12-25 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096120', 'tblTempUsageDetail_20' ) start [2024-12-25 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096120', 'tblTempUsageDetail_20' ) end [2024-12-25 01:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:22:21] Production.INFO: ==23053== Releasing lock... [2024-12-25 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:22:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:23:05 [end_date_ymd] => 2024-12-25 01:23:05 [RateCDR] => 1 ) [2024-12-25 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:23:05' and `end` < '2024-12-25 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:23:18] Production.INFO: count ==1184 [2024-12-25 01:23:19] Production.ERROR: pbx CDR StartTime 2024-12-24 22:23:05 - End Time 2024-12-25 01:23:05 [2024-12-25 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096125', 'tblTempUsageDetail_20' ) start [2024-12-25 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096125', 'tblTempUsageDetail_20' ) end [2024-12-25 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096125', 'tblTempVendorCDR_20' ) start [2024-12-25 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096125', 'tblTempVendorCDR_20' ) end [2024-12-25 01:23:19] Production.INFO: ProcessCDR(1,14096125,1,1,2) [2024-12-25 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096125', 'tblTempUsageDetail_20' ) start [2024-12-25 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096125', 'tblTempUsageDetail_20' ) end [2024-12-25 01:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:23:22] Production.INFO: ==23132== Releasing lock... [2024-12-25 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:23:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:24:05 [end_date_ymd] => 2024-12-25 01:24:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:24:05' and `end` < '2024-12-25 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-25 01:24:17] Production.INFO: count ==1182 [2024-12-25 01:24:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:24:05 - End Time 2024-12-25 01:24:05 [2024-12-25 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096130', 'tblTempUsageDetail_20' ) start [2024-12-25 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096130', 'tblTempUsageDetail_20' ) end [2024-12-25 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096130', 'tblTempVendorCDR_20' ) start [2024-12-25 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096130', 'tblTempVendorCDR_20' ) end [2024-12-25 01:24:18] Production.INFO: ProcessCDR(1,14096130,1,1,2) [2024-12-25 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096130', 'tblTempUsageDetail_20' ) start [2024-12-25 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096130', 'tblTempUsageDetail_20' ) end [2024-12-25 01:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:24:21] Production.INFO: ==23212== Releasing lock... [2024-12-25 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:24:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:25:05 [end_date_ymd] => 2024-12-25 01:25:05 [RateCDR] => 1 ) [2024-12-25 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:25:05' and `end` < '2024-12-25 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:25:17] Production.INFO: count ==1176 [2024-12-25 01:25:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:25:05 - End Time 2024-12-25 01:25:05 [2024-12-25 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096135', 'tblTempUsageDetail_20' ) start [2024-12-25 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096135', 'tblTempUsageDetail_20' ) end [2024-12-25 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096135', 'tblTempVendorCDR_20' ) start [2024-12-25 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096135', 'tblTempVendorCDR_20' ) end [2024-12-25 01:25:18] Production.INFO: ProcessCDR(1,14096135,1,1,2) [2024-12-25 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096135', 'tblTempUsageDetail_20' ) start [2024-12-25 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096135', 'tblTempUsageDetail_20' ) end [2024-12-25 01:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:25:21] Production.INFO: ==23289== Releasing lock... [2024-12-25 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:25:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:26:05 [end_date_ymd] => 2024-12-25 01:26:05 [RateCDR] => 1 ) [2024-12-25 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:26:05' and `end` < '2024-12-25 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:26:17] Production.INFO: count ==1168 [2024-12-25 01:26:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:26:05 - End Time 2024-12-25 01:26:05 [2024-12-25 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096140', 'tblTempUsageDetail_20' ) start [2024-12-25 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096140', 'tblTempUsageDetail_20' ) end [2024-12-25 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096140', 'tblTempVendorCDR_20' ) start [2024-12-25 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096140', 'tblTempVendorCDR_20' ) end [2024-12-25 01:26:17] Production.INFO: ProcessCDR(1,14096140,1,1,2) [2024-12-25 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096140', 'tblTempUsageDetail_20' ) start [2024-12-25 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096140', 'tblTempUsageDetail_20' ) end [2024-12-25 01:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:26:21] Production.INFO: ==23368== Releasing lock... [2024-12-25 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:26:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:27:05 [end_date_ymd] => 2024-12-25 01:27:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:27:05' and `end` < '2024-12-25 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-25 01:27:19] Production.INFO: count ==1167 [2024-12-25 01:27:19] Production.ERROR: pbx CDR StartTime 2024-12-24 22:27:05 - End Time 2024-12-25 01:27:05 [2024-12-25 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096145', 'tblTempUsageDetail_20' ) start [2024-12-25 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096145', 'tblTempUsageDetail_20' ) end [2024-12-25 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096145', 'tblTempVendorCDR_20' ) start [2024-12-25 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096145', 'tblTempVendorCDR_20' ) end [2024-12-25 01:27:19] Production.INFO: ProcessCDR(1,14096145,1,1,2) [2024-12-25 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096145', 'tblTempUsageDetail_20' ) start [2024-12-25 01:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096145', 'tblTempUsageDetail_20' ) end [2024-12-25 01:27:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:27:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:27:24] Production.INFO: ==23451== Releasing lock... [2024-12-25 01:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:27:24] Production.INFO: 37 MB #Memory Used# [2024-12-25 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:28:04 [end_date_ymd] => 2024-12-25 01:28:04 [RateCDR] => 1 ) [2024-12-25 01:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:28:04' and `end` < '2024-12-25 01:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:28:17] Production.INFO: count ==1158 [2024-12-25 01:28:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:28:04 - End Time 2024-12-25 01:28:04 [2024-12-25 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096150', 'tblTempUsageDetail_20' ) start [2024-12-25 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096150', 'tblTempUsageDetail_20' ) end [2024-12-25 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096150', 'tblTempVendorCDR_20' ) start [2024-12-25 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096150', 'tblTempVendorCDR_20' ) end [2024-12-25 01:28:17] Production.INFO: ProcessCDR(1,14096150,1,1,2) [2024-12-25 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096150', 'tblTempUsageDetail_20' ) start [2024-12-25 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096150', 'tblTempUsageDetail_20' ) end [2024-12-25 01:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:28:20] Production.INFO: ==23530== Releasing lock... [2024-12-25 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:28:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:29:05 [end_date_ymd] => 2024-12-25 01:29:05 [RateCDR] => 1 ) [2024-12-25 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:29:05' and `end` < '2024-12-25 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:29:18] Production.INFO: count ==1150 [2024-12-25 01:29:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:29:05 - End Time 2024-12-25 01:29:05 [2024-12-25 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096155', 'tblTempUsageDetail_20' ) start [2024-12-25 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096155', 'tblTempUsageDetail_20' ) end [2024-12-25 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096155', 'tblTempVendorCDR_20' ) start [2024-12-25 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096155', 'tblTempVendorCDR_20' ) end [2024-12-25 01:29:18] Production.INFO: ProcessCDR(1,14096155,1,1,2) [2024-12-25 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096155', 'tblTempUsageDetail_20' ) start [2024-12-25 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096155', 'tblTempUsageDetail_20' ) end [2024-12-25 01:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:29:22] Production.INFO: ==23610== Releasing lock... [2024-12-25 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:29:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:30:05 [end_date_ymd] => 2024-12-25 01:30:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:30:05' and `end` < '2024-12-25 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-25 01:30:17] Production.INFO: count ==1157 [2024-12-25 01:30:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:30:05 - End Time 2024-12-25 01:30:05 [2024-12-25 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096160', 'tblTempUsageDetail_20' ) start [2024-12-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096160', 'tblTempUsageDetail_20' ) end [2024-12-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096160', 'tblTempVendorCDR_20' ) start [2024-12-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096160', 'tblTempVendorCDR_20' ) end [2024-12-25 01:30:18] Production.INFO: ProcessCDR(1,14096160,1,1,2) [2024-12-25 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096160', 'tblTempUsageDetail_20' ) start [2024-12-25 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096160', 'tblTempUsageDetail_20' ) end [2024-12-25 01:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:30:21] Production.INFO: ==23692== Releasing lock... [2024-12-25 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:30:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:31:05 [end_date_ymd] => 2024-12-25 01:31:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:31:05' and `end` < '2024-12-25 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-25 01:31:19] Production.INFO: count ==1165 [2024-12-25 01:31:20] Production.ERROR: pbx CDR StartTime 2024-12-24 22:31:05 - End Time 2024-12-25 01:31:05 [2024-12-25 01:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096166', 'tblTempUsageDetail_20' ) start [2024-12-25 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096166', 'tblTempUsageDetail_20' ) end [2024-12-25 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096166', 'tblTempVendorCDR_20' ) start [2024-12-25 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096166', 'tblTempVendorCDR_20' ) end [2024-12-25 01:31:20] Production.INFO: ProcessCDR(1,14096166,1,1,2) [2024-12-25 01:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096166', 'tblTempUsageDetail_20' ) start [2024-12-25 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096166', 'tblTempUsageDetail_20' ) end [2024-12-25 01:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:31:23] Production.INFO: ==23778== Releasing lock... [2024-12-25 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:31:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:32:05 [end_date_ymd] => 2024-12-25 01:32:05 [RateCDR] => 1 ) [2024-12-25 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:32:05' and `end` < '2024-12-25 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:32:17] Production.INFO: count ==1161 [2024-12-25 01:32:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:32:05 - End Time 2024-12-25 01:32:05 [2024-12-25 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096171', 'tblTempUsageDetail_20' ) start [2024-12-25 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096171', 'tblTempUsageDetail_20' ) end [2024-12-25 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096171', 'tblTempVendorCDR_20' ) start [2024-12-25 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096171', 'tblTempVendorCDR_20' ) end [2024-12-25 01:32:18] Production.INFO: ProcessCDR(1,14096171,1,1,2) [2024-12-25 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096171', 'tblTempUsageDetail_20' ) start [2024-12-25 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096171', 'tblTempUsageDetail_20' ) end [2024-12-25 01:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:32:21] Production.INFO: ==23860== Releasing lock... [2024-12-25 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:32:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:33:05 [end_date_ymd] => 2024-12-25 01:33:05 [RateCDR] => 1 ) [2024-12-25 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:33:05' and `end` < '2024-12-25 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:33:17] Production.INFO: count ==1154 [2024-12-25 01:33:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:33:05 - End Time 2024-12-25 01:33:05 [2024-12-25 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096176', 'tblTempUsageDetail_20' ) start [2024-12-25 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096176', 'tblTempUsageDetail_20' ) end [2024-12-25 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096176', 'tblTempVendorCDR_20' ) start [2024-12-25 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096176', 'tblTempVendorCDR_20' ) end [2024-12-25 01:33:17] Production.INFO: ProcessCDR(1,14096176,1,1,2) [2024-12-25 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096176', 'tblTempUsageDetail_20' ) start [2024-12-25 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096176', 'tblTempUsageDetail_20' ) end [2024-12-25 01:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:33:21] Production.INFO: ==23938== Releasing lock... [2024-12-25 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:33:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:34:05 [end_date_ymd] => 2024-12-25 01:34:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:34:05' and `end` < '2024-12-25 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-25 01:34:18] Production.INFO: count ==1148 [2024-12-25 01:34:19] Production.ERROR: pbx CDR StartTime 2024-12-24 22:34:05 - End Time 2024-12-25 01:34:05 [2024-12-25 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096181', 'tblTempUsageDetail_20' ) start [2024-12-25 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096181', 'tblTempUsageDetail_20' ) end [2024-12-25 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096181', 'tblTempVendorCDR_20' ) start [2024-12-25 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096181', 'tblTempVendorCDR_20' ) end [2024-12-25 01:34:19] Production.INFO: ProcessCDR(1,14096181,1,1,2) [2024-12-25 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096181', 'tblTempUsageDetail_20' ) start [2024-12-25 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096181', 'tblTempUsageDetail_20' ) end [2024-12-25 01:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:34:23] Production.INFO: ==24019== Releasing lock... [2024-12-25 01:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:34:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:35:05 [end_date_ymd] => 2024-12-25 01:35:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:35:05' and `end` < '2024-12-25 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-25 01:35:17] Production.INFO: count ==1147 [2024-12-25 01:35:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:35:05 - End Time 2024-12-25 01:35:05 [2024-12-25 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096186', 'tblTempUsageDetail_20' ) start [2024-12-25 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096186', 'tblTempUsageDetail_20' ) end [2024-12-25 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096186', 'tblTempVendorCDR_20' ) start [2024-12-25 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096186', 'tblTempVendorCDR_20' ) end [2024-12-25 01:35:17] Production.INFO: ProcessCDR(1,14096186,1,1,2) [2024-12-25 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096186', 'tblTempUsageDetail_20' ) start [2024-12-25 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096186', 'tblTempUsageDetail_20' ) end [2024-12-25 01:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:35:21] Production.INFO: ==24097== Releasing lock... [2024-12-25 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:35:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:36:05 [end_date_ymd] => 2024-12-25 01:36:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:36:05' and `end` < '2024-12-25 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-25 01:36:18] Production.INFO: count ==1140 [2024-12-25 01:36:19] Production.ERROR: pbx CDR StartTime 2024-12-24 22:36:05 - End Time 2024-12-25 01:36:05 [2024-12-25 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096191', 'tblTempUsageDetail_20' ) start [2024-12-25 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096191', 'tblTempUsageDetail_20' ) end [2024-12-25 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096191', 'tblTempVendorCDR_20' ) start [2024-12-25 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096191', 'tblTempVendorCDR_20' ) end [2024-12-25 01:36:19] Production.INFO: ProcessCDR(1,14096191,1,1,2) [2024-12-25 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096191', 'tblTempUsageDetail_20' ) start [2024-12-25 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096191', 'tblTempUsageDetail_20' ) end [2024-12-25 01:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:36:22] Production.INFO: ==24181== Releasing lock... [2024-12-25 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:36:22] Production.INFO: 37 MB #Memory Used# [2024-12-25 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:37:05 [end_date_ymd] => 2024-12-25 01:37:05 [RateCDR] => 1 ) [2024-12-25 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:37:05' and `end` < '2024-12-25 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:37:20] Production.INFO: count ==1121 [2024-12-25 01:37:20] Production.ERROR: pbx CDR StartTime 2024-12-24 22:37:05 - End Time 2024-12-25 01:37:05 [2024-12-25 01:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096196', 'tblTempUsageDetail_20' ) start [2024-12-25 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096196', 'tblTempUsageDetail_20' ) end [2024-12-25 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096196', 'tblTempVendorCDR_20' ) start [2024-12-25 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096196', 'tblTempVendorCDR_20' ) end [2024-12-25 01:37:20] Production.INFO: ProcessCDR(1,14096196,1,1,2) [2024-12-25 01:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096196', 'tblTempUsageDetail_20' ) start [2024-12-25 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096196', 'tblTempUsageDetail_20' ) end [2024-12-25 01:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:37:23] Production.INFO: ==24301== Releasing lock... [2024-12-25 01:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:37:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:38:05 [end_date_ymd] => 2024-12-25 01:38:05 [RateCDR] => 1 ) [2024-12-25 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:38:05' and `end` < '2024-12-25 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:38:17] Production.INFO: count ==1113 [2024-12-25 01:38:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:38:05 - End Time 2024-12-25 01:38:05 [2024-12-25 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096201', 'tblTempUsageDetail_20' ) start [2024-12-25 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096201', 'tblTempUsageDetail_20' ) end [2024-12-25 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096201', 'tblTempVendorCDR_20' ) start [2024-12-25 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096201', 'tblTempVendorCDR_20' ) end [2024-12-25 01:38:18] Production.INFO: ProcessCDR(1,14096201,1,1,2) [2024-12-25 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096201', 'tblTempUsageDetail_20' ) start [2024-12-25 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096201', 'tblTempUsageDetail_20' ) end [2024-12-25 01:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:38:21] Production.INFO: ==24379== Releasing lock... [2024-12-25 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:38:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 01:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:39:04 [end_date_ymd] => 2024-12-25 01:39:04 [RateCDR] => 1 ) [2024-12-25 01:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:39:04' and `end` < '2024-12-25 01:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:39:17] Production.INFO: count ==1108 [2024-12-25 01:39:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:39:04 - End Time 2024-12-25 01:39:04 [2024-12-25 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096206', 'tblTempUsageDetail_20' ) start [2024-12-25 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096206', 'tblTempUsageDetail_20' ) end [2024-12-25 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096206', 'tblTempVendorCDR_20' ) start [2024-12-25 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096206', 'tblTempVendorCDR_20' ) end [2024-12-25 01:39:18] Production.INFO: ProcessCDR(1,14096206,1,1,2) [2024-12-25 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096206', 'tblTempUsageDetail_20' ) start [2024-12-25 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096206', 'tblTempUsageDetail_20' ) end [2024-12-25 01:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:39:21] Production.INFO: ==24466== Releasing lock... [2024-12-25 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:39:21] Production.INFO: 37 MB #Memory Used# [2024-12-25 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:40:05 [end_date_ymd] => 2024-12-25 01:40:05 [RateCDR] => 1 ) [2024-12-25 01:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:40:05' and `end` < '2024-12-25 01:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:40:17] Production.INFO: count ==1110 [2024-12-25 01:40:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:40:05 - End Time 2024-12-25 01:40:05 [2024-12-25 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096212', 'tblTempUsageDetail_20' ) start [2024-12-25 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096212', 'tblTempUsageDetail_20' ) end [2024-12-25 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096212', 'tblTempVendorCDR_20' ) start [2024-12-25 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096212', 'tblTempVendorCDR_20' ) end [2024-12-25 01:40:18] Production.INFO: ProcessCDR(1,14096212,1,1,2) [2024-12-25 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096212', 'tblTempUsageDetail_20' ) start [2024-12-25 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096212', 'tblTempUsageDetail_20' ) end [2024-12-25 01:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:40:21] Production.INFO: ==24544== Releasing lock... [2024-12-25 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:40:21] Production.INFO: 37 MB #Memory Used# [2024-12-25 01:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:41:04 [end_date_ymd] => 2024-12-25 01:41:04 [RateCDR] => 1 ) [2024-12-25 01: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-24 22:41:04' and `end` < '2024-12-25 01: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-25 01:41:18] Production.INFO: count ==1109 [2024-12-25 01:41:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:41:04 - End Time 2024-12-25 01:41:04 [2024-12-25 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096217', 'tblTempUsageDetail_20' ) start [2024-12-25 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096217', 'tblTempUsageDetail_20' ) end [2024-12-25 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096217', 'tblTempVendorCDR_20' ) start [2024-12-25 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096217', 'tblTempVendorCDR_20' ) end [2024-12-25 01:41:19] Production.INFO: ProcessCDR(1,14096217,1,1,2) [2024-12-25 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096217', 'tblTempUsageDetail_20' ) start [2024-12-25 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096217', 'tblTempUsageDetail_20' ) end [2024-12-25 01:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:41:21] Production.INFO: ==24634== Releasing lock... [2024-12-25 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:41:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:42:05 [end_date_ymd] => 2024-12-25 01:42:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:42:05' and `end` < '2024-12-25 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-25 01:42:17] Production.INFO: count ==1107 [2024-12-25 01:42:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:42:05 - End Time 2024-12-25 01:42:05 [2024-12-25 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096222', 'tblTempUsageDetail_20' ) start [2024-12-25 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096222', 'tblTempUsageDetail_20' ) end [2024-12-25 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096222', 'tblTempVendorCDR_20' ) start [2024-12-25 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096222', 'tblTempVendorCDR_20' ) end [2024-12-25 01:42:18] Production.INFO: ProcessCDR(1,14096222,1,1,2) [2024-12-25 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096222', 'tblTempUsageDetail_20' ) start [2024-12-25 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096222', 'tblTempUsageDetail_20' ) end [2024-12-25 01:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:42:21] Production.INFO: ==24715== Releasing lock... [2024-12-25 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:42:21] Production.INFO: 37 MB #Memory Used# [2024-12-25 01:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:43:04 [end_date_ymd] => 2024-12-25 01:43:04 [RateCDR] => 1 ) [2024-12-25 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-24 22:43:04' and `end` < '2024-12-25 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-25 01:43:17] Production.INFO: count ==1103 [2024-12-25 01:43:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:43:04 - End Time 2024-12-25 01:43:04 [2024-12-25 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096227', 'tblTempUsageDetail_20' ) start [2024-12-25 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096227', 'tblTempUsageDetail_20' ) end [2024-12-25 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096227', 'tblTempVendorCDR_20' ) start [2024-12-25 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096227', 'tblTempVendorCDR_20' ) end [2024-12-25 01:43:17] Production.INFO: ProcessCDR(1,14096227,1,1,2) [2024-12-25 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096227', 'tblTempUsageDetail_20' ) start [2024-12-25 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096227', 'tblTempUsageDetail_20' ) end [2024-12-25 01:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:43:20] Production.INFO: ==24803== Releasing lock... [2024-12-25 01:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:43:20] Production.INFO: 37 MB #Memory Used# [2024-12-25 01:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:44:04 [end_date_ymd] => 2024-12-25 01:44:04 [RateCDR] => 1 ) [2024-12-25 01:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:44:04' and `end` < '2024-12-25 01:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:44:17] Production.INFO: count ==1102 [2024-12-25 01:44:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:44:04 - End Time 2024-12-25 01:44:04 [2024-12-25 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096232', 'tblTempUsageDetail_20' ) start [2024-12-25 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096232', 'tblTempUsageDetail_20' ) end [2024-12-25 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096232', 'tblTempVendorCDR_20' ) start [2024-12-25 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096232', 'tblTempVendorCDR_20' ) end [2024-12-25 01:44:17] Production.INFO: ProcessCDR(1,14096232,1,1,2) [2024-12-25 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096232', 'tblTempUsageDetail_20' ) start [2024-12-25 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096232', 'tblTempUsageDetail_20' ) end [2024-12-25 01:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:44:20] Production.INFO: ==24882== Releasing lock... [2024-12-25 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:44:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:45:05 [end_date_ymd] => 2024-12-25 01:45:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:45:05' and `end` < '2024-12-25 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-25 01:45:17] Production.INFO: count ==1102 [2024-12-25 01:45:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:45:05 - End Time 2024-12-25 01:45:05 [2024-12-25 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096237', 'tblTempUsageDetail_20' ) start [2024-12-25 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096237', 'tblTempUsageDetail_20' ) end [2024-12-25 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096237', 'tblTempVendorCDR_20' ) start [2024-12-25 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096237', 'tblTempVendorCDR_20' ) end [2024-12-25 01:45:17] Production.INFO: ProcessCDR(1,14096237,1,1,2) [2024-12-25 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096237', 'tblTempUsageDetail_20' ) start [2024-12-25 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096237', 'tblTempUsageDetail_20' ) end [2024-12-25 01:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:45:20] Production.INFO: ==24973== Releasing lock... [2024-12-25 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:45:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 01:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:46:04 [end_date_ymd] => 2024-12-25 01:46:04 [RateCDR] => 1 ) [2024-12-25 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-24 22:46:04' and `end` < '2024-12-25 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-25 01:46:18] Production.INFO: count ==1103 [2024-12-25 01:46:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:46:04 - End Time 2024-12-25 01:46:04 [2024-12-25 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096242', 'tblTempUsageDetail_20' ) start [2024-12-25 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096242', 'tblTempUsageDetail_20' ) end [2024-12-25 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096242', 'tblTempVendorCDR_20' ) start [2024-12-25 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096242', 'tblTempVendorCDR_20' ) end [2024-12-25 01:46:18] Production.INFO: ProcessCDR(1,14096242,1,1,2) [2024-12-25 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096242', 'tblTempUsageDetail_20' ) start [2024-12-25 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096242', 'tblTempUsageDetail_20' ) end [2024-12-25 01:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:46:21] Production.INFO: ==25051== Releasing lock... [2024-12-25 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:46:21] Production.INFO: 37 MB #Memory Used# [2024-12-25 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:47:05 [end_date_ymd] => 2024-12-25 01:47:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:47:05' and `end` < '2024-12-25 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-25 01:47:17] Production.INFO: count ==1096 [2024-12-25 01:47:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:47:05 - End Time 2024-12-25 01:47:05 [2024-12-25 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096247', 'tblTempUsageDetail_20' ) start [2024-12-25 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096247', 'tblTempUsageDetail_20' ) end [2024-12-25 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096247', 'tblTempVendorCDR_20' ) start [2024-12-25 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096247', 'tblTempVendorCDR_20' ) end [2024-12-25 01:47:18] Production.INFO: ProcessCDR(1,14096247,1,1,2) [2024-12-25 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096247', 'tblTempUsageDetail_20' ) start [2024-12-25 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096247', 'tblTempUsageDetail_20' ) end [2024-12-25 01:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:47:21] Production.INFO: ==25131== Releasing lock... [2024-12-25 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:47:21] Production.INFO: 37 MB #Memory Used# [2024-12-25 01:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:48:04 [end_date_ymd] => 2024-12-25 01:48:04 [RateCDR] => 1 ) [2024-12-25 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-24 22:48:04' and `end` < '2024-12-25 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-25 01:48:16] Production.INFO: count ==1093 [2024-12-25 01:48:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:48:04 - End Time 2024-12-25 01:48:04 [2024-12-25 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096252', 'tblTempUsageDetail_20' ) start [2024-12-25 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096252', 'tblTempUsageDetail_20' ) end [2024-12-25 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096252', 'tblTempVendorCDR_20' ) start [2024-12-25 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096252', 'tblTempVendorCDR_20' ) end [2024-12-25 01:48:17] Production.INFO: ProcessCDR(1,14096252,1,1,2) [2024-12-25 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096252', 'tblTempUsageDetail_20' ) start [2024-12-25 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096252', 'tblTempUsageDetail_20' ) end [2024-12-25 01:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:48:20] Production.INFO: ==25205== Releasing lock... [2024-12-25 01:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:48:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:49:05 [end_date_ymd] => 2024-12-25 01:49:05 [RateCDR] => 1 ) [2024-12-25 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:49:05' and `end` < '2024-12-25 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:49:17] Production.INFO: count ==1093 [2024-12-25 01:49:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:49:05 - End Time 2024-12-25 01:49:05 [2024-12-25 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096257', 'tblTempUsageDetail_20' ) start [2024-12-25 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096257', 'tblTempUsageDetail_20' ) end [2024-12-25 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096257', 'tblTempVendorCDR_20' ) start [2024-12-25 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096257', 'tblTempVendorCDR_20' ) end [2024-12-25 01:49:18] Production.INFO: ProcessCDR(1,14096257,1,1,2) [2024-12-25 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096257', 'tblTempUsageDetail_20' ) start [2024-12-25 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096257', 'tblTempUsageDetail_20' ) end [2024-12-25 01:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:49:21] Production.INFO: ==25286== Releasing lock... [2024-12-25 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:49:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:50:06 [end_date_ymd] => 2024-12-25 01:50:06 [RateCDR] => 1 ) [2024-12-25 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:50:06' and `end` < '2024-12-25 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:50:18] Production.INFO: count ==1093 [2024-12-25 01:50:19] Production.ERROR: pbx CDR StartTime 2024-12-24 22:50:06 - End Time 2024-12-25 01:50:06 [2024-12-25 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096263', 'tblTempUsageDetail_20' ) start [2024-12-25 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096263', 'tblTempUsageDetail_20' ) end [2024-12-25 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096263', 'tblTempVendorCDR_20' ) start [2024-12-25 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096263', 'tblTempVendorCDR_20' ) end [2024-12-25 01:50:19] Production.INFO: ProcessCDR(1,14096263,1,1,2) [2024-12-25 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096263', 'tblTempUsageDetail_20' ) start [2024-12-25 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096263', 'tblTempUsageDetail_20' ) end [2024-12-25 01:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:50:22] Production.INFO: ==25373== Releasing lock... [2024-12-25 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:50:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-25 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:51:05 [end_date_ymd] => 2024-12-25 01:51:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:51:05' and `end` < '2024-12-25 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-25 01:51:17] Production.INFO: count ==1091 [2024-12-25 01:51:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:51:05 - End Time 2024-12-25 01:51:05 [2024-12-25 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096268', 'tblTempUsageDetail_20' ) start [2024-12-25 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096268', 'tblTempUsageDetail_20' ) end [2024-12-25 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096268', 'tblTempVendorCDR_20' ) start [2024-12-25 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096268', 'tblTempVendorCDR_20' ) end [2024-12-25 01:51:18] Production.INFO: ProcessCDR(1,14096268,1,1,2) [2024-12-25 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096268', 'tblTempUsageDetail_20' ) start [2024-12-25 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096268', 'tblTempUsageDetail_20' ) end [2024-12-25 01:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:51:21] Production.INFO: ==25459== Releasing lock... [2024-12-25 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:51:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:52:05 [end_date_ymd] => 2024-12-25 01:52:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:52:05' and `end` < '2024-12-25 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-25 01:52:19] Production.INFO: count ==1088 [2024-12-25 01:52:19] Production.ERROR: pbx CDR StartTime 2024-12-24 22:52:05 - End Time 2024-12-25 01:52:05 [2024-12-25 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096273', 'tblTempUsageDetail_20' ) start [2024-12-25 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096273', 'tblTempUsageDetail_20' ) end [2024-12-25 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096273', 'tblTempVendorCDR_20' ) start [2024-12-25 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096273', 'tblTempVendorCDR_20' ) end [2024-12-25 01:52:19] Production.INFO: ProcessCDR(1,14096273,1,1,2) [2024-12-25 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096273', 'tblTempUsageDetail_20' ) start [2024-12-25 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096273', 'tblTempUsageDetail_20' ) end [2024-12-25 01:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:52:23] Production.INFO: ==25536== Releasing lock... [2024-12-25 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:52:23] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:53:05 [end_date_ymd] => 2024-12-25 01:53:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:53:05' and `end` < '2024-12-25 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-25 01:53:19] Production.INFO: count ==1086 [2024-12-25 01:53:19] Production.ERROR: pbx CDR StartTime 2024-12-24 22:53:05 - End Time 2024-12-25 01:53:05 [2024-12-25 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096278', 'tblTempUsageDetail_20' ) start [2024-12-25 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096278', 'tblTempUsageDetail_20' ) end [2024-12-25 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096278', 'tblTempVendorCDR_20' ) start [2024-12-25 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096278', 'tblTempVendorCDR_20' ) end [2024-12-25 01:53:19] Production.INFO: ProcessCDR(1,14096278,1,1,2) [2024-12-25 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096278', 'tblTempUsageDetail_20' ) start [2024-12-25 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096278', 'tblTempUsageDetail_20' ) end [2024-12-25 01:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:53:22] Production.INFO: ==25648== Releasing lock... [2024-12-25 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:53:22] Production.INFO: 37 MB #Memory Used# [2024-12-25 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:54:05 [end_date_ymd] => 2024-12-25 01:54:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:54:05' and `end` < '2024-12-25 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-25 01:54:18] Production.INFO: count ==1065 [2024-12-25 01:54:19] Production.ERROR: pbx CDR StartTime 2024-12-24 22:54:05 - End Time 2024-12-25 01:54:05 [2024-12-25 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096283', 'tblTempUsageDetail_20' ) start [2024-12-25 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096283', 'tblTempUsageDetail_20' ) end [2024-12-25 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096283', 'tblTempVendorCDR_20' ) start [2024-12-25 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096283', 'tblTempVendorCDR_20' ) end [2024-12-25 01:54:19] Production.INFO: ProcessCDR(1,14096283,1,1,2) [2024-12-25 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096283', 'tblTempUsageDetail_20' ) start [2024-12-25 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096283', 'tblTempUsageDetail_20' ) end [2024-12-25 01:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:54:22] Production.INFO: ==25724== Releasing lock... [2024-12-25 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:54:22] Production.INFO: 37 MB #Memory Used# [2024-12-25 01:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:55:04 [end_date_ymd] => 2024-12-25 01:55:04 [RateCDR] => 1 ) [2024-12-25 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-24 22:55:04' and `end` < '2024-12-25 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-25 01:55:17] Production.INFO: count ==983 [2024-12-25 01:55:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:55:04 - End Time 2024-12-25 01:55:04 [2024-12-25 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096286', 'tblTempUsageDetail_20' ) start [2024-12-25 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096286', 'tblTempUsageDetail_20' ) end [2024-12-25 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096286', 'tblTempVendorCDR_20' ) start [2024-12-25 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096286', 'tblTempVendorCDR_20' ) end [2024-12-25 01:55:17] Production.INFO: ProcessCDR(1,14096286,1,1,2) [2024-12-25 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096286', 'tblTempUsageDetail_20' ) start [2024-12-25 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096286', 'tblTempUsageDetail_20' ) end [2024-12-25 01:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:55:20] Production.INFO: ==25805== Releasing lock... [2024-12-25 01:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:55:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-25 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:56:05 [end_date_ymd] => 2024-12-25 01:56:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:56:05' and `end` < '2024-12-25 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-25 01:56:19] Production.INFO: count ==900 [2024-12-25 01:56:19] Production.ERROR: pbx CDR StartTime 2024-12-24 22:56:05 - End Time 2024-12-25 01:56:05 [2024-12-25 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096293', 'tblTempUsageDetail_20' ) start [2024-12-25 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096293', 'tblTempUsageDetail_20' ) end [2024-12-25 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096293', 'tblTempVendorCDR_20' ) start [2024-12-25 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096293', 'tblTempVendorCDR_20' ) end [2024-12-25 01:56:19] Production.INFO: ProcessCDR(1,14096293,1,1,2) [2024-12-25 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096293', 'tblTempUsageDetail_20' ) start [2024-12-25 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096293', 'tblTempUsageDetail_20' ) end [2024-12-25 01:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:56:22] Production.INFO: ==25886== Releasing lock... [2024-12-25 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:56:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-25 01:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:57:04 [end_date_ymd] => 2024-12-25 01:57:04 [RateCDR] => 1 ) [2024-12-25 01:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 22:57:04' and `end` < '2024-12-25 01:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 01:57:18] Production.INFO: count ==818 [2024-12-25 01:57:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:57:04 - End Time 2024-12-25 01:57:04 [2024-12-25 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096298', 'tblTempUsageDetail_20' ) start [2024-12-25 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096298', 'tblTempUsageDetail_20' ) end [2024-12-25 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096298', 'tblTempVendorCDR_20' ) start [2024-12-25 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096298', 'tblTempVendorCDR_20' ) end [2024-12-25 01:57:18] Production.INFO: ProcessCDR(1,14096298,1,1,2) [2024-12-25 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096298', 'tblTempUsageDetail_20' ) start [2024-12-25 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096298', 'tblTempUsageDetail_20' ) end [2024-12-25 01:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:57:21] Production.INFO: ==25960== Releasing lock... [2024-12-25 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:57:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-25 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:58:05 [end_date_ymd] => 2024-12-25 01:58:05 [RateCDR] => 1 ) [2024-12-25 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-24 22:58:05' and `end` < '2024-12-25 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-25 01:58:18] Production.INFO: count ==727 [2024-12-25 01:58:18] Production.ERROR: pbx CDR StartTime 2024-12-24 22:58:05 - End Time 2024-12-25 01:58:05 [2024-12-25 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096303', 'tblTempUsageDetail_20' ) start [2024-12-25 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096303', 'tblTempUsageDetail_20' ) end [2024-12-25 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096303', 'tblTempVendorCDR_20' ) start [2024-12-25 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096303', 'tblTempVendorCDR_20' ) end [2024-12-25 01:58:18] Production.INFO: ProcessCDR(1,14096303,1,1,2) [2024-12-25 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096303', 'tblTempUsageDetail_20' ) start [2024-12-25 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096303', 'tblTempUsageDetail_20' ) end [2024-12-25 01:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:58:21] Production.INFO: ==26035== Releasing lock... [2024-12-25 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:58:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-25 01:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 22:59:04 [end_date_ymd] => 2024-12-25 01:59:04 [RateCDR] => 1 ) [2024-12-25 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-24 22:59:04' and `end` < '2024-12-25 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-25 01:59:16] Production.INFO: count ==639 [2024-12-25 01:59:17] Production.ERROR: pbx CDR StartTime 2024-12-24 22:59:04 - End Time 2024-12-25 01:59:04 [2024-12-25 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096308', 'tblTempUsageDetail_20' ) start [2024-12-25 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096308', 'tblTempUsageDetail_20' ) end [2024-12-25 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096308', 'tblTempVendorCDR_20' ) start [2024-12-25 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096308', 'tblTempVendorCDR_20' ) end [2024-12-25 01:59:17] Production.INFO: ProcessCDR(1,14096308,1,1,2) [2024-12-25 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096308', 'tblTempUsageDetail_20' ) start [2024-12-25 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096308', 'tblTempUsageDetail_20' ) end [2024-12-25 01:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 01:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 01:59:20] Production.INFO: ==26111== Releasing lock... [2024-12-25 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 01:59:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-25 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:00:06 [end_date_ymd] => 2024-12-25 02:00:06 [RateCDR] => 1 ) [2024-12-25 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-24 23:00:06' and `end` < '2024-12-25 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-25 02:00:18] Production.INFO: count ==600 [2024-12-25 02:00:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:00:06 - End Time 2024-12-25 02:00:06 [2024-12-25 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096313', 'tblTempUsageDetail_20' ) start [2024-12-25 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096313', 'tblTempUsageDetail_20' ) end [2024-12-25 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096313', 'tblTempVendorCDR_20' ) start [2024-12-25 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096313', 'tblTempVendorCDR_20' ) end [2024-12-25 02:00:18] Production.INFO: ProcessCDR(1,14096313,1,1,2) [2024-12-25 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096313', 'tblTempUsageDetail_20' ) start [2024-12-25 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096313', 'tblTempUsageDetail_20' ) end [2024-12-25 02:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:00:21] Production.INFO: ==26199== Releasing lock... [2024-12-25 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:00:21] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:01:05 [end_date_ymd] => 2024-12-25 02:01:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:01:05' and `end` < '2024-12-25 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-25 02:01:19] Production.INFO: count ==595 [2024-12-25 02:01:19] Production.ERROR: pbx CDR StartTime 2024-12-24 23:01:05 - End Time 2024-12-25 02:01:05 [2024-12-25 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096319', 'tblTempUsageDetail_20' ) start [2024-12-25 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096319', 'tblTempUsageDetail_20' ) end [2024-12-25 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096319', 'tblTempVendorCDR_20' ) start [2024-12-25 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096319', 'tblTempVendorCDR_20' ) end [2024-12-25 02:01:19] Production.INFO: ProcessCDR(1,14096319,1,1,2) [2024-12-25 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096319', 'tblTempUsageDetail_20' ) start [2024-12-25 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096319', 'tblTempUsageDetail_20' ) end [2024-12-25 02:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:01:22] Production.INFO: ==26385== Releasing lock... [2024-12-25 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:01:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-25 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:02:05 [end_date_ymd] => 2024-12-25 02:02:05 [RateCDR] => 1 ) [2024-12-25 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:02:05' and `end` < '2024-12-25 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:02:19] Production.INFO: count ==588 [2024-12-25 02:02:19] Production.ERROR: pbx CDR StartTime 2024-12-24 23:02:05 - End Time 2024-12-25 02:02:05 [2024-12-25 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096324', 'tblTempUsageDetail_20' ) start [2024-12-25 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096324', 'tblTempUsageDetail_20' ) end [2024-12-25 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096324', 'tblTempVendorCDR_20' ) start [2024-12-25 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096324', 'tblTempVendorCDR_20' ) end [2024-12-25 02:02:19] Production.INFO: ProcessCDR(1,14096324,1,1,2) [2024-12-25 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096324', 'tblTempUsageDetail_20' ) start [2024-12-25 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096324', 'tblTempUsageDetail_20' ) end [2024-12-25 02:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:02:22] Production.INFO: ==26459== Releasing lock... [2024-12-25 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:02:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-25 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:03:05 [end_date_ymd] => 2024-12-25 02:03:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:03:05' and `end` < '2024-12-25 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-25 02:03:17] Production.INFO: count ==578 [2024-12-25 02:03:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:03:05 - End Time 2024-12-25 02:03:05 [2024-12-25 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096329', 'tblTempUsageDetail_20' ) start [2024-12-25 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096329', 'tblTempUsageDetail_20' ) end [2024-12-25 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096329', 'tblTempVendorCDR_20' ) start [2024-12-25 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096329', 'tblTempVendorCDR_20' ) end [2024-12-25 02:03:17] Production.INFO: ProcessCDR(1,14096329,1,1,2) [2024-12-25 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096329', 'tblTempUsageDetail_20' ) start [2024-12-25 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096329', 'tblTempUsageDetail_20' ) end [2024-12-25 02:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:03:20] Production.INFO: ==26533== Releasing lock... [2024-12-25 02:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:03:20] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:04:04 [end_date_ymd] => 2024-12-25 02:04:04 [RateCDR] => 1 ) [2024-12-25 02:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:04:04' and `end` < '2024-12-25 02:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:04:17] Production.INFO: count ==576 [2024-12-25 02:04:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:04:04 - End Time 2024-12-25 02:04:04 [2024-12-25 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096334', 'tblTempUsageDetail_20' ) start [2024-12-25 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096334', 'tblTempUsageDetail_20' ) end [2024-12-25 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096334', 'tblTempVendorCDR_20' ) start [2024-12-25 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096334', 'tblTempVendorCDR_20' ) end [2024-12-25 02:04:17] Production.INFO: ProcessCDR(1,14096334,1,1,2) [2024-12-25 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096334', 'tblTempUsageDetail_20' ) start [2024-12-25 02:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096334', 'tblTempUsageDetail_20' ) end [2024-12-25 02:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:04:20] Production.INFO: ==26609== Releasing lock... [2024-12-25 02:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:04:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-25 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:05:05 [end_date_ymd] => 2024-12-25 02:05:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:05:05' and `end` < '2024-12-25 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-25 02:05:18] Production.INFO: count ==576 [2024-12-25 02:05:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:05:05 - End Time 2024-12-25 02:05:05 [2024-12-25 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096339', 'tblTempUsageDetail_20' ) start [2024-12-25 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096339', 'tblTempUsageDetail_20' ) end [2024-12-25 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096339', 'tblTempVendorCDR_20' ) start [2024-12-25 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096339', 'tblTempVendorCDR_20' ) end [2024-12-25 02:05:18] Production.INFO: ProcessCDR(1,14096339,1,1,2) [2024-12-25 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096339', 'tblTempUsageDetail_20' ) start [2024-12-25 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096339', 'tblTempUsageDetail_20' ) end [2024-12-25 02:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:05:22] Production.INFO: ==26685== Releasing lock... [2024-12-25 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:05:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-25 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:06:05 [end_date_ymd] => 2024-12-25 02:06:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:06:05' and `end` < '2024-12-25 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-25 02:06:17] Production.INFO: count ==578 [2024-12-25 02:06:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:06:05 - End Time 2024-12-25 02:06:05 [2024-12-25 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096344', 'tblTempUsageDetail_20' ) start [2024-12-25 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096344', 'tblTempUsageDetail_20' ) end [2024-12-25 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096344', 'tblTempVendorCDR_20' ) start [2024-12-25 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096344', 'tblTempVendorCDR_20' ) end [2024-12-25 02:06:17] Production.INFO: ProcessCDR(1,14096344,1,1,2) [2024-12-25 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096344', 'tblTempUsageDetail_20' ) start [2024-12-25 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096344', 'tblTempUsageDetail_20' ) end [2024-12-25 02:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:06:20] Production.INFO: ==26762== Releasing lock... [2024-12-25 02:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:06:20] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:07:05 [end_date_ymd] => 2024-12-25 02:07:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:07:05' and `end` < '2024-12-25 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-25 02:07:18] Production.INFO: count ==575 [2024-12-25 02:07:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:07:05 - End Time 2024-12-25 02:07:05 [2024-12-25 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096349', 'tblTempUsageDetail_20' ) start [2024-12-25 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096349', 'tblTempUsageDetail_20' ) end [2024-12-25 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096349', 'tblTempVendorCDR_20' ) start [2024-12-25 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096349', 'tblTempVendorCDR_20' ) end [2024-12-25 02:07:18] Production.INFO: ProcessCDR(1,14096349,1,1,2) [2024-12-25 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096349', 'tblTempUsageDetail_20' ) start [2024-12-25 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096349', 'tblTempUsageDetail_20' ) end [2024-12-25 02:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:07:21] Production.INFO: ==26839== Releasing lock... [2024-12-25 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:07:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-25 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:08:05 [end_date_ymd] => 2024-12-25 02:08:05 [RateCDR] => 1 ) [2024-12-25 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:08:05' and `end` < '2024-12-25 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:08:18] Production.INFO: count ==573 [2024-12-25 02:08:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:08:05 - End Time 2024-12-25 02:08:05 [2024-12-25 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096354', 'tblTempUsageDetail_20' ) start [2024-12-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096354', 'tblTempUsageDetail_20' ) end [2024-12-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096354', 'tblTempVendorCDR_20' ) start [2024-12-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096354', 'tblTempVendorCDR_20' ) end [2024-12-25 02:08:18] Production.INFO: ProcessCDR(1,14096354,1,1,2) [2024-12-25 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096354', 'tblTempUsageDetail_20' ) start [2024-12-25 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096354', 'tblTempUsageDetail_20' ) end [2024-12-25 02:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:08:22] Production.INFO: ==26955== Releasing lock... [2024-12-25 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:08:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-25 02:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:09:04 [end_date_ymd] => 2024-12-25 02:09:04 [RateCDR] => 1 ) [2024-12-25 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-24 23:09:04' and `end` < '2024-12-25 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-25 02:09:16] Production.INFO: count ==571 [2024-12-25 02:09:16] Production.ERROR: pbx CDR StartTime 2024-12-24 23:09:04 - End Time 2024-12-25 02:09:04 [2024-12-25 02:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096359', 'tblTempUsageDetail_20' ) start [2024-12-25 02:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096359', 'tblTempUsageDetail_20' ) end [2024-12-25 02:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096359', 'tblTempVendorCDR_20' ) start [2024-12-25 02:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096359', 'tblTempVendorCDR_20' ) end [2024-12-25 02:09:16] Production.INFO: ProcessCDR(1,14096359,1,1,2) [2024-12-25 02:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096359', 'tblTempUsageDetail_20' ) start [2024-12-25 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096359', 'tblTempUsageDetail_20' ) end [2024-12-25 02:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:09:20] Production.INFO: ==27027== Releasing lock... [2024-12-25 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:09:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-25 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:10:05 [end_date_ymd] => 2024-12-25 02:10:05 [RateCDR] => 1 ) [2024-12-25 02:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:10:05' and `end` < '2024-12-25 02:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:10:18] Production.INFO: count ==580 [2024-12-25 02:10:19] Production.ERROR: pbx CDR StartTime 2024-12-24 23:10:05 - End Time 2024-12-25 02:10:05 [2024-12-25 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096365', 'tblTempUsageDetail_20' ) start [2024-12-25 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096365', 'tblTempUsageDetail_20' ) end [2024-12-25 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096365', 'tblTempVendorCDR_20' ) start [2024-12-25 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096365', 'tblTempVendorCDR_20' ) end [2024-12-25 02:10:19] Production.INFO: ProcessCDR(1,14096365,1,1,2) [2024-12-25 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096365', 'tblTempUsageDetail_20' ) start [2024-12-25 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096365', 'tblTempUsageDetail_20' ) end [2024-12-25 02:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:10:22] Production.INFO: ==27105== Releasing lock... [2024-12-25 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:10:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-25 02:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:11:04 [end_date_ymd] => 2024-12-25 02:11:04 [RateCDR] => 1 ) [2024-12-25 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-24 23:11:04' and `end` < '2024-12-25 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-25 02:11:17] Production.INFO: count ==593 [2024-12-25 02:11:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:11:04 - End Time 2024-12-25 02:11:04 [2024-12-25 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096370', 'tblTempUsageDetail_20' ) start [2024-12-25 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096370', 'tblTempUsageDetail_20' ) end [2024-12-25 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096370', 'tblTempVendorCDR_20' ) start [2024-12-25 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096370', 'tblTempVendorCDR_20' ) end [2024-12-25 02:11:17] Production.INFO: ProcessCDR(1,14096370,1,1,2) [2024-12-25 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096370', 'tblTempUsageDetail_20' ) start [2024-12-25 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096370', 'tblTempUsageDetail_20' ) end [2024-12-25 02:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:11:20] Production.INFO: ==27186== Releasing lock... [2024-12-25 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:11:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:12:05 [end_date_ymd] => 2024-12-25 02:12:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:12:05' and `end` < '2024-12-25 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-25 02:12:19] Production.INFO: count ==592 [2024-12-25 02:12:19] Production.ERROR: pbx CDR StartTime 2024-12-24 23:12:05 - End Time 2024-12-25 02:12:05 [2024-12-25 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096375', 'tblTempUsageDetail_20' ) start [2024-12-25 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096375', 'tblTempUsageDetail_20' ) end [2024-12-25 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096375', 'tblTempVendorCDR_20' ) start [2024-12-25 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096375', 'tblTempVendorCDR_20' ) end [2024-12-25 02:12:19] Production.INFO: ProcessCDR(1,14096375,1,1,2) [2024-12-25 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096375', 'tblTempUsageDetail_20' ) start [2024-12-25 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096375', 'tblTempUsageDetail_20' ) end [2024-12-25 02:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:12:22] Production.INFO: ==27262== Releasing lock... [2024-12-25 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:12:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-25 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:13:05 [end_date_ymd] => 2024-12-25 02:13:05 [RateCDR] => 1 ) [2024-12-25 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:13:05' and `end` < '2024-12-25 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:13:18] Production.INFO: count ==590 [2024-12-25 02:13:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:13:05 - End Time 2024-12-25 02:13:05 [2024-12-25 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096380', 'tblTempUsageDetail_20' ) start [2024-12-25 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096380', 'tblTempUsageDetail_20' ) end [2024-12-25 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096380', 'tblTempVendorCDR_20' ) start [2024-12-25 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096380', 'tblTempVendorCDR_20' ) end [2024-12-25 02:13:18] Production.INFO: ProcessCDR(1,14096380,1,1,2) [2024-12-25 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096380', 'tblTempUsageDetail_20' ) start [2024-12-25 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096380', 'tblTempUsageDetail_20' ) end [2024-12-25 02:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:13:22] Production.INFO: ==27399== Releasing lock... [2024-12-25 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:13:22] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:14:05 [end_date_ymd] => 2024-12-25 02:14:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:14:05' and `end` < '2024-12-25 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-25 02:14:17] Production.INFO: count ==590 [2024-12-25 02:14:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:14:05 - End Time 2024-12-25 02:14:05 [2024-12-25 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096385', 'tblTempUsageDetail_20' ) start [2024-12-25 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096385', 'tblTempUsageDetail_20' ) end [2024-12-25 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096385', 'tblTempVendorCDR_20' ) start [2024-12-25 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096385', 'tblTempVendorCDR_20' ) end [2024-12-25 02:14:17] Production.INFO: ProcessCDR(1,14096385,1,1,2) [2024-12-25 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096385', 'tblTempUsageDetail_20' ) start [2024-12-25 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096385', 'tblTempUsageDetail_20' ) end [2024-12-25 02:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:14:21] Production.INFO: ==27485== Releasing lock... [2024-12-25 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:14:21] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:15:04 [end_date_ymd] => 2024-12-25 02:15:04 [RateCDR] => 1 ) [2024-12-25 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-24 23:15:04' and `end` < '2024-12-25 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-25 02:15:17] Production.INFO: count ==589 [2024-12-25 02:15:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:15:04 - End Time 2024-12-25 02:15:04 [2024-12-25 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096390', 'tblTempUsageDetail_20' ) start [2024-12-25 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096390', 'tblTempUsageDetail_20' ) end [2024-12-25 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096390', 'tblTempVendorCDR_20' ) start [2024-12-25 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096390', 'tblTempVendorCDR_20' ) end [2024-12-25 02:15:17] Production.INFO: ProcessCDR(1,14096390,1,1,2) [2024-12-25 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096390', 'tblTempUsageDetail_20' ) start [2024-12-25 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096390', 'tblTempUsageDetail_20' ) end [2024-12-25 02:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:15:20] Production.INFO: ==27560== Releasing lock... [2024-12-25 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:15:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:16:05 [end_date_ymd] => 2024-12-25 02:16:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:16:05' and `end` < '2024-12-25 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-25 02:16:19] Production.INFO: count ==589 [2024-12-25 02:16:19] Production.ERROR: pbx CDR StartTime 2024-12-24 23:16:05 - End Time 2024-12-25 02:16:05 [2024-12-25 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096395', 'tblTempUsageDetail_20' ) start [2024-12-25 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096395', 'tblTempUsageDetail_20' ) end [2024-12-25 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096395', 'tblTempVendorCDR_20' ) start [2024-12-25 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096395', 'tblTempVendorCDR_20' ) end [2024-12-25 02:16:19] Production.INFO: ProcessCDR(1,14096395,1,1,2) [2024-12-25 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096395', 'tblTempUsageDetail_20' ) start [2024-12-25 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096395', 'tblTempUsageDetail_20' ) end [2024-12-25 02:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:16:22] Production.INFO: ==27642== Releasing lock... [2024-12-25 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:16:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:17:05 [end_date_ymd] => 2024-12-25 02:17:05 [RateCDR] => 1 ) [2024-12-25 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:17:05' and `end` < '2024-12-25 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:17:18] Production.INFO: count ==589 [2024-12-25 02:17:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:17:05 - End Time 2024-12-25 02:17:05 [2024-12-25 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096400', 'tblTempUsageDetail_20' ) start [2024-12-25 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096400', 'tblTempUsageDetail_20' ) end [2024-12-25 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096400', 'tblTempVendorCDR_20' ) start [2024-12-25 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096400', 'tblTempVendorCDR_20' ) end [2024-12-25 02:17:18] Production.INFO: ProcessCDR(1,14096400,1,1,2) [2024-12-25 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096400', 'tblTempUsageDetail_20' ) start [2024-12-25 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096400', 'tblTempUsageDetail_20' ) end [2024-12-25 02:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:17:21] Production.INFO: ==27719== Releasing lock... [2024-12-25 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:17:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:18:04 [end_date_ymd] => 2024-12-25 02:18:04 [RateCDR] => 1 ) [2024-12-25 02: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-24 23:18:04' and `end` < '2024-12-25 02: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-25 02:18:17] Production.INFO: count ==589 [2024-12-25 02:18:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:18:04 - End Time 2024-12-25 02:18:04 [2024-12-25 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096405', 'tblTempUsageDetail_20' ) start [2024-12-25 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096405', 'tblTempUsageDetail_20' ) end [2024-12-25 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096405', 'tblTempVendorCDR_20' ) start [2024-12-25 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096405', 'tblTempVendorCDR_20' ) end [2024-12-25 02:18:17] Production.INFO: ProcessCDR(1,14096405,1,1,2) [2024-12-25 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096405', 'tblTempUsageDetail_20' ) start [2024-12-25 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096405', 'tblTempUsageDetail_20' ) end [2024-12-25 02:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:18:20] Production.INFO: ==27792== Releasing lock... [2024-12-25 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:18:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:19:05 [end_date_ymd] => 2024-12-25 02:19:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:19:05' and `end` < '2024-12-25 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-25 02:19:17] Production.INFO: count ==589 [2024-12-25 02:19:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:19:05 - End Time 2024-12-25 02:19:05 [2024-12-25 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096410', 'tblTempUsageDetail_20' ) start [2024-12-25 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096410', 'tblTempUsageDetail_20' ) end [2024-12-25 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096410', 'tblTempVendorCDR_20' ) start [2024-12-25 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096410', 'tblTempVendorCDR_20' ) end [2024-12-25 02:19:17] Production.INFO: ProcessCDR(1,14096410,1,1,2) [2024-12-25 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096410', 'tblTempUsageDetail_20' ) start [2024-12-25 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096410', 'tblTempUsageDetail_20' ) end [2024-12-25 02:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:19:20] Production.INFO: ==27869== Releasing lock... [2024-12-25 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:19:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:20:05 [end_date_ymd] => 2024-12-25 02:20:05 [RateCDR] => 1 ) [2024-12-25 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:20:05' and `end` < '2024-12-25 02:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:20:17] Production.INFO: count ==590 [2024-12-25 02:20:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:20:05 - End Time 2024-12-25 02:20:05 [2024-12-25 02:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096416', 'tblTempUsageDetail_20' ) start [2024-12-25 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096416', 'tblTempUsageDetail_20' ) end [2024-12-25 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096416', 'tblTempVendorCDR_20' ) start [2024-12-25 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096416', 'tblTempVendorCDR_20' ) end [2024-12-25 02:20:17] Production.INFO: ProcessCDR(1,14096416,1,1,2) [2024-12-25 02:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096416', 'tblTempUsageDetail_20' ) start [2024-12-25 02:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096416', 'tblTempUsageDetail_20' ) end [2024-12-25 02:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:20:20] Production.INFO: ==27944== Releasing lock... [2024-12-25 02:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:20:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:21:05 [end_date_ymd] => 2024-12-25 02:21:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:21:05' and `end` < '2024-12-25 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-25 02:21:17] Production.INFO: count ==598 [2024-12-25 02:21:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:21:05 - End Time 2024-12-25 02:21:05 [2024-12-25 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096421', 'tblTempUsageDetail_20' ) start [2024-12-25 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096421', 'tblTempUsageDetail_20' ) end [2024-12-25 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096421', 'tblTempVendorCDR_20' ) start [2024-12-25 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096421', 'tblTempVendorCDR_20' ) end [2024-12-25 02:21:17] Production.INFO: ProcessCDR(1,14096421,1,1,2) [2024-12-25 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096421', 'tblTempUsageDetail_20' ) start [2024-12-25 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096421', 'tblTempUsageDetail_20' ) end [2024-12-25 02:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:21:21] Production.INFO: ==28024== Releasing lock... [2024-12-25 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:21:21] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:22:04 [end_date_ymd] => 2024-12-25 02:22:04 [RateCDR] => 1 ) [2024-12-25 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-24 23:22:04' and `end` < '2024-12-25 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-25 02:22:17] Production.INFO: count ==598 [2024-12-25 02:22:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:22:04 - End Time 2024-12-25 02:22:04 [2024-12-25 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096426', 'tblTempUsageDetail_20' ) start [2024-12-25 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096426', 'tblTempUsageDetail_20' ) end [2024-12-25 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096426', 'tblTempVendorCDR_20' ) start [2024-12-25 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096426', 'tblTempVendorCDR_20' ) end [2024-12-25 02:22:18] Production.INFO: ProcessCDR(1,14096426,1,1,2) [2024-12-25 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096426', 'tblTempUsageDetail_20' ) start [2024-12-25 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096426', 'tblTempUsageDetail_20' ) end [2024-12-25 02:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:22:22] Production.INFO: ==28100== Releasing lock... [2024-12-25 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:22:22] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:23:04 [end_date_ymd] => 2024-12-25 02:23:04 [RateCDR] => 1 ) [2024-12-25 02:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:23:04' and `end` < '2024-12-25 02:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:23:17] Production.INFO: count ==597 [2024-12-25 02:23:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:23:04 - End Time 2024-12-25 02:23:04 [2024-12-25 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096431', 'tblTempUsageDetail_20' ) start [2024-12-25 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096431', 'tblTempUsageDetail_20' ) end [2024-12-25 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096431', 'tblTempVendorCDR_20' ) start [2024-12-25 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096431', 'tblTempVendorCDR_20' ) end [2024-12-25 02:23:17] Production.INFO: ProcessCDR(1,14096431,1,1,2) [2024-12-25 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096431', 'tblTempUsageDetail_20' ) start [2024-12-25 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096431', 'tblTempUsageDetail_20' ) end [2024-12-25 02:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:23:21] Production.INFO: ==28178== Releasing lock... [2024-12-25 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:23:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:24:05 [end_date_ymd] => 2024-12-25 02:24:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:24:05' and `end` < '2024-12-25 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:24:18] Production.INFO: count ==595 [2024-12-25 02:24:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:24:05 - End Time 2024-12-25 02:24:05 [2024-12-25 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096436', 'tblTempUsageDetail_20' ) start [2024-12-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096436', 'tblTempUsageDetail_20' ) end [2024-12-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096436', 'tblTempVendorCDR_20' ) start [2024-12-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096436', 'tblTempVendorCDR_20' ) end [2024-12-25 02:24:18] Production.INFO: ProcessCDR(1,14096436,1,1,2) [2024-12-25 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096436', 'tblTempUsageDetail_20' ) start [2024-12-25 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096436', 'tblTempUsageDetail_20' ) end [2024-12-25 02:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:24:21] Production.INFO: ==28293== Releasing lock... [2024-12-25 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:24:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:25:05 [end_date_ymd] => 2024-12-25 02:25:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:25:05' and `end` < '2024-12-25 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-25 02:25:17] Production.INFO: count ==594 [2024-12-25 02:25:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:25:05 - End Time 2024-12-25 02:25:05 [2024-12-25 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096441', 'tblTempUsageDetail_20' ) start [2024-12-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096441', 'tblTempUsageDetail_20' ) end [2024-12-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096441', 'tblTempVendorCDR_20' ) start [2024-12-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096441', 'tblTempVendorCDR_20' ) end [2024-12-25 02:25:17] Production.INFO: ProcessCDR(1,14096441,1,1,2) [2024-12-25 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096441', 'tblTempUsageDetail_20' ) start [2024-12-25 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096441', 'tblTempUsageDetail_20' ) end [2024-12-25 02:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:25:20] Production.INFO: ==28367== Releasing lock... [2024-12-25 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:25:20] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:26:05 [end_date_ymd] => 2024-12-25 02:26:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:26:05' and `end` < '2024-12-25 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-25 02:26:18] Production.INFO: count ==586 [2024-12-25 02:26:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:26:05 - End Time 2024-12-25 02:26:05 [2024-12-25 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096446', 'tblTempUsageDetail_20' ) start [2024-12-25 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096446', 'tblTempUsageDetail_20' ) end [2024-12-25 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096446', 'tblTempVendorCDR_20' ) start [2024-12-25 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096446', 'tblTempVendorCDR_20' ) end [2024-12-25 02:26:18] Production.INFO: ProcessCDR(1,14096446,1,1,2) [2024-12-25 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096446', 'tblTempUsageDetail_20' ) start [2024-12-25 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096446', 'tblTempUsageDetail_20' ) end [2024-12-25 02:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:26:21] Production.INFO: ==28444== Releasing lock... [2024-12-25 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:26:21] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:27:05 [end_date_ymd] => 2024-12-25 02:27:05 [RateCDR] => 1 ) [2024-12-25 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:27:05' and `end` < '2024-12-25 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:27:17] Production.INFO: count ==571 [2024-12-25 02:27:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:27:05 - End Time 2024-12-25 02:27:05 [2024-12-25 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096451', 'tblTempUsageDetail_20' ) start [2024-12-25 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096451', 'tblTempUsageDetail_20' ) end [2024-12-25 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096451', 'tblTempVendorCDR_20' ) start [2024-12-25 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096451', 'tblTempVendorCDR_20' ) end [2024-12-25 02:27:17] Production.INFO: ProcessCDR(1,14096451,1,1,2) [2024-12-25 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096451', 'tblTempUsageDetail_20' ) start [2024-12-25 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096451', 'tblTempUsageDetail_20' ) end [2024-12-25 02:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:27:20] Production.INFO: ==28528== Releasing lock... [2024-12-25 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:27:20] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:28:05 [end_date_ymd] => 2024-12-25 02:28:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:28:05' and `end` < '2024-12-25 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-25 02:28:17] Production.INFO: count ==568 [2024-12-25 02:28:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:28:05 - End Time 2024-12-25 02:28:05 [2024-12-25 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096456', 'tblTempUsageDetail_20' ) start [2024-12-25 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096456', 'tblTempUsageDetail_20' ) end [2024-12-25 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096456', 'tblTempVendorCDR_20' ) start [2024-12-25 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096456', 'tblTempVendorCDR_20' ) end [2024-12-25 02:28:18] Production.INFO: ProcessCDR(1,14096456,1,1,2) [2024-12-25 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096456', 'tblTempUsageDetail_20' ) start [2024-12-25 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096456', 'tblTempUsageDetail_20' ) end [2024-12-25 02:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:28:21] Production.INFO: ==28604== Releasing lock... [2024-12-25 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:28:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:29:05 [end_date_ymd] => 2024-12-25 02:29:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:29:05' and `end` < '2024-12-25 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-25 02:29:19] Production.INFO: count ==566 [2024-12-25 02:29:19] Production.ERROR: pbx CDR StartTime 2024-12-24 23:29:05 - End Time 2024-12-25 02:29:05 [2024-12-25 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096461', 'tblTempUsageDetail_20' ) start [2024-12-25 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096461', 'tblTempUsageDetail_20' ) end [2024-12-25 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096461', 'tblTempVendorCDR_20' ) start [2024-12-25 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096461', 'tblTempVendorCDR_20' ) end [2024-12-25 02:29:19] Production.INFO: ProcessCDR(1,14096461,1,1,2) [2024-12-25 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096461', 'tblTempUsageDetail_20' ) start [2024-12-25 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096461', 'tblTempUsageDetail_20' ) end [2024-12-25 02:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:29:22] Production.INFO: ==28677== Releasing lock... [2024-12-25 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:29:22] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:30:05 [end_date_ymd] => 2024-12-25 02:30:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:30:05' and `end` < '2024-12-25 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-25 02:30:18] Production.INFO: count ==572 [2024-12-25 02:30:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:30:05 - End Time 2024-12-25 02:30:05 [2024-12-25 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096467', 'tblTempUsageDetail_20' ) start [2024-12-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096467', 'tblTempUsageDetail_20' ) end [2024-12-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096467', 'tblTempVendorCDR_20' ) start [2024-12-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096467', 'tblTempVendorCDR_20' ) end [2024-12-25 02:30:18] Production.INFO: ProcessCDR(1,14096467,1,1,2) [2024-12-25 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096467', 'tblTempUsageDetail_20' ) start [2024-12-25 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096467', 'tblTempUsageDetail_20' ) end [2024-12-25 02:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:30:21] Production.INFO: ==28757== Releasing lock... [2024-12-25 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:30:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:31:05 [end_date_ymd] => 2024-12-25 02:31:05 [RateCDR] => 1 ) [2024-12-25 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:31:05' and `end` < '2024-12-25 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:31:19] Production.INFO: count ==575 [2024-12-25 02:31:19] Production.ERROR: pbx CDR StartTime 2024-12-24 23:31:05 - End Time 2024-12-25 02:31:05 [2024-12-25 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096472', 'tblTempUsageDetail_20' ) start [2024-12-25 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096472', 'tblTempUsageDetail_20' ) end [2024-12-25 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096472', 'tblTempVendorCDR_20' ) start [2024-12-25 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096472', 'tblTempVendorCDR_20' ) end [2024-12-25 02:31:19] Production.INFO: ProcessCDR(1,14096472,1,1,2) [2024-12-25 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096472', 'tblTempUsageDetail_20' ) start [2024-12-25 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096472', 'tblTempUsageDetail_20' ) end [2024-12-25 02:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:31:22] Production.INFO: ==28836== Releasing lock... [2024-12-25 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:31:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-25 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:32:05 [end_date_ymd] => 2024-12-25 02:32:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:32:05' and `end` < '2024-12-25 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-25 02:32:19] Production.INFO: count ==574 [2024-12-25 02:32:19] Production.ERROR: pbx CDR StartTime 2024-12-24 23:32:05 - End Time 2024-12-25 02:32:05 [2024-12-25 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096476', 'tblTempUsageDetail_20' ) start [2024-12-25 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096476', 'tblTempUsageDetail_20' ) end [2024-12-25 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096476', 'tblTempVendorCDR_20' ) start [2024-12-25 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096476', 'tblTempVendorCDR_20' ) end [2024-12-25 02:32:19] Production.INFO: ProcessCDR(1,14096476,1,1,2) [2024-12-25 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096476', 'tblTempUsageDetail_20' ) start [2024-12-25 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096476', 'tblTempUsageDetail_20' ) end [2024-12-25 02:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:32:22] Production.INFO: ==28913== Releasing lock... [2024-12-25 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:32:22] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:33:06 [end_date_ymd] => 2024-12-25 02:33:06 [RateCDR] => 1 ) [2024-12-25 02:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:33:06' and `end` < '2024-12-25 02:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:33:18] Production.INFO: count ==573 [2024-12-25 02:33:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:33:06 - End Time 2024-12-25 02:33:06 [2024-12-25 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096482', 'tblTempUsageDetail_20' ) start [2024-12-25 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096482', 'tblTempUsageDetail_20' ) end [2024-12-25 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096482', 'tblTempVendorCDR_20' ) start [2024-12-25 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096482', 'tblTempVendorCDR_20' ) end [2024-12-25 02:33:18] Production.INFO: ProcessCDR(1,14096482,1,1,2) [2024-12-25 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096482', 'tblTempUsageDetail_20' ) start [2024-12-25 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096482', 'tblTempUsageDetail_20' ) end [2024-12-25 02:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:33:21] Production.INFO: ==28991== Releasing lock... [2024-12-25 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:33:21] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:34:05 [end_date_ymd] => 2024-12-25 02:34:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:34:05' and `end` < '2024-12-25 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-25 02:34:18] Production.INFO: count ==566 [2024-12-25 02:34:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:34:05 - End Time 2024-12-25 02:34:05 [2024-12-25 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096487', 'tblTempUsageDetail_20' ) start [2024-12-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096487', 'tblTempUsageDetail_20' ) end [2024-12-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096487', 'tblTempVendorCDR_20' ) start [2024-12-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096487', 'tblTempVendorCDR_20' ) end [2024-12-25 02:34:18] Production.INFO: ProcessCDR(1,14096487,1,1,2) [2024-12-25 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096487', 'tblTempUsageDetail_20' ) start [2024-12-25 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096487', 'tblTempUsageDetail_20' ) end [2024-12-25 02:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:34:21] Production.INFO: ==29063== Releasing lock... [2024-12-25 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:34:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:35:05 [end_date_ymd] => 2024-12-25 02:35:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:35:05' and `end` < '2024-12-25 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-25 02:35:18] Production.INFO: count ==558 [2024-12-25 02:35:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:35:05 - End Time 2024-12-25 02:35:05 [2024-12-25 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096492', 'tblTempUsageDetail_20' ) start [2024-12-25 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096492', 'tblTempUsageDetail_20' ) end [2024-12-25 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096492', 'tblTempVendorCDR_20' ) start [2024-12-25 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096492', 'tblTempVendorCDR_20' ) end [2024-12-25 02:35:18] Production.INFO: ProcessCDR(1,14096492,1,1,2) [2024-12-25 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096492', 'tblTempUsageDetail_20' ) start [2024-12-25 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096492', 'tblTempUsageDetail_20' ) end [2024-12-25 02:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:35:21] Production.INFO: ==29141== Releasing lock... [2024-12-25 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:35:21] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:36:05 [end_date_ymd] => 2024-12-25 02:36:05 [RateCDR] => 1 ) [2024-12-25 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:36:05' and `end` < '2024-12-25 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:36:17] Production.INFO: count ==555 [2024-12-25 02:36:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:36:05 - End Time 2024-12-25 02:36:05 [2024-12-25 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096497', 'tblTempUsageDetail_20' ) start [2024-12-25 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096497', 'tblTempUsageDetail_20' ) end [2024-12-25 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096497', 'tblTempVendorCDR_20' ) start [2024-12-25 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096497', 'tblTempVendorCDR_20' ) end [2024-12-25 02:36:17] Production.INFO: ProcessCDR(1,14096497,1,1,2) [2024-12-25 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096497', 'tblTempUsageDetail_20' ) start [2024-12-25 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096497', 'tblTempUsageDetail_20' ) end [2024-12-25 02:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:36:20] Production.INFO: ==29217== Releasing lock... [2024-12-25 02:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:36:20] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:37:05 [end_date_ymd] => 2024-12-25 02:37:05 [RateCDR] => 1 ) [2024-12-25 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:37:05' and `end` < '2024-12-25 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:37:19] Production.INFO: count ==556 [2024-12-25 02:37:19] Production.ERROR: pbx CDR StartTime 2024-12-24 23:37:05 - End Time 2024-12-25 02:37:05 [2024-12-25 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096502', 'tblTempUsageDetail_20' ) start [2024-12-25 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096502', 'tblTempUsageDetail_20' ) end [2024-12-25 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096502', 'tblTempVendorCDR_20' ) start [2024-12-25 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096502', 'tblTempVendorCDR_20' ) end [2024-12-25 02:37:19] Production.INFO: ProcessCDR(1,14096502,1,1,2) [2024-12-25 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096502', 'tblTempUsageDetail_20' ) start [2024-12-25 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096502', 'tblTempUsageDetail_20' ) end [2024-12-25 02:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:37:22] Production.INFO: ==29296== Releasing lock... [2024-12-25 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:37:22] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:38:04 [end_date_ymd] => 2024-12-25 02:38:04 [RateCDR] => 1 ) [2024-12-25 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-24 23:38:04' and `end` < '2024-12-25 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-25 02:38:18] Production.INFO: count ==556 [2024-12-25 02:38:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:38:04 - End Time 2024-12-25 02:38:04 [2024-12-25 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096507', 'tblTempUsageDetail_20' ) start [2024-12-25 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096507', 'tblTempUsageDetail_20' ) end [2024-12-25 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096507', 'tblTempVendorCDR_20' ) start [2024-12-25 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096507', 'tblTempVendorCDR_20' ) end [2024-12-25 02:38:18] Production.INFO: ProcessCDR(1,14096507,1,1,2) [2024-12-25 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096507', 'tblTempUsageDetail_20' ) start [2024-12-25 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096507', 'tblTempUsageDetail_20' ) end [2024-12-25 02:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:38:21] Production.INFO: ==29369== Releasing lock... [2024-12-25 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:38:21] Production.INFO: 33 MB #Memory Used# [2024-12-25 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:39:05 [end_date_ymd] => 2024-12-25 02:39:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:39:05' and `end` < '2024-12-25 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-25 02:39:17] Production.INFO: count ==552 [2024-12-25 02:39:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:39:05 - End Time 2024-12-25 02:39:05 [2024-12-25 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096512', 'tblTempUsageDetail_20' ) start [2024-12-25 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096512', 'tblTempUsageDetail_20' ) end [2024-12-25 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096512', 'tblTempVendorCDR_20' ) start [2024-12-25 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096512', 'tblTempVendorCDR_20' ) end [2024-12-25 02:39:17] Production.INFO: ProcessCDR(1,14096512,1,1,2) [2024-12-25 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096512', 'tblTempUsageDetail_20' ) start [2024-12-25 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096512', 'tblTempUsageDetail_20' ) end [2024-12-25 02:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:39:20] Production.INFO: ==29447== Releasing lock... [2024-12-25 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:39:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:40:05 [end_date_ymd] => 2024-12-25 02:40:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:40:05' and `end` < '2024-12-25 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-25 02:40:17] Production.INFO: count ==544 [2024-12-25 02:40:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:40:05 - End Time 2024-12-25 02:40:05 [2024-12-25 02:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096518', 'tblTempUsageDetail_20' ) start [2024-12-25 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096518', 'tblTempUsageDetail_20' ) end [2024-12-25 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096518', 'tblTempVendorCDR_20' ) start [2024-12-25 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096518', 'tblTempVendorCDR_20' ) end [2024-12-25 02:40:17] Production.INFO: ProcessCDR(1,14096518,1,1,2) [2024-12-25 02:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096518', 'tblTempUsageDetail_20' ) start [2024-12-25 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096518', 'tblTempUsageDetail_20' ) end [2024-12-25 02:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:40:21] Production.INFO: ==29562== Releasing lock... [2024-12-25 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:40:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:41:05 [end_date_ymd] => 2024-12-25 02:41:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:41:05' and `end` < '2024-12-25 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:41:18] Production.INFO: count ==539 [2024-12-25 02:41:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:41:05 - End Time 2024-12-25 02:41:05 [2024-12-25 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096523', 'tblTempUsageDetail_20' ) start [2024-12-25 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096523', 'tblTempUsageDetail_20' ) end [2024-12-25 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096523', 'tblTempVendorCDR_20' ) start [2024-12-25 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096523', 'tblTempVendorCDR_20' ) end [2024-12-25 02:41:18] Production.INFO: ProcessCDR(1,14096523,1,1,2) [2024-12-25 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096523', 'tblTempUsageDetail_20' ) start [2024-12-25 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096523', 'tblTempUsageDetail_20' ) end [2024-12-25 02:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:41:21] Production.INFO: ==29641== Releasing lock... [2024-12-25 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:41:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-25 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:42:05 [end_date_ymd] => 2024-12-25 02:42:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:42:05' and `end` < '2024-12-25 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-25 02:42:17] Production.INFO: count ==538 [2024-12-25 02:42:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:42:05 - End Time 2024-12-25 02:42:05 [2024-12-25 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096528', 'tblTempUsageDetail_20' ) start [2024-12-25 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096528', 'tblTempUsageDetail_20' ) end [2024-12-25 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096528', 'tblTempVendorCDR_20' ) start [2024-12-25 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096528', 'tblTempVendorCDR_20' ) end [2024-12-25 02:42:18] Production.INFO: ProcessCDR(1,14096528,1,1,2) [2024-12-25 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096528', 'tblTempUsageDetail_20' ) start [2024-12-25 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096528', 'tblTempUsageDetail_20' ) end [2024-12-25 02:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:42:21] Production.INFO: ==29717== Releasing lock... [2024-12-25 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:42:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-25 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:43:05 [end_date_ymd] => 2024-12-25 02:43:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:43:05' and `end` < '2024-12-25 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-25 02:43:18] Production.INFO: count ==532 [2024-12-25 02:43:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:43:05 - End Time 2024-12-25 02:43:05 [2024-12-25 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096533', 'tblTempUsageDetail_20' ) start [2024-12-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096533', 'tblTempUsageDetail_20' ) end [2024-12-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096533', 'tblTempVendorCDR_20' ) start [2024-12-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096533', 'tblTempVendorCDR_20' ) end [2024-12-25 02:43:18] Production.INFO: ProcessCDR(1,14096533,1,1,2) [2024-12-25 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096533', 'tblTempUsageDetail_20' ) start [2024-12-25 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096533', 'tblTempUsageDetail_20' ) end [2024-12-25 02:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:43:21] Production.INFO: ==29819== Releasing lock... [2024-12-25 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:43:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-25 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:44:05 [end_date_ymd] => 2024-12-25 02:44:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:44:05' and `end` < '2024-12-25 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-25 02:44:18] Production.INFO: count ==529 [2024-12-25 02:44:19] Production.ERROR: pbx CDR StartTime 2024-12-24 23:44:05 - End Time 2024-12-25 02:44:05 [2024-12-25 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096538', 'tblTempUsageDetail_20' ) start [2024-12-25 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096538', 'tblTempUsageDetail_20' ) end [2024-12-25 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096538', 'tblTempVendorCDR_20' ) start [2024-12-25 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096538', 'tblTempVendorCDR_20' ) end [2024-12-25 02:44:19] Production.INFO: ProcessCDR(1,14096538,1,1,2) [2024-12-25 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096538', 'tblTempUsageDetail_20' ) start [2024-12-25 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096538', 'tblTempUsageDetail_20' ) end [2024-12-25 02:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:44:22] Production.INFO: ==29898== Releasing lock... [2024-12-25 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:44:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-25 02:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:45:04 [end_date_ymd] => 2024-12-25 02:45:04 [RateCDR] => 1 ) [2024-12-25 02:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:45:04' and `end` < '2024-12-25 02:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:45:17] Production.INFO: count ==521 [2024-12-25 02:45:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:45:04 - End Time 2024-12-25 02:45:04 [2024-12-25 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096543', 'tblTempUsageDetail_20' ) start [2024-12-25 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096543', 'tblTempUsageDetail_20' ) end [2024-12-25 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096543', 'tblTempVendorCDR_20' ) start [2024-12-25 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096543', 'tblTempVendorCDR_20' ) end [2024-12-25 02:45:17] Production.INFO: ProcessCDR(1,14096543,1,1,2) [2024-12-25 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096543', 'tblTempUsageDetail_20' ) start [2024-12-25 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096543', 'tblTempUsageDetail_20' ) end [2024-12-25 02:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:45:20] Production.INFO: ==29974== Releasing lock... [2024-12-25 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:45:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:46:05 [end_date_ymd] => 2024-12-25 02:46:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:46:05' and `end` < '2024-12-25 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-25 02:46:17] Production.INFO: count ==514 [2024-12-25 02:46:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:46:05 - End Time 2024-12-25 02:46:05 [2024-12-25 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096548', 'tblTempUsageDetail_20' ) start [2024-12-25 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096548', 'tblTempUsageDetail_20' ) end [2024-12-25 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096548', 'tblTempVendorCDR_20' ) start [2024-12-25 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096548', 'tblTempVendorCDR_20' ) end [2024-12-25 02:46:17] Production.INFO: ProcessCDR(1,14096548,1,1,2) [2024-12-25 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096548', 'tblTempUsageDetail_20' ) start [2024-12-25 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096548', 'tblTempUsageDetail_20' ) end [2024-12-25 02:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:46:20] Production.INFO: ==30049== Releasing lock... [2024-12-25 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:46:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:47:05 [end_date_ymd] => 2024-12-25 02:47:05 [RateCDR] => 1 ) [2024-12-25 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:47:05' and `end` < '2024-12-25 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:47:18] Production.INFO: count ==511 [2024-12-25 02:47:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:47:05 - End Time 2024-12-25 02:47:05 [2024-12-25 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096553', 'tblTempUsageDetail_20' ) start [2024-12-25 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096553', 'tblTempUsageDetail_20' ) end [2024-12-25 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096553', 'tblTempVendorCDR_20' ) start [2024-12-25 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096553', 'tblTempVendorCDR_20' ) end [2024-12-25 02:47:18] Production.INFO: ProcessCDR(1,14096553,1,1,2) [2024-12-25 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096553', 'tblTempUsageDetail_20' ) start [2024-12-25 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096553', 'tblTempUsageDetail_20' ) end [2024-12-25 02:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:47:21] Production.INFO: ==30124== Releasing lock... [2024-12-25 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:47:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:48:05 [end_date_ymd] => 2024-12-25 02:48:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:48:05' and `end` < '2024-12-25 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-25 02:48:17] Production.INFO: count ==510 [2024-12-25 02:48:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:48:05 - End Time 2024-12-25 02:48:05 [2024-12-25 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096558', 'tblTempUsageDetail_20' ) start [2024-12-25 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096558', 'tblTempUsageDetail_20' ) end [2024-12-25 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096558', 'tblTempVendorCDR_20' ) start [2024-12-25 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096558', 'tblTempVendorCDR_20' ) end [2024-12-25 02:48:17] Production.INFO: ProcessCDR(1,14096558,1,1,2) [2024-12-25 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096558', 'tblTempUsageDetail_20' ) start [2024-12-25 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096558', 'tblTempUsageDetail_20' ) end [2024-12-25 02:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:48:21] Production.INFO: ==30204== Releasing lock... [2024-12-25 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:48:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:49:04 [end_date_ymd] => 2024-12-25 02:49:04 [RateCDR] => 1 ) [2024-12-25 02: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-24 23:49:04' and `end` < '2024-12-25 02: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-25 02:49:17] Production.INFO: count ==508 [2024-12-25 02:49:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:49:04 - End Time 2024-12-25 02:49:04 [2024-12-25 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096563', 'tblTempUsageDetail_20' ) start [2024-12-25 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096563', 'tblTempUsageDetail_20' ) end [2024-12-25 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096563', 'tblTempVendorCDR_20' ) start [2024-12-25 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096563', 'tblTempVendorCDR_20' ) end [2024-12-25 02:49:17] Production.INFO: ProcessCDR(1,14096563,1,1,2) [2024-12-25 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096563', 'tblTempUsageDetail_20' ) start [2024-12-25 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096563', 'tblTempUsageDetail_20' ) end [2024-12-25 02:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:49:20] Production.INFO: ==30277== Releasing lock... [2024-12-25 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:49:20] Production.INFO: 32 MB #Memory Used# [2024-12-25 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:50:06 [end_date_ymd] => 2024-12-25 02:50:06 [RateCDR] => 1 ) [2024-12-25 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:50:06' and `end` < '2024-12-25 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:50:18] Production.INFO: count ==514 [2024-12-25 02:50:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:50:06 - End Time 2024-12-25 02:50:06 [2024-12-25 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096569', 'tblTempUsageDetail_20' ) start [2024-12-25 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096569', 'tblTempUsageDetail_20' ) end [2024-12-25 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096569', 'tblTempVendorCDR_20' ) start [2024-12-25 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096569', 'tblTempVendorCDR_20' ) end [2024-12-25 02:50:18] Production.INFO: ProcessCDR(1,14096569,1,1,2) [2024-12-25 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096569', 'tblTempUsageDetail_20' ) start [2024-12-25 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096569', 'tblTempUsageDetail_20' ) end [2024-12-25 02:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:50:21] Production.INFO: ==30353== Releasing lock... [2024-12-25 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:50:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 02:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:51:04 [end_date_ymd] => 2024-12-25 02:51:04 [RateCDR] => 1 ) [2024-12-25 02: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-24 23:51:04' and `end` < '2024-12-25 02: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-25 02:51:16] Production.INFO: count ==513 [2024-12-25 02:51:16] Production.ERROR: pbx CDR StartTime 2024-12-24 23:51:04 - End Time 2024-12-25 02:51:04 [2024-12-25 02:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096574', 'tblTempUsageDetail_20' ) start [2024-12-25 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096574', 'tblTempUsageDetail_20' ) end [2024-12-25 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096574', 'tblTempVendorCDR_20' ) start [2024-12-25 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096574', 'tblTempVendorCDR_20' ) end [2024-12-25 02:51:17] Production.INFO: ProcessCDR(1,14096574,1,1,2) [2024-12-25 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096574', 'tblTempUsageDetail_20' ) start [2024-12-25 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096574', 'tblTempUsageDetail_20' ) end [2024-12-25 02:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:51:20] Production.INFO: ==30431== Releasing lock... [2024-12-25 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:51:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:52:05 [end_date_ymd] => 2024-12-25 02:52:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:52:05' and `end` < '2024-12-25 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-25 02:52:18] Production.INFO: count ==513 [2024-12-25 02:52:19] Production.ERROR: pbx CDR StartTime 2024-12-24 23:52:05 - End Time 2024-12-25 02:52:05 [2024-12-25 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096579', 'tblTempUsageDetail_20' ) start [2024-12-25 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096579', 'tblTempUsageDetail_20' ) end [2024-12-25 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096579', 'tblTempVendorCDR_20' ) start [2024-12-25 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096579', 'tblTempVendorCDR_20' ) end [2024-12-25 02:52:19] Production.INFO: ProcessCDR(1,14096579,1,1,2) [2024-12-25 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096579', 'tblTempUsageDetail_20' ) start [2024-12-25 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096579', 'tblTempUsageDetail_20' ) end [2024-12-25 02:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:52:22] Production.INFO: ==30506== Releasing lock... [2024-12-25 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:52:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:53:04 [end_date_ymd] => 2024-12-25 02:53:04 [RateCDR] => 1 ) [2024-12-25 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-24 23:53:04' and `end` < '2024-12-25 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-25 02:53:17] Production.INFO: count ==513 [2024-12-25 02:53:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:53:04 - End Time 2024-12-25 02:53:04 [2024-12-25 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096584', 'tblTempUsageDetail_20' ) start [2024-12-25 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096584', 'tblTempUsageDetail_20' ) end [2024-12-25 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096584', 'tblTempVendorCDR_20' ) start [2024-12-25 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096584', 'tblTempVendorCDR_20' ) end [2024-12-25 02:53:17] Production.INFO: ProcessCDR(1,14096584,1,1,2) [2024-12-25 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096584', 'tblTempUsageDetail_20' ) start [2024-12-25 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096584', 'tblTempUsageDetail_20' ) end [2024-12-25 02:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:53:21] Production.INFO: ==30585== Releasing lock... [2024-12-25 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:53:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:54:05 [end_date_ymd] => 2024-12-25 02:54:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:54:05' and `end` < '2024-12-25 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-25 02:54:17] Production.INFO: count ==508 [2024-12-25 02:54:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:54:05 - End Time 2024-12-25 02:54:05 [2024-12-25 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096589', 'tblTempUsageDetail_20' ) start [2024-12-25 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096589', 'tblTempUsageDetail_20' ) end [2024-12-25 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096589', 'tblTempVendorCDR_20' ) start [2024-12-25 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096589', 'tblTempVendorCDR_20' ) end [2024-12-25 02:54:17] Production.INFO: ProcessCDR(1,14096589,1,1,2) [2024-12-25 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096589', 'tblTempUsageDetail_20' ) start [2024-12-25 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096589', 'tblTempUsageDetail_20' ) end [2024-12-25 02:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:54:20] Production.INFO: ==30662== Releasing lock... [2024-12-25 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:54:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 02:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:55:04 [end_date_ymd] => 2024-12-25 02:55:04 [RateCDR] => 1 ) [2024-12-25 02:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:55:04' and `end` < '2024-12-25 02:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:55:17] Production.INFO: count ==504 [2024-12-25 02:55:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:55:04 - End Time 2024-12-25 02:55:04 [2024-12-25 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096594', 'tblTempUsageDetail_20' ) start [2024-12-25 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096594', 'tblTempUsageDetail_20' ) end [2024-12-25 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096594', 'tblTempVendorCDR_20' ) start [2024-12-25 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096594', 'tblTempVendorCDR_20' ) end [2024-12-25 02:55:17] Production.INFO: ProcessCDR(1,14096594,1,1,2) [2024-12-25 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096594', 'tblTempUsageDetail_20' ) start [2024-12-25 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096594', 'tblTempUsageDetail_20' ) end [2024-12-25 02:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:55:20] Production.INFO: ==30780== Releasing lock... [2024-12-25 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:55:20] Production.INFO: 32 MB #Memory Used# [2024-12-25 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:56:05 [end_date_ymd] => 2024-12-25 02:56:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:56:05' and `end` < '2024-12-25 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-25 02:56:17] Production.INFO: count ==495 [2024-12-25 02:56:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:56:05 - End Time 2024-12-25 02:56:05 [2024-12-25 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096599', 'tblTempUsageDetail_20' ) start [2024-12-25 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096599', 'tblTempUsageDetail_20' ) end [2024-12-25 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096599', 'tblTempVendorCDR_20' ) start [2024-12-25 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096599', 'tblTempVendorCDR_20' ) end [2024-12-25 02:56:17] Production.INFO: ProcessCDR(1,14096599,1,1,2) [2024-12-25 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096599', 'tblTempUsageDetail_20' ) start [2024-12-25 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096599', 'tblTempUsageDetail_20' ) end [2024-12-25 02:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:56:20] Production.INFO: ==30860== Releasing lock... [2024-12-25 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:56:20] Production.INFO: 32 MB #Memory Used# [2024-12-25 02:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:57:04 [end_date_ymd] => 2024-12-25 02:57:04 [RateCDR] => 1 ) [2024-12-25 02:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-24 23:57:04' and `end` < '2024-12-25 02:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 02:57:18] Production.INFO: count ==488 [2024-12-25 02:57:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:57:04 - End Time 2024-12-25 02:57:04 [2024-12-25 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096604', 'tblTempUsageDetail_20' ) start [2024-12-25 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096604', 'tblTempUsageDetail_20' ) end [2024-12-25 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096604', 'tblTempVendorCDR_20' ) start [2024-12-25 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096604', 'tblTempVendorCDR_20' ) end [2024-12-25 02:57:18] Production.INFO: ProcessCDR(1,14096604,1,1,2) [2024-12-25 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096604', 'tblTempUsageDetail_20' ) start [2024-12-25 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096604', 'tblTempUsageDetail_20' ) end [2024-12-25 02:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:57:21] Production.INFO: ==30937== Releasing lock... [2024-12-25 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:57:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:58:05 [end_date_ymd] => 2024-12-25 02:58:05 [RateCDR] => 1 ) [2024-12-25 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-24 23:58:05' and `end` < '2024-12-25 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-25 02:58:17] Production.INFO: count ==486 [2024-12-25 02:58:17] Production.ERROR: pbx CDR StartTime 2024-12-24 23:58:05 - End Time 2024-12-25 02:58:05 [2024-12-25 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096609', 'tblTempUsageDetail_20' ) start [2024-12-25 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096609', 'tblTempUsageDetail_20' ) end [2024-12-25 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096609', 'tblTempVendorCDR_20' ) start [2024-12-25 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096609', 'tblTempVendorCDR_20' ) end [2024-12-25 02:58:17] Production.INFO: ProcessCDR(1,14096609,1,1,2) [2024-12-25 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096609', 'tblTempUsageDetail_20' ) start [2024-12-25 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096609', 'tblTempUsageDetail_20' ) end [2024-12-25 02:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:58:21] Production.INFO: ==31011== Releasing lock... [2024-12-25 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:58:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-24 23:59:06 [end_date_ymd] => 2024-12-25 02:59:06 [RateCDR] => 1 ) [2024-12-25 02: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-24 23:59:06' and `end` < '2024-12-25 02: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-25 02:59:18] Production.INFO: count ==486 [2024-12-25 02:59:18] Production.ERROR: pbx CDR StartTime 2024-12-24 23:59:06 - End Time 2024-12-25 02:59:06 [2024-12-25 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096614', 'tblTempUsageDetail_20' ) start [2024-12-25 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096614', 'tblTempUsageDetail_20' ) end [2024-12-25 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096614', 'tblTempVendorCDR_20' ) start [2024-12-25 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096614', 'tblTempVendorCDR_20' ) end [2024-12-25 02:59:18] Production.INFO: ProcessCDR(1,14096614,1,1,2) [2024-12-25 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096614', 'tblTempUsageDetail_20' ) start [2024-12-25 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096614', 'tblTempUsageDetail_20' ) end [2024-12-25 02:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 02:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 02:59:21] Production.INFO: ==31091== Releasing lock... [2024-12-25 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 02:59:21] Production.INFO: 32 MB #Memory Used# [2024-12-25 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:00:06 [end_date_ymd] => 2024-12-25 03:00:06 [RateCDR] => 1 ) [2024-12-25 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:00:06' and `end` < '2024-12-25 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:00:18] Production.INFO: count ==487 [2024-12-25 03:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:00:06 - End Time 2024-12-25 03:00:06 [2024-12-25 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096620', 'tblTempUsageDetail_20' ) start [2024-12-25 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096620', 'tblTempUsageDetail_20' ) end [2024-12-25 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096620', 'tblTempVendorCDR_20' ) start [2024-12-25 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096620', 'tblTempVendorCDR_20' ) end [2024-12-25 03:00:18] Production.INFO: ProcessCDR(1,14096620,1,1,2) [2024-12-25 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096620', 'tblTempUsageDetail_20' ) start [2024-12-25 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096620', 'tblTempUsageDetail_20' ) end [2024-12-25 03:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:00:21] Production.INFO: ==31185== Releasing lock... [2024-12-25 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:00:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:01:05 [end_date_ymd] => 2024-12-25 03:01:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:01:05' and `end` < '2024-12-25 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-25 03:01:18] Production.INFO: count ==484 [2024-12-25 03:01:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:01:05 - End Time 2024-12-25 03:01:05 [2024-12-25 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096625', 'tblTempUsageDetail_20' ) start [2024-12-25 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096625', 'tblTempUsageDetail_20' ) end [2024-12-25 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096625', 'tblTempVendorCDR_20' ) start [2024-12-25 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096625', 'tblTempVendorCDR_20' ) end [2024-12-25 03:01:18] Production.INFO: ProcessCDR(1,14096625,1,1,2) [2024-12-25 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096625', 'tblTempUsageDetail_20' ) start [2024-12-25 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096625', 'tblTempUsageDetail_20' ) end [2024-12-25 03:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:01:21] Production.INFO: ==31279== Releasing lock... [2024-12-25 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:01:21] Production.INFO: 32 MB #Memory Used# [2024-12-25 03:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:02:04 [end_date_ymd] => 2024-12-25 03:02:04 [RateCDR] => 1 ) [2024-12-25 03: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-25 00:02:04' and `end` < '2024-12-25 03: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-25 03:02:17] Production.INFO: count ==479 [2024-12-25 03:02:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:02:04 - End Time 2024-12-25 03:02:04 [2024-12-25 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096630', 'tblTempUsageDetail_20' ) start [2024-12-25 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096630', 'tblTempUsageDetail_20' ) end [2024-12-25 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096630', 'tblTempVendorCDR_20' ) start [2024-12-25 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096630', 'tblTempVendorCDR_20' ) end [2024-12-25 03:02:17] Production.INFO: ProcessCDR(1,14096630,1,1,2) [2024-12-25 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096630', 'tblTempUsageDetail_20' ) start [2024-12-25 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096630', 'tblTempUsageDetail_20' ) end [2024-12-25 03:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:02:21] Production.INFO: ==31433== Releasing lock... [2024-12-25 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:02:21] Production.INFO: 32 MB #Memory Used# [2024-12-25 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:03:05 [end_date_ymd] => 2024-12-25 03:03:05 [RateCDR] => 1 ) [2024-12-25 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:03:05' and `end` < '2024-12-25 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:03:17] Production.INFO: count ==476 [2024-12-25 03:03:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:03:05 - End Time 2024-12-25 03:03:05 [2024-12-25 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096635', 'tblTempUsageDetail_20' ) start [2024-12-25 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096635', 'tblTempUsageDetail_20' ) end [2024-12-25 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096635', 'tblTempVendorCDR_20' ) start [2024-12-25 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096635', 'tblTempVendorCDR_20' ) end [2024-12-25 03:03:17] Production.INFO: ProcessCDR(1,14096635,1,1,2) [2024-12-25 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096635', 'tblTempUsageDetail_20' ) start [2024-12-25 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096635', 'tblTempUsageDetail_20' ) end [2024-12-25 03:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:03:20] Production.INFO: ==31512== Releasing lock... [2024-12-25 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:03:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 03:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:04:04 [end_date_ymd] => 2024-12-25 03:04:04 [RateCDR] => 1 ) [2024-12-25 03: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-25 00:04:04' and `end` < '2024-12-25 03: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-25 03:04:16] Production.INFO: count ==473 [2024-12-25 03:04:16] Production.ERROR: pbx CDR StartTime 2024-12-25 00:04:04 - End Time 2024-12-25 03:04:04 [2024-12-25 03:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096640', 'tblTempUsageDetail_20' ) start [2024-12-25 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096640', 'tblTempUsageDetail_20' ) end [2024-12-25 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096640', 'tblTempVendorCDR_20' ) start [2024-12-25 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096640', 'tblTempVendorCDR_20' ) end [2024-12-25 03:04:17] Production.INFO: ProcessCDR(1,14096640,1,1,2) [2024-12-25 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096640', 'tblTempUsageDetail_20' ) start [2024-12-25 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096640', 'tblTempUsageDetail_20' ) end [2024-12-25 03:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:04:20] Production.INFO: ==31588== Releasing lock... [2024-12-25 03:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:04:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:05:05 [end_date_ymd] => 2024-12-25 03:05:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:05:05' and `end` < '2024-12-25 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-25 03:05:18] Production.INFO: count ==470 [2024-12-25 03:05:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:05:05 - End Time 2024-12-25 03:05:05 [2024-12-25 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096645', 'tblTempUsageDetail_20' ) start [2024-12-25 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096645', 'tblTempUsageDetail_20' ) end [2024-12-25 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096645', 'tblTempVendorCDR_20' ) start [2024-12-25 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096645', 'tblTempVendorCDR_20' ) end [2024-12-25 03:05:18] Production.INFO: ProcessCDR(1,14096645,1,1,2) [2024-12-25 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096645', 'tblTempUsageDetail_20' ) start [2024-12-25 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096645', 'tblTempUsageDetail_20' ) end [2024-12-25 03:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:05:21] Production.INFO: ==31664== Releasing lock... [2024-12-25 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:05:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:06:05 [end_date_ymd] => 2024-12-25 03:06:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:06:05' and `end` < '2024-12-25 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-25 03:06:18] Production.INFO: count ==470 [2024-12-25 03:06:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:06:05 - End Time 2024-12-25 03:06:05 [2024-12-25 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096650', 'tblTempUsageDetail_20' ) start [2024-12-25 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096650', 'tblTempUsageDetail_20' ) end [2024-12-25 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096650', 'tblTempVendorCDR_20' ) start [2024-12-25 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096650', 'tblTempVendorCDR_20' ) end [2024-12-25 03:06:18] Production.INFO: ProcessCDR(1,14096650,1,1,2) [2024-12-25 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096650', 'tblTempUsageDetail_20' ) start [2024-12-25 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096650', 'tblTempUsageDetail_20' ) end [2024-12-25 03:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:06:21] Production.INFO: ==31817== Releasing lock... [2024-12-25 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:06:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:07:05 [end_date_ymd] => 2024-12-25 03:07:05 [RateCDR] => 1 ) [2024-12-25 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:07:05' and `end` < '2024-12-25 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:07:18] Production.INFO: count ==470 [2024-12-25 03:07:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:07:05 - End Time 2024-12-25 03:07:05 [2024-12-25 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096655', 'tblTempUsageDetail_20' ) start [2024-12-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096655', 'tblTempUsageDetail_20' ) end [2024-12-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096655', 'tblTempVendorCDR_20' ) start [2024-12-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096655', 'tblTempVendorCDR_20' ) end [2024-12-25 03:07:18] Production.INFO: ProcessCDR(1,14096655,1,1,2) [2024-12-25 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096655', 'tblTempUsageDetail_20' ) start [2024-12-25 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096655', 'tblTempUsageDetail_20' ) end [2024-12-25 03:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:07:21] Production.INFO: ==31895== Releasing lock... [2024-12-25 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:07:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:08:05 [end_date_ymd] => 2024-12-25 03:08:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:08:05' and `end` < '2024-12-25 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-25 03:08:18] Production.INFO: count ==470 [2024-12-25 03:08:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:08:05 - End Time 2024-12-25 03:08:05 [2024-12-25 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096660', 'tblTempUsageDetail_20' ) start [2024-12-25 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096660', 'tblTempUsageDetail_20' ) end [2024-12-25 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096660', 'tblTempVendorCDR_20' ) start [2024-12-25 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096660', 'tblTempVendorCDR_20' ) end [2024-12-25 03:08:18] Production.INFO: ProcessCDR(1,14096660,1,1,2) [2024-12-25 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096660', 'tblTempUsageDetail_20' ) start [2024-12-25 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096660', 'tblTempUsageDetail_20' ) end [2024-12-25 03:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:08:21] Production.INFO: ==31971== Releasing lock... [2024-12-25 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:08:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:09:05 [end_date_ymd] => 2024-12-25 03:09:05 [RateCDR] => 1 ) [2024-12-25 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:09:05' and `end` < '2024-12-25 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:09:17] Production.INFO: count ==468 [2024-12-25 03:09:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:09:05 - End Time 2024-12-25 03:09:05 [2024-12-25 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096665', 'tblTempUsageDetail_20' ) start [2024-12-25 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096665', 'tblTempUsageDetail_20' ) end [2024-12-25 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096665', 'tblTempVendorCDR_20' ) start [2024-12-25 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096665', 'tblTempVendorCDR_20' ) end [2024-12-25 03:09:17] Production.INFO: ProcessCDR(1,14096665,1,1,2) [2024-12-25 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096665', 'tblTempUsageDetail_20' ) start [2024-12-25 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096665', 'tblTempUsageDetail_20' ) end [2024-12-25 03:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:09:21] Production.INFO: ==32127== Releasing lock... [2024-12-25 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:09:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:10:06 [end_date_ymd] => 2024-12-25 03:10:06 [RateCDR] => 1 ) [2024-12-25 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:10:06' and `end` < '2024-12-25 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:10:18] Production.INFO: count ==458 [2024-12-25 03:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:10:06 - End Time 2024-12-25 03:10:06 [2024-12-25 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096671', 'tblTempUsageDetail_20' ) start [2024-12-25 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096671', 'tblTempUsageDetail_20' ) end [2024-12-25 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096671', 'tblTempVendorCDR_20' ) start [2024-12-25 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096671', 'tblTempVendorCDR_20' ) end [2024-12-25 03:10:18] Production.INFO: ProcessCDR(1,14096671,1,1,2) [2024-12-25 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096671', 'tblTempUsageDetail_20' ) start [2024-12-25 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096671', 'tblTempUsageDetail_20' ) end [2024-12-25 03:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:10:21] Production.INFO: ==32209== Releasing lock... [2024-12-25 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:10:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 03:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:11:04 [end_date_ymd] => 2024-12-25 03:11:04 [RateCDR] => 1 ) [2024-12-25 03:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:11:04' and `end` < '2024-12-25 03:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:11:17] Production.INFO: count ==436 [2024-12-25 03:11:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:11:04 - End Time 2024-12-25 03:11:04 [2024-12-25 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096676', 'tblTempUsageDetail_20' ) start [2024-12-25 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096676', 'tblTempUsageDetail_20' ) end [2024-12-25 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096676', 'tblTempVendorCDR_20' ) start [2024-12-25 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096676', 'tblTempVendorCDR_20' ) end [2024-12-25 03:11:17] Production.INFO: ProcessCDR(1,14096676,1,1,2) [2024-12-25 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096676', 'tblTempUsageDetail_20' ) start [2024-12-25 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096676', 'tblTempUsageDetail_20' ) end [2024-12-25 03:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:11:20] Production.INFO: ==32324== Releasing lock... [2024-12-25 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:11:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:12:05 [end_date_ymd] => 2024-12-25 03:12:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:12:05' and `end` < '2024-12-25 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-25 03:12:18] Production.INFO: count ==436 [2024-12-25 03:12:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:12:05 - End Time 2024-12-25 03:12:05 [2024-12-25 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096681', 'tblTempUsageDetail_20' ) start [2024-12-25 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096681', 'tblTempUsageDetail_20' ) end [2024-12-25 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096681', 'tblTempVendorCDR_20' ) start [2024-12-25 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096681', 'tblTempVendorCDR_20' ) end [2024-12-25 03:12:18] Production.INFO: ProcessCDR(1,14096681,1,1,2) [2024-12-25 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096681', 'tblTempUsageDetail_20' ) start [2024-12-25 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096681', 'tblTempUsageDetail_20' ) end [2024-12-25 03:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:12:21] Production.INFO: ==32403== Releasing lock... [2024-12-25 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:12:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:13:04 [end_date_ymd] => 2024-12-25 03:13:04 [RateCDR] => 1 ) [2024-12-25 03:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:13:04' and `end` < '2024-12-25 03:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:13:16] Production.INFO: count ==436 [2024-12-25 03:13:16] Production.ERROR: pbx CDR StartTime 2024-12-25 00:13:04 - End Time 2024-12-25 03:13:04 [2024-12-25 03:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096686', 'tblTempUsageDetail_20' ) start [2024-12-25 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096686', 'tblTempUsageDetail_20' ) end [2024-12-25 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096686', 'tblTempVendorCDR_20' ) start [2024-12-25 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096686', 'tblTempVendorCDR_20' ) end [2024-12-25 03:13:16] Production.INFO: ProcessCDR(1,14096686,1,1,2) [2024-12-25 03:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:13:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096686', 'tblTempUsageDetail_20' ) start [2024-12-25 03:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096686', 'tblTempUsageDetail_20' ) end [2024-12-25 03:13:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:13:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:13:19] Production.INFO: ==32555== Releasing lock... [2024-12-25 03:13:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:13:19] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:14:05 [end_date_ymd] => 2024-12-25 03:14:05 [RateCDR] => 1 ) [2024-12-25 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:14:05' and `end` < '2024-12-25 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:14:18] Production.INFO: count ==432 [2024-12-25 03:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:14:05 - End Time 2024-12-25 03:14:05 [2024-12-25 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096691', 'tblTempUsageDetail_20' ) start [2024-12-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096691', 'tblTempUsageDetail_20' ) end [2024-12-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096691', 'tblTempVendorCDR_20' ) start [2024-12-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096691', 'tblTempVendorCDR_20' ) end [2024-12-25 03:14:18] Production.INFO: ProcessCDR(1,14096691,1,1,2) [2024-12-25 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096691', 'tblTempUsageDetail_20' ) start [2024-12-25 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096691', 'tblTempUsageDetail_20' ) end [2024-12-25 03:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:14:21] Production.INFO: ==32633== Releasing lock... [2024-12-25 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:14:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 03:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:15:04 [end_date_ymd] => 2024-12-25 03:15:04 [RateCDR] => 1 ) [2024-12-25 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-25 00:15:04' and `end` < '2024-12-25 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-25 03:15:16] Production.INFO: count ==432 [2024-12-25 03:15:16] Production.ERROR: pbx CDR StartTime 2024-12-25 00:15:04 - End Time 2024-12-25 03:15:04 [2024-12-25 03:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096696', 'tblTempUsageDetail_20' ) start [2024-12-25 03:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096696', 'tblTempUsageDetail_20' ) end [2024-12-25 03:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096696', 'tblTempVendorCDR_20' ) start [2024-12-25 03:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096696', 'tblTempVendorCDR_20' ) end [2024-12-25 03:15:16] Production.INFO: ProcessCDR(1,14096696,1,1,2) [2024-12-25 03:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096696', 'tblTempUsageDetail_20' ) start [2024-12-25 03:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096696', 'tblTempUsageDetail_20' ) end [2024-12-25 03:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:15:19] Production.INFO: ==32713== Releasing lock... [2024-12-25 03:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:15:19] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:16:05 [end_date_ymd] => 2024-12-25 03:16:05 [RateCDR] => 1 ) [2024-12-25 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:16:05' and `end` < '2024-12-25 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:16:17] Production.INFO: count ==432 [2024-12-25 03:16:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:16:05 - End Time 2024-12-25 03:16:05 [2024-12-25 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096701', 'tblTempUsageDetail_20' ) start [2024-12-25 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096701', 'tblTempUsageDetail_20' ) end [2024-12-25 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096701', 'tblTempVendorCDR_20' ) start [2024-12-25 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096701', 'tblTempVendorCDR_20' ) end [2024-12-25 03:16:17] Production.INFO: ProcessCDR(1,14096701,1,1,2) [2024-12-25 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096701', 'tblTempUsageDetail_20' ) start [2024-12-25 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096701', 'tblTempUsageDetail_20' ) end [2024-12-25 03:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:16:21] Production.INFO: ==332== Releasing lock... [2024-12-25 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:16:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:17:05 [end_date_ymd] => 2024-12-25 03:17:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:17:05' and `end` < '2024-12-25 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-25 03:17:18] Production.INFO: count ==432 [2024-12-25 03:17:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:17:05 - End Time 2024-12-25 03:17:05 [2024-12-25 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096706', 'tblTempUsageDetail_20' ) start [2024-12-25 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096706', 'tblTempUsageDetail_20' ) end [2024-12-25 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096706', 'tblTempVendorCDR_20' ) start [2024-12-25 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096706', 'tblTempVendorCDR_20' ) end [2024-12-25 03:17:18] Production.INFO: ProcessCDR(1,14096706,1,1,2) [2024-12-25 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096706', 'tblTempUsageDetail_20' ) start [2024-12-25 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096706', 'tblTempUsageDetail_20' ) end [2024-12-25 03:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:17:21] Production.INFO: ==503== Releasing lock... [2024-12-25 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:17:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:18:05 [end_date_ymd] => 2024-12-25 03:18:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:18:05' and `end` < '2024-12-25 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-25 03:18:17] Production.INFO: count ==432 [2024-12-25 03:18:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:18:05 - End Time 2024-12-25 03:18:05 [2024-12-25 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096711', 'tblTempUsageDetail_20' ) start [2024-12-25 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096711', 'tblTempUsageDetail_20' ) end [2024-12-25 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096711', 'tblTempVendorCDR_20' ) start [2024-12-25 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096711', 'tblTempVendorCDR_20' ) end [2024-12-25 03:18:17] Production.INFO: ProcessCDR(1,14096711,1,1,2) [2024-12-25 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096711', 'tblTempUsageDetail_20' ) start [2024-12-25 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096711', 'tblTempUsageDetail_20' ) end [2024-12-25 03:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:18:20] Production.INFO: ==581== Releasing lock... [2024-12-25 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:18:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:19:05 [end_date_ymd] => 2024-12-25 03:19:05 [RateCDR] => 1 ) [2024-12-25 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:19:05' and `end` < '2024-12-25 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:19:18] Production.INFO: count ==432 [2024-12-25 03:19:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:19:05 - End Time 2024-12-25 03:19:05 [2024-12-25 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096716', 'tblTempUsageDetail_20' ) start [2024-12-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096716', 'tblTempUsageDetail_20' ) end [2024-12-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096716', 'tblTempVendorCDR_20' ) start [2024-12-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096716', 'tblTempVendorCDR_20' ) end [2024-12-25 03:19:18] Production.INFO: ProcessCDR(1,14096716,1,1,2) [2024-12-25 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096716', 'tblTempUsageDetail_20' ) start [2024-12-25 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096716', 'tblTempUsageDetail_20' ) end [2024-12-25 03:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:19:22] Production.INFO: ==674== Releasing lock... [2024-12-25 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:19:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:20:05 [end_date_ymd] => 2024-12-25 03:20:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:20:05' and `end` < '2024-12-25 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-25 03:20:19] Production.INFO: count ==426 [2024-12-25 03:20:19] Production.ERROR: pbx CDR StartTime 2024-12-25 00:20:05 - End Time 2024-12-25 03:20:05 [2024-12-25 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096722', 'tblTempUsageDetail_20' ) start [2024-12-25 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096722', 'tblTempUsageDetail_20' ) end [2024-12-25 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096722', 'tblTempVendorCDR_20' ) start [2024-12-25 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096722', 'tblTempVendorCDR_20' ) end [2024-12-25 03:20:19] Production.INFO: ProcessCDR(1,14096722,1,1,2) [2024-12-25 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096722', 'tblTempUsageDetail_20' ) start [2024-12-25 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096722', 'tblTempUsageDetail_20' ) end [2024-12-25 03:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:20:22] Production.INFO: ==769== Releasing lock... [2024-12-25 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:20:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:21:05 [end_date_ymd] => 2024-12-25 03:21:05 [RateCDR] => 1 ) [2024-12-25 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:21:05' and `end` < '2024-12-25 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:21:17] Production.INFO: count ==393 [2024-12-25 03:21:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:21:05 - End Time 2024-12-25 03:21:05 [2024-12-25 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096727', 'tblTempUsageDetail_20' ) start [2024-12-25 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096727', 'tblTempUsageDetail_20' ) end [2024-12-25 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096727', 'tblTempVendorCDR_20' ) start [2024-12-25 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096727', 'tblTempVendorCDR_20' ) end [2024-12-25 03:21:17] Production.INFO: ProcessCDR(1,14096727,1,1,2) [2024-12-25 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096727', 'tblTempUsageDetail_20' ) start [2024-12-25 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096727', 'tblTempUsageDetail_20' ) end [2024-12-25 03:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:21:20] Production.INFO: ==850== Releasing lock... [2024-12-25 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:21:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:22:05 [end_date_ymd] => 2024-12-25 03:22:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:22:05' and `end` < '2024-12-25 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-25 03:22:18] Production.INFO: count ==390 [2024-12-25 03:22:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:22:05 - End Time 2024-12-25 03:22:05 [2024-12-25 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096732', 'tblTempUsageDetail_20' ) start [2024-12-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096732', 'tblTempUsageDetail_20' ) end [2024-12-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096732', 'tblTempVendorCDR_20' ) start [2024-12-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096732', 'tblTempVendorCDR_20' ) end [2024-12-25 03:22:18] Production.INFO: ProcessCDR(1,14096732,1,1,2) [2024-12-25 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096732', 'tblTempUsageDetail_20' ) start [2024-12-25 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096732', 'tblTempUsageDetail_20' ) end [2024-12-25 03:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:22:21] Production.INFO: ==930== Releasing lock... [2024-12-25 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:22:21] Production.INFO: 31 MB #Memory Used# [2024-12-25 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:23:05 [end_date_ymd] => 2024-12-25 03:23:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:23:05' and `end` < '2024-12-25 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-25 03:23:18] Production.INFO: count ==390 [2024-12-25 03:23:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:23:05 - End Time 2024-12-25 03:23:05 [2024-12-25 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096737', 'tblTempUsageDetail_20' ) start [2024-12-25 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096737', 'tblTempUsageDetail_20' ) end [2024-12-25 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096737', 'tblTempVendorCDR_20' ) start [2024-12-25 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096737', 'tblTempVendorCDR_20' ) end [2024-12-25 03:23:18] Production.INFO: ProcessCDR(1,14096737,1,1,2) [2024-12-25 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096737', 'tblTempUsageDetail_20' ) start [2024-12-25 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096737', 'tblTempUsageDetail_20' ) end [2024-12-25 03:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:23:21] Production.INFO: ==1013== Releasing lock... [2024-12-25 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:23:21] Production.INFO: 31 MB #Memory Used# [2024-12-25 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:24:05 [end_date_ymd] => 2024-12-25 03:24:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:24:05' and `end` < '2024-12-25 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-25 03:24:17] Production.INFO: count ==389 [2024-12-25 03:24:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:24:05 - End Time 2024-12-25 03:24:05 [2024-12-25 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096742', 'tblTempUsageDetail_20' ) start [2024-12-25 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096742', 'tblTempUsageDetail_20' ) end [2024-12-25 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096742', 'tblTempVendorCDR_20' ) start [2024-12-25 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096742', 'tblTempVendorCDR_20' ) end [2024-12-25 03:24:17] Production.INFO: ProcessCDR(1,14096742,1,1,2) [2024-12-25 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096742', 'tblTempUsageDetail_20' ) start [2024-12-25 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096742', 'tblTempUsageDetail_20' ) end [2024-12-25 03:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:24:20] Production.INFO: ==1090== Releasing lock... [2024-12-25 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:24:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:25:05 [end_date_ymd] => 2024-12-25 03:25:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:25:05' and `end` < '2024-12-25 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-25 03:25:17] Production.INFO: count ==389 [2024-12-25 03:25:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:25:05 - End Time 2024-12-25 03:25:05 [2024-12-25 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096747', 'tblTempUsageDetail_20' ) start [2024-12-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096747', 'tblTempUsageDetail_20' ) end [2024-12-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096747', 'tblTempVendorCDR_20' ) start [2024-12-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096747', 'tblTempVendorCDR_20' ) end [2024-12-25 03:25:17] Production.INFO: ProcessCDR(1,14096747,1,1,2) [2024-12-25 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096747', 'tblTempUsageDetail_20' ) start [2024-12-25 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096747', 'tblTempUsageDetail_20' ) end [2024-12-25 03:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:25:20] Production.INFO: ==1174== Releasing lock... [2024-12-25 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:25:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:26:05 [end_date_ymd] => 2024-12-25 03:26:05 [RateCDR] => 1 ) [2024-12-25 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:26:05' and `end` < '2024-12-25 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:26:17] Production.INFO: count ==389 [2024-12-25 03:26:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:26:05 - End Time 2024-12-25 03:26:05 [2024-12-25 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096752', 'tblTempUsageDetail_20' ) start [2024-12-25 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096752', 'tblTempUsageDetail_20' ) end [2024-12-25 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096752', 'tblTempVendorCDR_20' ) start [2024-12-25 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096752', 'tblTempVendorCDR_20' ) end [2024-12-25 03:26:17] Production.INFO: ProcessCDR(1,14096752,1,1,2) [2024-12-25 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096752', 'tblTempUsageDetail_20' ) start [2024-12-25 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096752', 'tblTempUsageDetail_20' ) end [2024-12-25 03:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:26:20] Production.INFO: ==1264== Releasing lock... [2024-12-25 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:26:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:27:05 [end_date_ymd] => 2024-12-25 03:27:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:27:05' and `end` < '2024-12-25 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-25 03:27:18] Production.INFO: count ==389 [2024-12-25 03:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:27:05 - End Time 2024-12-25 03:27:05 [2024-12-25 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096757', 'tblTempUsageDetail_20' ) start [2024-12-25 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096757', 'tblTempUsageDetail_20' ) end [2024-12-25 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096757', 'tblTempVendorCDR_20' ) start [2024-12-25 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096757', 'tblTempVendorCDR_20' ) end [2024-12-25 03:27:18] Production.INFO: ProcessCDR(1,14096757,1,1,2) [2024-12-25 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096757', 'tblTempUsageDetail_20' ) start [2024-12-25 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096757', 'tblTempUsageDetail_20' ) end [2024-12-25 03:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:27:21] Production.INFO: ==1346== Releasing lock... [2024-12-25 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:27:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:28:06 [end_date_ymd] => 2024-12-25 03:28:06 [RateCDR] => 1 ) [2024-12-25 03: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-25 00:28:06' and `end` < '2024-12-25 03: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-25 03:28:18] Production.INFO: count ==389 [2024-12-25 03:28:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:28:06 - End Time 2024-12-25 03:28:06 [2024-12-25 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096762', 'tblTempUsageDetail_20' ) start [2024-12-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096762', 'tblTempUsageDetail_20' ) end [2024-12-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096762', 'tblTempVendorCDR_20' ) start [2024-12-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096762', 'tblTempVendorCDR_20' ) end [2024-12-25 03:28:18] Production.INFO: ProcessCDR(1,14096762,1,1,2) [2024-12-25 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096762', 'tblTempUsageDetail_20' ) start [2024-12-25 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096762', 'tblTempUsageDetail_20' ) end [2024-12-25 03:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:28:22] Production.INFO: ==1470== Releasing lock... [2024-12-25 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:28:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:29:05 [end_date_ymd] => 2024-12-25 03:29:05 [RateCDR] => 1 ) [2024-12-25 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:29:05' and `end` < '2024-12-25 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:29:17] Production.INFO: count ==389 [2024-12-25 03:29:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:29:05 - End Time 2024-12-25 03:29:05 [2024-12-25 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096767', 'tblTempUsageDetail_20' ) start [2024-12-25 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096767', 'tblTempUsageDetail_20' ) end [2024-12-25 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096767', 'tblTempVendorCDR_20' ) start [2024-12-25 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096767', 'tblTempVendorCDR_20' ) end [2024-12-25 03:29:17] Production.INFO: ProcessCDR(1,14096767,1,1,2) [2024-12-25 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096767', 'tblTempUsageDetail_20' ) start [2024-12-25 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096767', 'tblTempUsageDetail_20' ) end [2024-12-25 03:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:29:20] Production.INFO: ==1596== Releasing lock... [2024-12-25 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:29:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:30:05 [end_date_ymd] => 2024-12-25 03:30:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:30:05' and `end` < '2024-12-25 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-25 03:30:18] Production.INFO: count ==381 [2024-12-25 03:30:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:30:05 - End Time 2024-12-25 03:30:05 [2024-12-25 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096773', 'tblTempUsageDetail_20' ) start [2024-12-25 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096773', 'tblTempUsageDetail_20' ) end [2024-12-25 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096773', 'tblTempVendorCDR_20' ) start [2024-12-25 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096773', 'tblTempVendorCDR_20' ) end [2024-12-25 03:30:18] Production.INFO: ProcessCDR(1,14096773,1,1,2) [2024-12-25 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096773', 'tblTempUsageDetail_20' ) start [2024-12-25 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096773', 'tblTempUsageDetail_20' ) end [2024-12-25 03:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:30:21] Production.INFO: ==1684== Releasing lock... [2024-12-25 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:30:21] Production.INFO: 31 MB #Memory Used# [2024-12-25 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:31:05 [end_date_ymd] => 2024-12-25 03:31:05 [RateCDR] => 1 ) [2024-12-25 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:31:05' and `end` < '2024-12-25 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:31:17] Production.INFO: count ==358 [2024-12-25 03:31:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:31:05 - End Time 2024-12-25 03:31:05 [2024-12-25 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096778', 'tblTempUsageDetail_20' ) start [2024-12-25 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096778', 'tblTempUsageDetail_20' ) end [2024-12-25 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096778', 'tblTempVendorCDR_20' ) start [2024-12-25 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096778', 'tblTempVendorCDR_20' ) end [2024-12-25 03:31:17] Production.INFO: ProcessCDR(1,14096778,1,1,2) [2024-12-25 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096778', 'tblTempUsageDetail_20' ) start [2024-12-25 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096778', 'tblTempUsageDetail_20' ) end [2024-12-25 03:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:31:20] Production.INFO: ==1777== Releasing lock... [2024-12-25 03:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:31:20] Production.INFO: 31 MB #Memory Used# [2024-12-25 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:32:05 [end_date_ymd] => 2024-12-25 03:32:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:32:05' and `end` < '2024-12-25 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-25 03:32:17] Production.INFO: count ==358 [2024-12-25 03:32:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:32:05 - End Time 2024-12-25 03:32:05 [2024-12-25 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096783', 'tblTempUsageDetail_20' ) start [2024-12-25 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096783', 'tblTempUsageDetail_20' ) end [2024-12-25 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096783', 'tblTempVendorCDR_20' ) start [2024-12-25 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096783', 'tblTempVendorCDR_20' ) end [2024-12-25 03:32:17] Production.INFO: ProcessCDR(1,14096783,1,1,2) [2024-12-25 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096783', 'tblTempUsageDetail_20' ) start [2024-12-25 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096783', 'tblTempUsageDetail_20' ) end [2024-12-25 03:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:32:20] Production.INFO: ==1870== Releasing lock... [2024-12-25 03:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:32:20] Production.INFO: 31 MB #Memory Used# [2024-12-25 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:33:05 [end_date_ymd] => 2024-12-25 03:33:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:33:05' and `end` < '2024-12-25 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-25 03:33:17] Production.INFO: count ==355 [2024-12-25 03:33:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:33:05 - End Time 2024-12-25 03:33:05 [2024-12-25 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096788', 'tblTempUsageDetail_20' ) start [2024-12-25 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096788', 'tblTempUsageDetail_20' ) end [2024-12-25 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096788', 'tblTempVendorCDR_20' ) start [2024-12-25 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096788', 'tblTempVendorCDR_20' ) end [2024-12-25 03:33:17] Production.INFO: ProcessCDR(1,14096788,1,1,2) [2024-12-25 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096788', 'tblTempUsageDetail_20' ) start [2024-12-25 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096788', 'tblTempUsageDetail_20' ) end [2024-12-25 03:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:33:20] Production.INFO: ==1959== Releasing lock... [2024-12-25 03:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:33:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-25 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:34:06 [end_date_ymd] => 2024-12-25 03:34:06 [RateCDR] => 1 ) [2024-12-25 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:34:06' and `end` < '2024-12-25 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:34:19] Production.INFO: count ==355 [2024-12-25 03:34:19] Production.ERROR: pbx CDR StartTime 2024-12-25 00:34:06 - End Time 2024-12-25 03:34:06 [2024-12-25 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096793', 'tblTempUsageDetail_20' ) start [2024-12-25 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096793', 'tblTempUsageDetail_20' ) end [2024-12-25 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096793', 'tblTempVendorCDR_20' ) start [2024-12-25 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096793', 'tblTempVendorCDR_20' ) end [2024-12-25 03:34:19] Production.INFO: ProcessCDR(1,14096793,1,1,2) [2024-12-25 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096793', 'tblTempUsageDetail_20' ) start [2024-12-25 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096793', 'tblTempUsageDetail_20' ) end [2024-12-25 03:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:34:22] Production.INFO: ==2048== Releasing lock... [2024-12-25 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:34:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-25 03:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:35:04 [end_date_ymd] => 2024-12-25 03:35:04 [RateCDR] => 1 ) [2024-12-25 03: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-25 00:35:04' and `end` < '2024-12-25 03: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-25 03:35:17] Production.INFO: count ==355 [2024-12-25 03:35:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:35:04 - End Time 2024-12-25 03:35:04 [2024-12-25 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096798', 'tblTempUsageDetail_20' ) start [2024-12-25 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096798', 'tblTempUsageDetail_20' ) end [2024-12-25 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096798', 'tblTempVendorCDR_20' ) start [2024-12-25 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096798', 'tblTempVendorCDR_20' ) end [2024-12-25 03:35:17] Production.INFO: ProcessCDR(1,14096798,1,1,2) [2024-12-25 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096798', 'tblTempUsageDetail_20' ) start [2024-12-25 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096798', 'tblTempUsageDetail_20' ) end [2024-12-25 03:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:35:20] Production.INFO: ==2138== Releasing lock... [2024-12-25 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:35:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-25 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:36:05 [end_date_ymd] => 2024-12-25 03:36:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:36:05' and `end` < '2024-12-25 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-25 03:36:17] Production.INFO: count ==355 [2024-12-25 03:36:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:36:05 - End Time 2024-12-25 03:36:05 [2024-12-25 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096803', 'tblTempUsageDetail_20' ) start [2024-12-25 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096803', 'tblTempUsageDetail_20' ) end [2024-12-25 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096803', 'tblTempVendorCDR_20' ) start [2024-12-25 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096803', 'tblTempVendorCDR_20' ) end [2024-12-25 03:36:17] Production.INFO: ProcessCDR(1,14096803,1,1,2) [2024-12-25 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096803', 'tblTempUsageDetail_20' ) start [2024-12-25 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096803', 'tblTempUsageDetail_20' ) end [2024-12-25 03:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:36:20] Production.INFO: ==2243== Releasing lock... [2024-12-25 03:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:36:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-25 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:37:05 [end_date_ymd] => 2024-12-25 03:37:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:37:05' and `end` < '2024-12-25 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-25 03:37:17] Production.INFO: count ==354 [2024-12-25 03:37:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:37:05 - End Time 2024-12-25 03:37:05 [2024-12-25 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096808', 'tblTempUsageDetail_20' ) start [2024-12-25 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096808', 'tblTempUsageDetail_20' ) end [2024-12-25 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096808', 'tblTempVendorCDR_20' ) start [2024-12-25 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096808', 'tblTempVendorCDR_20' ) end [2024-12-25 03:37:17] Production.INFO: ProcessCDR(1,14096808,1,1,2) [2024-12-25 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096808', 'tblTempUsageDetail_20' ) start [2024-12-25 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096808', 'tblTempUsageDetail_20' ) end [2024-12-25 03:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:37:21] Production.INFO: ==2341== Releasing lock... [2024-12-25 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:37:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-25 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:38:05 [end_date_ymd] => 2024-12-25 03:38:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:38:05' and `end` < '2024-12-25 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-25 03:38:17] Production.INFO: count ==353 [2024-12-25 03:38:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:38:05 - End Time 2024-12-25 03:38:05 [2024-12-25 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096813', 'tblTempUsageDetail_20' ) start [2024-12-25 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096813', 'tblTempUsageDetail_20' ) end [2024-12-25 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096813', 'tblTempVendorCDR_20' ) start [2024-12-25 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096813', 'tblTempVendorCDR_20' ) end [2024-12-25 03:38:17] Production.INFO: ProcessCDR(1,14096813,1,1,2) [2024-12-25 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096813', 'tblTempUsageDetail_20' ) start [2024-12-25 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096813', 'tblTempUsageDetail_20' ) end [2024-12-25 03:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:38:21] Production.INFO: ==2423== Releasing lock... [2024-12-25 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:38:21] Production.INFO: 31 MB #Memory Used# [2024-12-25 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:39:05 [end_date_ymd] => 2024-12-25 03:39:05 [RateCDR] => 1 ) [2024-12-25 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:39:05' and `end` < '2024-12-25 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:39:17] Production.INFO: count ==353 [2024-12-25 03:39:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:39:05 - End Time 2024-12-25 03:39:05 [2024-12-25 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096818', 'tblTempUsageDetail_20' ) start [2024-12-25 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096818', 'tblTempUsageDetail_20' ) end [2024-12-25 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096818', 'tblTempVendorCDR_20' ) start [2024-12-25 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096818', 'tblTempVendorCDR_20' ) end [2024-12-25 03:39:17] Production.INFO: ProcessCDR(1,14096818,1,1,2) [2024-12-25 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096818', 'tblTempUsageDetail_20' ) start [2024-12-25 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096818', 'tblTempUsageDetail_20' ) end [2024-12-25 03:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:39:21] Production.INFO: ==2497== Releasing lock... [2024-12-25 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:39:21] Production.INFO: 31 MB #Memory Used# [2024-12-25 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:40:06 [end_date_ymd] => 2024-12-25 03:40:06 [RateCDR] => 1 ) [2024-12-25 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:40:06' and `end` < '2024-12-25 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:40:19] Production.INFO: count ==344 [2024-12-25 03:40:19] Production.ERROR: pbx CDR StartTime 2024-12-25 00:40:06 - End Time 2024-12-25 03:40:06 [2024-12-25 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096824', 'tblTempUsageDetail_20' ) start [2024-12-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096824', 'tblTempUsageDetail_20' ) end [2024-12-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096824', 'tblTempVendorCDR_20' ) start [2024-12-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096824', 'tblTempVendorCDR_20' ) end [2024-12-25 03:40:19] Production.INFO: ProcessCDR(1,14096824,1,1,2) [2024-12-25 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096824', 'tblTempUsageDetail_20' ) start [2024-12-25 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096824', 'tblTempUsageDetail_20' ) end [2024-12-25 03:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:40:23] Production.INFO: ==2579== Releasing lock... [2024-12-25 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:40:23] Production.INFO: 31 MB #Memory Used# [2024-12-25 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:41:05 [end_date_ymd] => 2024-12-25 03:41:05 [RateCDR] => 1 ) [2024-12-25 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:41:05' and `end` < '2024-12-25 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:41:17] Production.INFO: count ==336 [2024-12-25 03:41:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:41:05 - End Time 2024-12-25 03:41:05 [2024-12-25 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096829', 'tblTempUsageDetail_20' ) start [2024-12-25 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096829', 'tblTempUsageDetail_20' ) end [2024-12-25 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096829', 'tblTempVendorCDR_20' ) start [2024-12-25 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096829', 'tblTempVendorCDR_20' ) end [2024-12-25 03:41:17] Production.INFO: ProcessCDR(1,14096829,1,1,2) [2024-12-25 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096829', 'tblTempUsageDetail_20' ) start [2024-12-25 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096829', 'tblTempUsageDetail_20' ) end [2024-12-25 03:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:41:20] Production.INFO: ==2658== Releasing lock... [2024-12-25 03:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:41:20] Production.INFO: 31 MB #Memory Used# [2024-12-25 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:42:05 [end_date_ymd] => 2024-12-25 03:42:05 [RateCDR] => 1 ) [2024-12-25 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:42:05' and `end` < '2024-12-25 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:42:17] Production.INFO: count ==336 [2024-12-25 03:42:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:42:05 - End Time 2024-12-25 03:42:05 [2024-12-25 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096834', 'tblTempUsageDetail_20' ) start [2024-12-25 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096834', 'tblTempUsageDetail_20' ) end [2024-12-25 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096834', 'tblTempVendorCDR_20' ) start [2024-12-25 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096834', 'tblTempVendorCDR_20' ) end [2024-12-25 03:42:17] Production.INFO: ProcessCDR(1,14096834,1,1,2) [2024-12-25 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096834', 'tblTempUsageDetail_20' ) start [2024-12-25 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096834', 'tblTempUsageDetail_20' ) end [2024-12-25 03:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:42:21] Production.INFO: ==2743== Releasing lock... [2024-12-25 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:42:21] Production.INFO: 31 MB #Memory Used# [2024-12-25 03:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:43:04 [end_date_ymd] => 2024-12-25 03:43:04 [RateCDR] => 1 ) [2024-12-25 03: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-25 00:43:04' and `end` < '2024-12-25 03: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-25 03:43:18] Production.INFO: count ==331 [2024-12-25 03:43:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:43:04 - End Time 2024-12-25 03:43:04 [2024-12-25 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096839', 'tblTempUsageDetail_20' ) start [2024-12-25 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096839', 'tblTempUsageDetail_20' ) end [2024-12-25 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096839', 'tblTempVendorCDR_20' ) start [2024-12-25 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096839', 'tblTempVendorCDR_20' ) end [2024-12-25 03:43:18] Production.INFO: ProcessCDR(1,14096839,1,1,2) [2024-12-25 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096839', 'tblTempUsageDetail_20' ) start [2024-12-25 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096839', 'tblTempUsageDetail_20' ) end [2024-12-25 03:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:43:21] Production.INFO: ==2825== Releasing lock... [2024-12-25 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:43:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-25 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:44:05 [end_date_ymd] => 2024-12-25 03:44:05 [RateCDR] => 1 ) [2024-12-25 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:44:05' and `end` < '2024-12-25 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:44:18] Production.INFO: count ==321 [2024-12-25 03:44:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:44:05 - End Time 2024-12-25 03:44:05 [2024-12-25 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096844', 'tblTempUsageDetail_20' ) start [2024-12-25 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096844', 'tblTempUsageDetail_20' ) end [2024-12-25 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096844', 'tblTempVendorCDR_20' ) start [2024-12-25 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096844', 'tblTempVendorCDR_20' ) end [2024-12-25 03:44:18] Production.INFO: ProcessCDR(1,14096844,1,1,2) [2024-12-25 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096844', 'tblTempUsageDetail_20' ) start [2024-12-25 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096844', 'tblTempUsageDetail_20' ) end [2024-12-25 03:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:44:21] Production.INFO: ==2940== Releasing lock... [2024-12-25 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:44:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:45:06 [end_date_ymd] => 2024-12-25 03:45:06 [RateCDR] => 1 ) [2024-12-25 03:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:45:06' and `end` < '2024-12-25 03:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:45:18] Production.INFO: count ==312 [2024-12-25 03:45:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:45:06 - End Time 2024-12-25 03:45:06 [2024-12-25 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096849', 'tblTempUsageDetail_20' ) start [2024-12-25 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096849', 'tblTempUsageDetail_20' ) end [2024-12-25 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096849', 'tblTempVendorCDR_20' ) start [2024-12-25 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096849', 'tblTempVendorCDR_20' ) end [2024-12-25 03:45:18] Production.INFO: ProcessCDR(1,14096849,1,1,2) [2024-12-25 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096849', 'tblTempUsageDetail_20' ) start [2024-12-25 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096849', 'tblTempUsageDetail_20' ) end [2024-12-25 03:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:45:22] Production.INFO: ==3022== Releasing lock... [2024-12-25 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:45:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:46:05 [end_date_ymd] => 2024-12-25 03:46:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:46:05' and `end` < '2024-12-25 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-25 03:46:17] Production.INFO: count ==305 [2024-12-25 03:46:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:46:05 - End Time 2024-12-25 03:46:05 [2024-12-25 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096854', 'tblTempUsageDetail_20' ) start [2024-12-25 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096854', 'tblTempUsageDetail_20' ) end [2024-12-25 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096854', 'tblTempVendorCDR_20' ) start [2024-12-25 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096854', 'tblTempVendorCDR_20' ) end [2024-12-25 03:46:17] Production.INFO: ProcessCDR(1,14096854,1,1,2) [2024-12-25 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096854', 'tblTempUsageDetail_20' ) start [2024-12-25 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096854', 'tblTempUsageDetail_20' ) end [2024-12-25 03:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:46:20] Production.INFO: ==3100== Releasing lock... [2024-12-25 03:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:46:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-25 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:47:05 [end_date_ymd] => 2024-12-25 03:47:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:47:05' and `end` < '2024-12-25 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-25 03:47:17] Production.INFO: count ==305 [2024-12-25 03:47:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:47:05 - End Time 2024-12-25 03:47:05 [2024-12-25 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096859', 'tblTempUsageDetail_20' ) start [2024-12-25 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096859', 'tblTempUsageDetail_20' ) end [2024-12-25 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096859', 'tblTempVendorCDR_20' ) start [2024-12-25 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096859', 'tblTempVendorCDR_20' ) end [2024-12-25 03:47:17] Production.INFO: ProcessCDR(1,14096859,1,1,2) [2024-12-25 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096859', 'tblTempUsageDetail_20' ) start [2024-12-25 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096859', 'tblTempUsageDetail_20' ) end [2024-12-25 03:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:47:20] Production.INFO: ==3182== Releasing lock... [2024-12-25 03:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:47:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-25 03:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:48:04 [end_date_ymd] => 2024-12-25 03:48:04 [RateCDR] => 1 ) [2024-12-25 03:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:48:04' and `end` < '2024-12-25 03:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:48:16] Production.INFO: count ==301 [2024-12-25 03:48:16] Production.ERROR: pbx CDR StartTime 2024-12-25 00:48:04 - End Time 2024-12-25 03:48:04 [2024-12-25 03:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096864', 'tblTempUsageDetail_20' ) start [2024-12-25 03:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096864', 'tblTempUsageDetail_20' ) end [2024-12-25 03:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096864', 'tblTempVendorCDR_20' ) start [2024-12-25 03:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096864', 'tblTempVendorCDR_20' ) end [2024-12-25 03:48:16] Production.INFO: ProcessCDR(1,14096864,1,1,2) [2024-12-25 03:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:48:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096864', 'tblTempUsageDetail_20' ) start [2024-12-25 03:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096864', 'tblTempUsageDetail_20' ) end [2024-12-25 03:48:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:48:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:48:19] Production.INFO: ==3265== Releasing lock... [2024-12-25 03:48:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:48:19] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:49:05 [end_date_ymd] => 2024-12-25 03:49:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:49:05' and `end` < '2024-12-25 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-25 03:49:18] Production.INFO: count ==299 [2024-12-25 03:49:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:49:05 - End Time 2024-12-25 03:49:05 [2024-12-25 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096869', 'tblTempUsageDetail_20' ) start [2024-12-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096869', 'tblTempUsageDetail_20' ) end [2024-12-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096869', 'tblTempVendorCDR_20' ) start [2024-12-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096869', 'tblTempVendorCDR_20' ) end [2024-12-25 03:49:18] Production.INFO: ProcessCDR(1,14096869,1,1,2) [2024-12-25 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096869', 'tblTempUsageDetail_20' ) start [2024-12-25 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096869', 'tblTempUsageDetail_20' ) end [2024-12-25 03:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:49:21] Production.INFO: ==3342== Releasing lock... [2024-12-25 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:49:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:50:05 [end_date_ymd] => 2024-12-25 03:50:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:50:05' and `end` < '2024-12-25 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-25 03:50:17] Production.INFO: count ==293 [2024-12-25 03:50:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:50:05 - End Time 2024-12-25 03:50:05 [2024-12-25 03:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096875', 'tblTempUsageDetail_20' ) start [2024-12-25 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096875', 'tblTempUsageDetail_20' ) end [2024-12-25 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096875', 'tblTempVendorCDR_20' ) start [2024-12-25 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096875', 'tblTempVendorCDR_20' ) end [2024-12-25 03:50:17] Production.INFO: ProcessCDR(1,14096875,1,1,2) [2024-12-25 03:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096875', 'tblTempUsageDetail_20' ) start [2024-12-25 03:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096875', 'tblTempUsageDetail_20' ) end [2024-12-25 03:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:50:20] Production.INFO: ==3432== Releasing lock... [2024-12-25 03:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:50:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:51:05 [end_date_ymd] => 2024-12-25 03:51:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:51:05' and `end` < '2024-12-25 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-25 03:51:17] Production.INFO: count ==258 [2024-12-25 03:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:51:05 - End Time 2024-12-25 03:51:05 [2024-12-25 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096880', 'tblTempUsageDetail_20' ) start [2024-12-25 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096880', 'tblTempUsageDetail_20' ) end [2024-12-25 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096880', 'tblTempVendorCDR_20' ) start [2024-12-25 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096880', 'tblTempVendorCDR_20' ) end [2024-12-25 03:51:17] Production.INFO: ProcessCDR(1,14096880,1,1,2) [2024-12-25 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096880', 'tblTempUsageDetail_20' ) start [2024-12-25 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096880', 'tblTempUsageDetail_20' ) end [2024-12-25 03:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:51:21] Production.INFO: ==3518== Releasing lock... [2024-12-25 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:51:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:52:05 [end_date_ymd] => 2024-12-25 03:52:05 [RateCDR] => 1 ) [2024-12-25 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:52:05' and `end` < '2024-12-25 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:52:18] Production.INFO: count ==257 [2024-12-25 03:52:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:52:05 - End Time 2024-12-25 03:52:05 [2024-12-25 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096885', 'tblTempUsageDetail_20' ) start [2024-12-25 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096885', 'tblTempUsageDetail_20' ) end [2024-12-25 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096885', 'tblTempVendorCDR_20' ) start [2024-12-25 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096885', 'tblTempVendorCDR_20' ) end [2024-12-25 03:52:18] Production.INFO: ProcessCDR(1,14096885,1,1,2) [2024-12-25 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096885', 'tblTempUsageDetail_20' ) start [2024-12-25 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096885', 'tblTempUsageDetail_20' ) end [2024-12-25 03:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:52:21] Production.INFO: ==3603== Releasing lock... [2024-12-25 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:52:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 03:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:53:04 [end_date_ymd] => 2024-12-25 03:53:04 [RateCDR] => 1 ) [2024-12-25 03: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-25 00:53:04' and `end` < '2024-12-25 03: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-25 03:53:17] Production.INFO: count ==254 [2024-12-25 03:53:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:53:04 - End Time 2024-12-25 03:53:04 [2024-12-25 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096890', 'tblTempUsageDetail_20' ) start [2024-12-25 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096890', 'tblTempUsageDetail_20' ) end [2024-12-25 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096890', 'tblTempVendorCDR_20' ) start [2024-12-25 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096890', 'tblTempVendorCDR_20' ) end [2024-12-25 03:53:17] Production.INFO: ProcessCDR(1,14096890,1,1,2) [2024-12-25 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096890', 'tblTempUsageDetail_20' ) start [2024-12-25 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096890', 'tblTempUsageDetail_20' ) end [2024-12-25 03:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:53:20] Production.INFO: ==3683== Releasing lock... [2024-12-25 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:53:20] Production.INFO: 30 MB #Memory Used# [2024-12-25 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:54:05 [end_date_ymd] => 2024-12-25 03:54:05 [RateCDR] => 1 ) [2024-12-25 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:54:05' and `end` < '2024-12-25 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:54:18] Production.INFO: count ==254 [2024-12-25 03:54:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:54:05 - End Time 2024-12-25 03:54:05 [2024-12-25 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096895', 'tblTempUsageDetail_20' ) start [2024-12-25 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096895', 'tblTempUsageDetail_20' ) end [2024-12-25 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096895', 'tblTempVendorCDR_20' ) start [2024-12-25 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096895', 'tblTempVendorCDR_20' ) end [2024-12-25 03:54:18] Production.INFO: ProcessCDR(1,14096895,1,1,2) [2024-12-25 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096895', 'tblTempUsageDetail_20' ) start [2024-12-25 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096895', 'tblTempUsageDetail_20' ) end [2024-12-25 03:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:54:21] Production.INFO: ==3765== Releasing lock... [2024-12-25 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:54:21] Production.INFO: 30 MB #Memory Used# [2024-12-25 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:55:05 [end_date_ymd] => 2024-12-25 03:55:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:55:05' and `end` < '2024-12-25 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-25 03:55:18] Production.INFO: count ==250 [2024-12-25 03:55:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:55:05 - End Time 2024-12-25 03:55:05 [2024-12-25 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096900', 'tblTempUsageDetail_20' ) start [2024-12-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096900', 'tblTempUsageDetail_20' ) end [2024-12-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096900', 'tblTempVendorCDR_20' ) start [2024-12-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096900', 'tblTempVendorCDR_20' ) end [2024-12-25 03:55:18] Production.INFO: ProcessCDR(1,14096900,1,1,2) [2024-12-25 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096900', 'tblTempUsageDetail_20' ) start [2024-12-25 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096900', 'tblTempUsageDetail_20' ) end [2024-12-25 03:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:55:21] Production.INFO: ==3840== Releasing lock... [2024-12-25 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:55:21] Production.INFO: 30 MB #Memory Used# [2024-12-25 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:56:06 [end_date_ymd] => 2024-12-25 03:56:06 [RateCDR] => 1 ) [2024-12-25 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 00:56:06' and `end` < '2024-12-25 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 03:56:18] Production.INFO: count ==247 [2024-12-25 03:56:19] Production.ERROR: pbx CDR StartTime 2024-12-25 00:56:06 - End Time 2024-12-25 03:56:06 [2024-12-25 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096905', 'tblTempUsageDetail_20' ) start [2024-12-25 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096905', 'tblTempUsageDetail_20' ) end [2024-12-25 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096905', 'tblTempVendorCDR_20' ) start [2024-12-25 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096905', 'tblTempVendorCDR_20' ) end [2024-12-25 03:56:19] Production.INFO: ProcessCDR(1,14096905,1,1,2) [2024-12-25 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096905', 'tblTempUsageDetail_20' ) start [2024-12-25 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096905', 'tblTempUsageDetail_20' ) end [2024-12-25 03:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:56:22] Production.INFO: ==3923== Releasing lock... [2024-12-25 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:56:22] Production.INFO: 30 MB #Memory Used# [2024-12-25 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:57:05 [end_date_ymd] => 2024-12-25 03:57:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:57:05' and `end` < '2024-12-25 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-25 03:57:17] Production.INFO: count ==245 [2024-12-25 03:57:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:57:05 - End Time 2024-12-25 03:57:05 [2024-12-25 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096910', 'tblTempUsageDetail_20' ) start [2024-12-25 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096910', 'tblTempUsageDetail_20' ) end [2024-12-25 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096910', 'tblTempVendorCDR_20' ) start [2024-12-25 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096910', 'tblTempVendorCDR_20' ) end [2024-12-25 03:57:17] Production.INFO: ProcessCDR(1,14096910,1,1,2) [2024-12-25 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096910', 'tblTempUsageDetail_20' ) start [2024-12-25 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096910', 'tblTempUsageDetail_20' ) end [2024-12-25 03:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:57:21] Production.INFO: ==4002== Releasing lock... [2024-12-25 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:57:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-25 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:58:05 [end_date_ymd] => 2024-12-25 03:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:58:05' and `end` < '2024-12-25 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-25 03:58:18] Production.INFO: count ==245 [2024-12-25 03:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 00:58:05 - End Time 2024-12-25 03:58:05 [2024-12-25 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096915', 'tblTempUsageDetail_20' ) start [2024-12-25 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096915', 'tblTempUsageDetail_20' ) end [2024-12-25 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096915', 'tblTempVendorCDR_20' ) start [2024-12-25 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096915', 'tblTempVendorCDR_20' ) end [2024-12-25 03:58:18] Production.INFO: ProcessCDR(1,14096915,1,1,2) [2024-12-25 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096915', 'tblTempUsageDetail_20' ) start [2024-12-25 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096915', 'tblTempUsageDetail_20' ) end [2024-12-25 03:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:58:22] Production.INFO: ==4086== Releasing lock... [2024-12-25 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:58:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-25 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 00:59:05 [end_date_ymd] => 2024-12-25 03:59:05 [RateCDR] => 1 ) [2024-12-25 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-25 00:59:05' and `end` < '2024-12-25 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-25 03:59:17] Production.INFO: count ==245 [2024-12-25 03:59:17] Production.ERROR: pbx CDR StartTime 2024-12-25 00:59:05 - End Time 2024-12-25 03:59:05 [2024-12-25 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096920', 'tblTempUsageDetail_20' ) start [2024-12-25 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096920', 'tblTempUsageDetail_20' ) end [2024-12-25 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096920', 'tblTempVendorCDR_20' ) start [2024-12-25 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096920', 'tblTempVendorCDR_20' ) end [2024-12-25 03:59:17] Production.INFO: ProcessCDR(1,14096920,1,1,2) [2024-12-25 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096920', 'tblTempUsageDetail_20' ) start [2024-12-25 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096920', 'tblTempUsageDetail_20' ) end [2024-12-25 03:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 03:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 03:59:20] Production.INFO: ==4171== Releasing lock... [2024-12-25 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 03:59:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-25 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:00:06 [end_date_ymd] => 2024-12-25 04:00:06 [RateCDR] => 1 ) [2024-12-25 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-25 01:00:06' and `end` < '2024-12-25 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-25 04:00:18] Production.INFO: count ==235 [2024-12-25 04:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:00:06 - End Time 2024-12-25 04:00:06 [2024-12-25 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096927', 'tblTempUsageDetail_20' ) start [2024-12-25 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096927', 'tblTempUsageDetail_20' ) end [2024-12-25 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096927', 'tblTempVendorCDR_20' ) start [2024-12-25 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096927', 'tblTempVendorCDR_20' ) end [2024-12-25 04:00:18] Production.INFO: ProcessCDR(1,14096927,1,1,2) [2024-12-25 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096927', 'tblTempUsageDetail_20' ) start [2024-12-25 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096927', 'tblTempUsageDetail_20' ) end [2024-12-25 04:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:00:21] Production.INFO: ==4291== Releasing lock... [2024-12-25 04:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:00:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-25 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:01:05 [end_date_ymd] => 2024-12-25 04:01:05 [RateCDR] => 1 ) [2024-12-25 04: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-25 01:01:05' and `end` < '2024-12-25 04: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-25 04:01:17] Production.INFO: count ==230 [2024-12-25 04:01:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:01:05 - End Time 2024-12-25 04:01:05 [2024-12-25 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096932', 'tblTempUsageDetail_20' ) start [2024-12-25 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096932', 'tblTempUsageDetail_20' ) end [2024-12-25 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096932', 'tblTempVendorCDR_20' ) start [2024-12-25 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096932', 'tblTempVendorCDR_20' ) end [2024-12-25 04:01:17] Production.INFO: ProcessCDR(1,14096932,1,1,2) [2024-12-25 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096932', 'tblTempUsageDetail_20' ) start [2024-12-25 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096932', 'tblTempUsageDetail_20' ) end [2024-12-25 04:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:01:20] Production.INFO: ==4388== Releasing lock... [2024-12-25 04:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:01:20] Production.INFO: 30 MB #Memory Used# [2024-12-25 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:02:05 [end_date_ymd] => 2024-12-25 04:02:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:02:05' and `end` < '2024-12-25 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-25 04:02:19] Production.INFO: count ==230 [2024-12-25 04:02:19] Production.ERROR: pbx CDR StartTime 2024-12-25 01:02:05 - End Time 2024-12-25 04:02:05 [2024-12-25 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096937', 'tblTempUsageDetail_20' ) start [2024-12-25 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096937', 'tblTempUsageDetail_20' ) end [2024-12-25 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096937', 'tblTempVendorCDR_20' ) start [2024-12-25 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096937', 'tblTempVendorCDR_20' ) end [2024-12-25 04:02:19] Production.INFO: ProcessCDR(1,14096937,1,1,2) [2024-12-25 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096937', 'tblTempUsageDetail_20' ) start [2024-12-25 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096937', 'tblTempUsageDetail_20' ) end [2024-12-25 04:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:02:22] Production.INFO: ==4465== Releasing lock... [2024-12-25 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:02:22] Production.INFO: 30 MB #Memory Used# [2024-12-25 04:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:03:04 [end_date_ymd] => 2024-12-25 04:03:04 [RateCDR] => 1 ) [2024-12-25 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-25 01:03:04' and `end` < '2024-12-25 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-25 04:03:17] Production.INFO: count ==230 [2024-12-25 04:03:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:03:04 - End Time 2024-12-25 04:03:04 [2024-12-25 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096942', 'tblTempUsageDetail_20' ) start [2024-12-25 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096942', 'tblTempUsageDetail_20' ) end [2024-12-25 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096942', 'tblTempVendorCDR_20' ) start [2024-12-25 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096942', 'tblTempVendorCDR_20' ) end [2024-12-25 04:03:17] Production.INFO: ProcessCDR(1,14096942,1,1,2) [2024-12-25 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096942', 'tblTempUsageDetail_20' ) start [2024-12-25 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096942', 'tblTempUsageDetail_20' ) end [2024-12-25 04:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:03:20] Production.INFO: ==4550== Releasing lock... [2024-12-25 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:03:20] Production.INFO: 30 MB #Memory Used# [2024-12-25 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:04:05 [end_date_ymd] => 2024-12-25 04:04:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:04:05' and `end` < '2024-12-25 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-25 04:04:18] Production.INFO: count ==229 [2024-12-25 04:04:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:04:05 - End Time 2024-12-25 04:04:05 [2024-12-25 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096947', 'tblTempUsageDetail_20' ) start [2024-12-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096947', 'tblTempUsageDetail_20' ) end [2024-12-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096947', 'tblTempVendorCDR_20' ) start [2024-12-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096947', 'tblTempVendorCDR_20' ) end [2024-12-25 04:04:18] Production.INFO: ProcessCDR(1,14096947,1,1,2) [2024-12-25 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096947', 'tblTempUsageDetail_20' ) start [2024-12-25 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096947', 'tblTempUsageDetail_20' ) end [2024-12-25 04:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:04:21] Production.INFO: ==4645== Releasing lock... [2024-12-25 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:04:21] Production.INFO: 30 MB #Memory Used# [2024-12-25 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:05:05 [end_date_ymd] => 2024-12-25 04:05:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:05:05' and `end` < '2024-12-25 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-25 04:05:17] Production.INFO: count ==229 [2024-12-25 04:05:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:05:05 - End Time 2024-12-25 04:05:05 [2024-12-25 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096952', 'tblTempUsageDetail_20' ) start [2024-12-25 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096952', 'tblTempUsageDetail_20' ) end [2024-12-25 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096952', 'tblTempVendorCDR_20' ) start [2024-12-25 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096952', 'tblTempVendorCDR_20' ) end [2024-12-25 04:05:17] Production.INFO: ProcessCDR(1,14096952,1,1,2) [2024-12-25 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096952', 'tblTempUsageDetail_20' ) start [2024-12-25 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096952', 'tblTempUsageDetail_20' ) end [2024-12-25 04:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:05:21] Production.INFO: ==4726== Releasing lock... [2024-12-25 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:05:21] Production.INFO: 30 MB #Memory Used# [2024-12-25 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:06:05 [end_date_ymd] => 2024-12-25 04:06:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:06:05' and `end` < '2024-12-25 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-25 04:06:17] Production.INFO: count ==227 [2024-12-25 04:06:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:06:05 - End Time 2024-12-25 04:06:05 [2024-12-25 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096957', 'tblTempUsageDetail_20' ) start [2024-12-25 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096957', 'tblTempUsageDetail_20' ) end [2024-12-25 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096957', 'tblTempVendorCDR_20' ) start [2024-12-25 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096957', 'tblTempVendorCDR_20' ) end [2024-12-25 04:06:17] Production.INFO: ProcessCDR(1,14096957,1,1,2) [2024-12-25 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096957', 'tblTempUsageDetail_20' ) start [2024-12-25 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096957', 'tblTempUsageDetail_20' ) end [2024-12-25 04:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:06:20] Production.INFO: ==4809== Releasing lock... [2024-12-25 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:06:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-25 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:07:05 [end_date_ymd] => 2024-12-25 04:07:05 [RateCDR] => 1 ) [2024-12-25 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:07:05' and `end` < '2024-12-25 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:07:17] Production.INFO: count ==227 [2024-12-25 04:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:07:05 - End Time 2024-12-25 04:07:05 [2024-12-25 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096962', 'tblTempUsageDetail_20' ) start [2024-12-25 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096962', 'tblTempUsageDetail_20' ) end [2024-12-25 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096962', 'tblTempVendorCDR_20' ) start [2024-12-25 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096962', 'tblTempVendorCDR_20' ) end [2024-12-25 04:07:17] Production.INFO: ProcessCDR(1,14096962,1,1,2) [2024-12-25 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096962', 'tblTempUsageDetail_20' ) start [2024-12-25 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096962', 'tblTempUsageDetail_20' ) end [2024-12-25 04:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:07:20] Production.INFO: ==4889== Releasing lock... [2024-12-25 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:07:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-25 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:08:05 [end_date_ymd] => 2024-12-25 04:08:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:08:05' and `end` < '2024-12-25 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-25 04:08:18] Production.INFO: count ==226 [2024-12-25 04:08:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:08:05 - End Time 2024-12-25 04:08:05 [2024-12-25 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096967', 'tblTempUsageDetail_20' ) start [2024-12-25 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096967', 'tblTempUsageDetail_20' ) end [2024-12-25 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096967', 'tblTempVendorCDR_20' ) start [2024-12-25 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096967', 'tblTempVendorCDR_20' ) end [2024-12-25 04:08:18] Production.INFO: ProcessCDR(1,14096967,1,1,2) [2024-12-25 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096967', 'tblTempUsageDetail_20' ) start [2024-12-25 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096967', 'tblTempUsageDetail_20' ) end [2024-12-25 04:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:08:21] Production.INFO: ==4971== Releasing lock... [2024-12-25 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:08:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-25 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:09:04 [end_date_ymd] => 2024-12-25 04:09:04 [RateCDR] => 1 ) [2024-12-25 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-25 01:09:04' and `end` < '2024-12-25 04: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-25 04:09:17] Production.INFO: count ==226 [2024-12-25 04:09:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:09:04 - End Time 2024-12-25 04:09:04 [2024-12-25 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096972', 'tblTempUsageDetail_20' ) start [2024-12-25 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096972', 'tblTempUsageDetail_20' ) end [2024-12-25 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096972', 'tblTempVendorCDR_20' ) start [2024-12-25 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096972', 'tblTempVendorCDR_20' ) end [2024-12-25 04:09:17] Production.INFO: ProcessCDR(1,14096972,1,1,2) [2024-12-25 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096972', 'tblTempUsageDetail_20' ) start [2024-12-25 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096972', 'tblTempUsageDetail_20' ) end [2024-12-25 04:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:09:21] Production.INFO: ==5054== Releasing lock... [2024-12-25 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:09:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-25 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:10:06 [end_date_ymd] => 2024-12-25 04:10:06 [RateCDR] => 1 ) [2024-12-25 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:10:06' and `end` < '2024-12-25 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:10:19] Production.INFO: count ==217 [2024-12-25 04:10:19] Production.ERROR: pbx CDR StartTime 2024-12-25 01:10:06 - End Time 2024-12-25 04:10:06 [2024-12-25 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096978', 'tblTempUsageDetail_20' ) start [2024-12-25 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096978', 'tblTempUsageDetail_20' ) end [2024-12-25 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096978', 'tblTempVendorCDR_20' ) start [2024-12-25 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096978', 'tblTempVendorCDR_20' ) end [2024-12-25 04:10:19] Production.INFO: ProcessCDR(1,14096978,1,1,2) [2024-12-25 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096978', 'tblTempUsageDetail_20' ) start [2024-12-25 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096978', 'tblTempUsageDetail_20' ) end [2024-12-25 04:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:10:22] Production.INFO: ==5139== Releasing lock... [2024-12-25 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:10:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-25 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:11:05 [end_date_ymd] => 2024-12-25 04:11:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:11:05' and `end` < '2024-12-25 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-25 04:11:17] Production.INFO: count ==215 [2024-12-25 04:11:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:11:05 - End Time 2024-12-25 04:11:05 [2024-12-25 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096983', 'tblTempUsageDetail_20' ) start [2024-12-25 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096983', 'tblTempUsageDetail_20' ) end [2024-12-25 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096983', 'tblTempVendorCDR_20' ) start [2024-12-25 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096983', 'tblTempVendorCDR_20' ) end [2024-12-25 04:11:17] Production.INFO: ProcessCDR(1,14096983,1,1,2) [2024-12-25 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096983', 'tblTempUsageDetail_20' ) start [2024-12-25 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096983', 'tblTempUsageDetail_20' ) end [2024-12-25 04:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:11:21] Production.INFO: ==5223== Releasing lock... [2024-12-25 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:11:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-25 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:12:05 [end_date_ymd] => 2024-12-25 04:12:05 [RateCDR] => 1 ) [2024-12-25 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:12:05' and `end` < '2024-12-25 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:12:18] Production.INFO: count ==215 [2024-12-25 04:12:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:12:05 - End Time 2024-12-25 04:12:05 [2024-12-25 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096988', 'tblTempUsageDetail_20' ) start [2024-12-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096988', 'tblTempUsageDetail_20' ) end [2024-12-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096988', 'tblTempVendorCDR_20' ) start [2024-12-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096988', 'tblTempVendorCDR_20' ) end [2024-12-25 04:12:18] Production.INFO: ProcessCDR(1,14096988,1,1,2) [2024-12-25 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096988', 'tblTempUsageDetail_20' ) start [2024-12-25 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096988', 'tblTempUsageDetail_20' ) end [2024-12-25 04:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:12:21] Production.INFO: ==5307== Releasing lock... [2024-12-25 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:12:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-25 04:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:13:04 [end_date_ymd] => 2024-12-25 04:13:04 [RateCDR] => 1 ) [2024-12-25 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-25 01:13:04' and `end` < '2024-12-25 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-25 04:13:18] Production.INFO: count ==210 [2024-12-25 04:13:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:13:04 - End Time 2024-12-25 04:13:04 [2024-12-25 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096993', 'tblTempUsageDetail_20' ) start [2024-12-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096993', 'tblTempUsageDetail_20' ) end [2024-12-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096993', 'tblTempVendorCDR_20' ) start [2024-12-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096993', 'tblTempVendorCDR_20' ) end [2024-12-25 04:13:18] Production.INFO: ProcessCDR(1,14096993,1,1,2) [2024-12-25 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096993', 'tblTempUsageDetail_20' ) start [2024-12-25 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096993', 'tblTempUsageDetail_20' ) end [2024-12-25 04:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:13:21] Production.INFO: ==5383== Releasing lock... [2024-12-25 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:13:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-25 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:14:05 [end_date_ymd] => 2024-12-25 04:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:14:05' and `end` < '2024-12-25 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-25 04:14:18] Production.INFO: count ==203 [2024-12-25 04:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:14:05 - End Time 2024-12-25 04:14:05 [2024-12-25 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096998', 'tblTempUsageDetail_20' ) start [2024-12-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14096998', 'tblTempUsageDetail_20' ) end [2024-12-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096998', 'tblTempVendorCDR_20' ) start [2024-12-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14096998', 'tblTempVendorCDR_20' ) end [2024-12-25 04:14:18] Production.INFO: ProcessCDR(1,14096998,1,1,2) [2024-12-25 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14096998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14096998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14096998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14096998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096998', 'tblTempUsageDetail_20' ) start [2024-12-25 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14096998', 'tblTempUsageDetail_20' ) end [2024-12-25 04:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:14:21] Production.INFO: ==5467== Releasing lock... [2024-12-25 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:14:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-25 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:15:05 [end_date_ymd] => 2024-12-25 04:15:05 [RateCDR] => 1 ) [2024-12-25 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:15:05' and `end` < '2024-12-25 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:15:17] Production.INFO: count ==194 [2024-12-25 04:15:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:15:05 - End Time 2024-12-25 04:15:05 [2024-12-25 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097003', 'tblTempUsageDetail_20' ) start [2024-12-25 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097003', 'tblTempUsageDetail_20' ) end [2024-12-25 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097003', 'tblTempVendorCDR_20' ) start [2024-12-25 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097003', 'tblTempVendorCDR_20' ) end [2024-12-25 04:15:17] Production.INFO: ProcessCDR(1,14097003,1,1,2) [2024-12-25 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097003', 'tblTempUsageDetail_20' ) start [2024-12-25 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097003', 'tblTempUsageDetail_20' ) end [2024-12-25 04:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:15:20] Production.INFO: ==5585== Releasing lock... [2024-12-25 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:15:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-25 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:16:05 [end_date_ymd] => 2024-12-25 04:16:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:16:05' and `end` < '2024-12-25 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-25 04:16:18] Production.INFO: count ==190 [2024-12-25 04:16:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:16:05 - End Time 2024-12-25 04:16:05 [2024-12-25 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097008', 'tblTempUsageDetail_20' ) start [2024-12-25 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097008', 'tblTempUsageDetail_20' ) end [2024-12-25 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097008', 'tblTempVendorCDR_20' ) start [2024-12-25 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097008', 'tblTempVendorCDR_20' ) end [2024-12-25 04:16:18] Production.INFO: ProcessCDR(1,14097008,1,1,2) [2024-12-25 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097008', 'tblTempUsageDetail_20' ) start [2024-12-25 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097008', 'tblTempUsageDetail_20' ) end [2024-12-25 04:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:16:21] Production.INFO: ==5671== Releasing lock... [2024-12-25 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:16:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-25 04:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:17:04 [end_date_ymd] => 2024-12-25 04:17:04 [RateCDR] => 1 ) [2024-12-25 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-25 01:17:04' and `end` < '2024-12-25 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-25 04:17:16] Production.INFO: count ==181 [2024-12-25 04:17:16] Production.ERROR: pbx CDR StartTime 2024-12-25 01:17:04 - End Time 2024-12-25 04:17:04 [2024-12-25 04:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097013', 'tblTempUsageDetail_20' ) start [2024-12-25 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097013', 'tblTempUsageDetail_20' ) end [2024-12-25 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097013', 'tblTempVendorCDR_20' ) start [2024-12-25 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097013', 'tblTempVendorCDR_20' ) end [2024-12-25 04:17:17] Production.INFO: ProcessCDR(1,14097013,1,1,2) [2024-12-25 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097013', 'tblTempUsageDetail_20' ) start [2024-12-25 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097013', 'tblTempUsageDetail_20' ) end [2024-12-25 04:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:17:20] Production.INFO: ==5764== Releasing lock... [2024-12-25 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:17:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-25 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:18:05 [end_date_ymd] => 2024-12-25 04:18:05 [RateCDR] => 1 ) [2024-12-25 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:18:05' and `end` < '2024-12-25 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:18:17] Production.INFO: count ==172 [2024-12-25 04:18:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:18:05 - End Time 2024-12-25 04:18:05 [2024-12-25 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097018', 'tblTempUsageDetail_20' ) start [2024-12-25 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097018', 'tblTempUsageDetail_20' ) end [2024-12-25 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097018', 'tblTempVendorCDR_20' ) start [2024-12-25 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097018', 'tblTempVendorCDR_20' ) end [2024-12-25 04:18:17] Production.INFO: ProcessCDR(1,14097018,1,1,2) [2024-12-25 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097018', 'tblTempUsageDetail_20' ) start [2024-12-25 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097018', 'tblTempUsageDetail_20' ) end [2024-12-25 04:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:18:20] Production.INFO: ==5842== Releasing lock... [2024-12-25 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:18:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-25 04:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:19:04 [end_date_ymd] => 2024-12-25 04:19:04 [RateCDR] => 1 ) [2024-12-25 04: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-25 01:19:04' and `end` < '2024-12-25 04: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-25 04:19:17] Production.INFO: count ==168 [2024-12-25 04:19:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:19:04 - End Time 2024-12-25 04:19:04 [2024-12-25 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097023', 'tblTempUsageDetail_20' ) start [2024-12-25 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097023', 'tblTempUsageDetail_20' ) end [2024-12-25 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097023', 'tblTempVendorCDR_20' ) start [2024-12-25 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097023', 'tblTempVendorCDR_20' ) end [2024-12-25 04:19:17] Production.INFO: ProcessCDR(1,14097023,1,1,2) [2024-12-25 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097023', 'tblTempUsageDetail_20' ) start [2024-12-25 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097023', 'tblTempUsageDetail_20' ) end [2024-12-25 04:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:19:20] Production.INFO: ==5927== Releasing lock... [2024-12-25 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:19:20] Production.INFO: 29 MB #Memory Used# [2024-12-25 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:20:06 [end_date_ymd] => 2024-12-25 04:20:06 [RateCDR] => 1 ) [2024-12-25 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:20:06' and `end` < '2024-12-25 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:20:18] Production.INFO: count ==156 [2024-12-25 04:20:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:20:06 - End Time 2024-12-25 04:20:06 [2024-12-25 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097029', 'tblTempUsageDetail_20' ) start [2024-12-25 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097029', 'tblTempUsageDetail_20' ) end [2024-12-25 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097029', 'tblTempVendorCDR_20' ) start [2024-12-25 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097029', 'tblTempVendorCDR_20' ) end [2024-12-25 04:20:18] Production.INFO: ProcessCDR(1,14097029,1,1,2) [2024-12-25 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097029', 'tblTempUsageDetail_20' ) start [2024-12-25 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097029', 'tblTempUsageDetail_20' ) end [2024-12-25 04:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:20:21] Production.INFO: ==6019== Releasing lock... [2024-12-25 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:20:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-25 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:21:05 [end_date_ymd] => 2024-12-25 04:21:05 [RateCDR] => 1 ) [2024-12-25 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:21:05' and `end` < '2024-12-25 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:21:19] Production.INFO: count ==156 [2024-12-25 04:21:19] Production.ERROR: pbx CDR StartTime 2024-12-25 01:21:05 - End Time 2024-12-25 04:21:05 [2024-12-25 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097034', 'tblTempUsageDetail_20' ) start [2024-12-25 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097034', 'tblTempUsageDetail_20' ) end [2024-12-25 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097034', 'tblTempVendorCDR_20' ) start [2024-12-25 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097034', 'tblTempVendorCDR_20' ) end [2024-12-25 04:21:19] Production.INFO: ProcessCDR(1,14097034,1,1,2) [2024-12-25 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097034', 'tblTempUsageDetail_20' ) start [2024-12-25 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097034', 'tblTempUsageDetail_20' ) end [2024-12-25 04:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:21:22] Production.INFO: ==6099== Releasing lock... [2024-12-25 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:21:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-25 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:22:05 [end_date_ymd] => 2024-12-25 04:22:05 [RateCDR] => 1 ) [2024-12-25 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:22:05' and `end` < '2024-12-25 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:22:19] Production.INFO: count ==149 [2024-12-25 04:22:19] Production.ERROR: pbx CDR StartTime 2024-12-25 01:22:05 - End Time 2024-12-25 04:22:05 [2024-12-25 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097039', 'tblTempUsageDetail_20' ) start [2024-12-25 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097039', 'tblTempUsageDetail_20' ) end [2024-12-25 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097039', 'tblTempVendorCDR_20' ) start [2024-12-25 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097039', 'tblTempVendorCDR_20' ) end [2024-12-25 04:22:19] Production.INFO: ProcessCDR(1,14097039,1,1,2) [2024-12-25 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097039', 'tblTempUsageDetail_20' ) start [2024-12-25 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097039', 'tblTempUsageDetail_20' ) end [2024-12-25 04:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:22:22] Production.INFO: ==6176== Releasing lock... [2024-12-25 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:22:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-25 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:23:05 [end_date_ymd] => 2024-12-25 04:23:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:23:05' and `end` < '2024-12-25 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-25 04:23:17] Production.INFO: count ==149 [2024-12-25 04:23:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:23:05 - End Time 2024-12-25 04:23:05 [2024-12-25 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097044', 'tblTempUsageDetail_20' ) start [2024-12-25 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097044', 'tblTempUsageDetail_20' ) end [2024-12-25 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097044', 'tblTempVendorCDR_20' ) start [2024-12-25 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097044', 'tblTempVendorCDR_20' ) end [2024-12-25 04:23:17] Production.INFO: ProcessCDR(1,14097044,1,1,2) [2024-12-25 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097044', 'tblTempUsageDetail_20' ) start [2024-12-25 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097044', 'tblTempUsageDetail_20' ) end [2024-12-25 04:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:23:20] Production.INFO: ==6257== Releasing lock... [2024-12-25 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:23:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-25 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:24:05 [end_date_ymd] => 2024-12-25 04:24:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:24:05' and `end` < '2024-12-25 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-25 04:24:18] Production.INFO: count ==149 [2024-12-25 04:24:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:24:05 - End Time 2024-12-25 04:24:05 [2024-12-25 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097049', 'tblTempUsageDetail_20' ) start [2024-12-25 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097049', 'tblTempUsageDetail_20' ) end [2024-12-25 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097049', 'tblTempVendorCDR_20' ) start [2024-12-25 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097049', 'tblTempVendorCDR_20' ) end [2024-12-25 04:24:18] Production.INFO: ProcessCDR(1,14097049,1,1,2) [2024-12-25 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097049', 'tblTempUsageDetail_20' ) start [2024-12-25 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097049', 'tblTempUsageDetail_20' ) end [2024-12-25 04:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:24:21] Production.INFO: ==6331== Releasing lock... [2024-12-25 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:24:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-25 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:25:05 [end_date_ymd] => 2024-12-25 04:25:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:25:05' and `end` < '2024-12-25 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-25 04:25:18] Production.INFO: count ==148 [2024-12-25 04:25:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:25:05 - End Time 2024-12-25 04:25:05 [2024-12-25 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097054', 'tblTempUsageDetail_20' ) start [2024-12-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097054', 'tblTempUsageDetail_20' ) end [2024-12-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097054', 'tblTempVendorCDR_20' ) start [2024-12-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097054', 'tblTempVendorCDR_20' ) end [2024-12-25 04:25:18] Production.INFO: ProcessCDR(1,14097054,1,1,2) [2024-12-25 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097054', 'tblTempUsageDetail_20' ) start [2024-12-25 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097054', 'tblTempUsageDetail_20' ) end [2024-12-25 04:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:25:21] Production.INFO: ==6411== Releasing lock... [2024-12-25 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:25:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-25 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:26:05 [end_date_ymd] => 2024-12-25 04:26:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:26:05' and `end` < '2024-12-25 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-25 04:26:18] Production.INFO: count ==148 [2024-12-25 04:26:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:26:05 - End Time 2024-12-25 04:26:05 [2024-12-25 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097059', 'tblTempUsageDetail_20' ) start [2024-12-25 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097059', 'tblTempUsageDetail_20' ) end [2024-12-25 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097059', 'tblTempVendorCDR_20' ) start [2024-12-25 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097059', 'tblTempVendorCDR_20' ) end [2024-12-25 04:26:18] Production.INFO: ProcessCDR(1,14097059,1,1,2) [2024-12-25 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097059', 'tblTempUsageDetail_20' ) start [2024-12-25 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097059', 'tblTempUsageDetail_20' ) end [2024-12-25 04:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:26:21] Production.INFO: ==6489== Releasing lock... [2024-12-25 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:26:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-25 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:27:05 [end_date_ymd] => 2024-12-25 04:27:05 [RateCDR] => 1 ) [2024-12-25 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:27:05' and `end` < '2024-12-25 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:27:18] Production.INFO: count ==147 [2024-12-25 04:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:27:05 - End Time 2024-12-25 04:27:05 [2024-12-25 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097064', 'tblTempUsageDetail_20' ) start [2024-12-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097064', 'tblTempUsageDetail_20' ) end [2024-12-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097064', 'tblTempVendorCDR_20' ) start [2024-12-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097064', 'tblTempVendorCDR_20' ) end [2024-12-25 04:27:18] Production.INFO: ProcessCDR(1,14097064,1,1,2) [2024-12-25 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097064', 'tblTempUsageDetail_20' ) start [2024-12-25 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097064', 'tblTempUsageDetail_20' ) end [2024-12-25 04:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:27:21] Production.INFO: ==6565== Releasing lock... [2024-12-25 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:27:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-25 04:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:28:04 [end_date_ymd] => 2024-12-25 04:28:04 [RateCDR] => 1 ) [2024-12-25 04: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-25 01:28:04' and `end` < '2024-12-25 04: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-25 04:28:17] Production.INFO: count ==145 [2024-12-25 04:28:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:28:04 - End Time 2024-12-25 04:28:04 [2024-12-25 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097069', 'tblTempUsageDetail_20' ) start [2024-12-25 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097069', 'tblTempUsageDetail_20' ) end [2024-12-25 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097069', 'tblTempVendorCDR_20' ) start [2024-12-25 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097069', 'tblTempVendorCDR_20' ) end [2024-12-25 04:28:17] Production.INFO: ProcessCDR(1,14097069,1,1,2) [2024-12-25 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097069', 'tblTempUsageDetail_20' ) start [2024-12-25 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097069', 'tblTempUsageDetail_20' ) end [2024-12-25 04:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:28:20] Production.INFO: ==6639== Releasing lock... [2024-12-25 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:28:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-25 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:29:05 [end_date_ymd] => 2024-12-25 04:29:05 [RateCDR] => 1 ) [2024-12-25 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:29:05' and `end` < '2024-12-25 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:29:17] Production.INFO: count ==140 [2024-12-25 04:29:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:29:05 - End Time 2024-12-25 04:29:05 [2024-12-25 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097074', 'tblTempUsageDetail_20' ) start [2024-12-25 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097074', 'tblTempUsageDetail_20' ) end [2024-12-25 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097074', 'tblTempVendorCDR_20' ) start [2024-12-25 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097074', 'tblTempVendorCDR_20' ) end [2024-12-25 04:29:17] Production.INFO: ProcessCDR(1,14097074,1,1,2) [2024-12-25 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097074', 'tblTempUsageDetail_20' ) start [2024-12-25 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097074', 'tblTempUsageDetail_20' ) end [2024-12-25 04:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:29:20] Production.INFO: ==6716== Releasing lock... [2024-12-25 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:29:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-25 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:30:06 [end_date_ymd] => 2024-12-25 04:30:06 [RateCDR] => 1 ) [2024-12-25 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-25 01:30:06' and `end` < '2024-12-25 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-25 04:30:18] Production.INFO: count ==133 [2024-12-25 04:30:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:30:06 - End Time 2024-12-25 04:30:06 [2024-12-25 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097081', 'tblTempUsageDetail_20' ) start [2024-12-25 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097081', 'tblTempUsageDetail_20' ) end [2024-12-25 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097081', 'tblTempVendorCDR_20' ) start [2024-12-25 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097081', 'tblTempVendorCDR_20' ) end [2024-12-25 04:30:18] Production.INFO: ProcessCDR(1,14097081,1,1,2) [2024-12-25 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097081', 'tblTempUsageDetail_20' ) start [2024-12-25 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097081', 'tblTempUsageDetail_20' ) end [2024-12-25 04:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:30:22] Production.INFO: ==6800== Releasing lock... [2024-12-25 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:30:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:31:05 [end_date_ymd] => 2024-12-25 04:31:05 [RateCDR] => 1 ) [2024-12-25 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:31:05' and `end` < '2024-12-25 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:31:18] Production.INFO: count ==123 [2024-12-25 04:31:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:31:05 - End Time 2024-12-25 04:31:05 [2024-12-25 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097086', 'tblTempUsageDetail_20' ) start [2024-12-25 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097086', 'tblTempUsageDetail_20' ) end [2024-12-25 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097086', 'tblTempVendorCDR_20' ) start [2024-12-25 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097086', 'tblTempVendorCDR_20' ) end [2024-12-25 04:31:18] Production.INFO: ProcessCDR(1,14097086,1,1,2) [2024-12-25 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097086', 'tblTempUsageDetail_20' ) start [2024-12-25 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097086', 'tblTempUsageDetail_20' ) end [2024-12-25 04:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:31:21] Production.INFO: ==6978== Releasing lock... [2024-12-25 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:31:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:32:05 [end_date_ymd] => 2024-12-25 04:32:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:32:05' and `end` < '2024-12-25 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-25 04:32:18] Production.INFO: count ==119 [2024-12-25 04:32:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:32:05 - End Time 2024-12-25 04:32:05 [2024-12-25 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097091', 'tblTempUsageDetail_20' ) start [2024-12-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097091', 'tblTempUsageDetail_20' ) end [2024-12-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097091', 'tblTempVendorCDR_20' ) start [2024-12-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097091', 'tblTempVendorCDR_20' ) end [2024-12-25 04:32:18] Production.INFO: ProcessCDR(1,14097091,1,1,2) [2024-12-25 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097091', 'tblTempUsageDetail_20' ) start [2024-12-25 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097091', 'tblTempUsageDetail_20' ) end [2024-12-25 04:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:32:21] Production.INFO: ==7055== Releasing lock... [2024-12-25 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:32:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:33:04 [end_date_ymd] => 2024-12-25 04:33:04 [RateCDR] => 1 ) [2024-12-25 04: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-25 01:33:04' and `end` < '2024-12-25 04: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-25 04:33:16] Production.INFO: count ==119 [2024-12-25 04:33:16] Production.ERROR: pbx CDR StartTime 2024-12-25 01:33:04 - End Time 2024-12-25 04:33:04 [2024-12-25 04:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097096', 'tblTempUsageDetail_20' ) start [2024-12-25 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097096', 'tblTempUsageDetail_20' ) end [2024-12-25 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097096', 'tblTempVendorCDR_20' ) start [2024-12-25 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097096', 'tblTempVendorCDR_20' ) end [2024-12-25 04:33:16] Production.INFO: ProcessCDR(1,14097096,1,1,2) [2024-12-25 04:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097096', 'tblTempUsageDetail_20' ) start [2024-12-25 04:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097096', 'tblTempUsageDetail_20' ) end [2024-12-25 04:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:33:19] Production.INFO: ==7135== Releasing lock... [2024-12-25 04:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:33:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:34:05 [end_date_ymd] => 2024-12-25 04:34:05 [RateCDR] => 1 ) [2024-12-25 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:34:05' and `end` < '2024-12-25 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:34:18] Production.INFO: count ==117 [2024-12-25 04:34:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:34:05 - End Time 2024-12-25 04:34:05 [2024-12-25 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097101', 'tblTempUsageDetail_20' ) start [2024-12-25 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097101', 'tblTempUsageDetail_20' ) end [2024-12-25 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097101', 'tblTempVendorCDR_20' ) start [2024-12-25 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097101', 'tblTempVendorCDR_20' ) end [2024-12-25 04:34:18] Production.INFO: ProcessCDR(1,14097101,1,1,2) [2024-12-25 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097101', 'tblTempUsageDetail_20' ) start [2024-12-25 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097101', 'tblTempUsageDetail_20' ) end [2024-12-25 04:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:34:21] Production.INFO: ==7212== Releasing lock... [2024-12-25 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:34:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:35:05 [end_date_ymd] => 2024-12-25 04:35:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:35:05' and `end` < '2024-12-25 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-25 04:35:17] Production.INFO: count ==117 [2024-12-25 04:35:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:35:05 - End Time 2024-12-25 04:35:05 [2024-12-25 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097106', 'tblTempUsageDetail_20' ) start [2024-12-25 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097106', 'tblTempUsageDetail_20' ) end [2024-12-25 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097106', 'tblTempVendorCDR_20' ) start [2024-12-25 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097106', 'tblTempVendorCDR_20' ) end [2024-12-25 04:35:17] Production.INFO: ProcessCDR(1,14097106,1,1,2) [2024-12-25 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097106', 'tblTempUsageDetail_20' ) start [2024-12-25 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097106', 'tblTempUsageDetail_20' ) end [2024-12-25 04:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:35:21] Production.INFO: ==7289== Releasing lock... [2024-12-25 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:35:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:36:05 [end_date_ymd] => 2024-12-25 04:36:05 [RateCDR] => 1 ) [2024-12-25 04:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:36:05' and `end` < '2024-12-25 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:36:18] Production.INFO: count ==117 [2024-12-25 04:36:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:36:05 - End Time 2024-12-25 04:36:05 [2024-12-25 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097111', 'tblTempUsageDetail_20' ) start [2024-12-25 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097111', 'tblTempUsageDetail_20' ) end [2024-12-25 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097111', 'tblTempVendorCDR_20' ) start [2024-12-25 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097111', 'tblTempVendorCDR_20' ) end [2024-12-25 04:36:18] Production.INFO: ProcessCDR(1,14097111,1,1,2) [2024-12-25 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097111', 'tblTempUsageDetail_20' ) start [2024-12-25 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097111', 'tblTempUsageDetail_20' ) end [2024-12-25 04:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:36:21] Production.INFO: ==7369== Releasing lock... [2024-12-25 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:36:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:37:04 [end_date_ymd] => 2024-12-25 04:37:04 [RateCDR] => 1 ) [2024-12-25 04:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:37:04' and `end` < '2024-12-25 04:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:37:16] Production.INFO: count ==117 [2024-12-25 04:37:16] Production.ERROR: pbx CDR StartTime 2024-12-25 01:37:04 - End Time 2024-12-25 04:37:04 [2024-12-25 04:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097116', 'tblTempUsageDetail_20' ) start [2024-12-25 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097116', 'tblTempUsageDetail_20' ) end [2024-12-25 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097116', 'tblTempVendorCDR_20' ) start [2024-12-25 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097116', 'tblTempVendorCDR_20' ) end [2024-12-25 04:37:16] Production.INFO: ProcessCDR(1,14097116,1,1,2) [2024-12-25 04:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097116', 'tblTempUsageDetail_20' ) start [2024-12-25 04:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097116', 'tblTempUsageDetail_20' ) end [2024-12-25 04:37:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:37:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:37:19] Production.INFO: ==7447== Releasing lock... [2024-12-25 04:37:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:37:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:38:04 [end_date_ymd] => 2024-12-25 04:38:04 [RateCDR] => 1 ) [2024-12-25 04: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-25 01:38:04' and `end` < '2024-12-25 04: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-25 04:38:18] Production.INFO: count ==117 [2024-12-25 04:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:38:04 - End Time 2024-12-25 04:38:04 [2024-12-25 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097121', 'tblTempUsageDetail_20' ) start [2024-12-25 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097121', 'tblTempUsageDetail_20' ) end [2024-12-25 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097121', 'tblTempVendorCDR_20' ) start [2024-12-25 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097121', 'tblTempVendorCDR_20' ) end [2024-12-25 04:38:18] Production.INFO: ProcessCDR(1,14097121,1,1,2) [2024-12-25 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097121', 'tblTempUsageDetail_20' ) start [2024-12-25 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097121', 'tblTempUsageDetail_20' ) end [2024-12-25 04:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:38:21] Production.INFO: ==7525== Releasing lock... [2024-12-25 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:38:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:39:05 [end_date_ymd] => 2024-12-25 04:39:05 [RateCDR] => 1 ) [2024-12-25 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:39:05' and `end` < '2024-12-25 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:39:18] Production.INFO: count ==117 [2024-12-25 04:39:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:39:05 - End Time 2024-12-25 04:39:05 [2024-12-25 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097126', 'tblTempUsageDetail_20' ) start [2024-12-25 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097126', 'tblTempUsageDetail_20' ) end [2024-12-25 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097126', 'tblTempVendorCDR_20' ) start [2024-12-25 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097126', 'tblTempVendorCDR_20' ) end [2024-12-25 04:39:18] Production.INFO: ProcessCDR(1,14097126,1,1,2) [2024-12-25 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097126', 'tblTempUsageDetail_20' ) start [2024-12-25 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097126', 'tblTempUsageDetail_20' ) end [2024-12-25 04:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:39:21] Production.INFO: ==7601== Releasing lock... [2024-12-25 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:39:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:40:05 [end_date_ymd] => 2024-12-25 04:40:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:40:05' and `end` < '2024-12-25 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-25 04:40:18] Production.INFO: count ==111 [2024-12-25 04:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:40:05 - End Time 2024-12-25 04:40:05 [2024-12-25 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097131', 'tblTempUsageDetail_20' ) start [2024-12-25 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097131', 'tblTempUsageDetail_20' ) end [2024-12-25 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097131', 'tblTempVendorCDR_20' ) start [2024-12-25 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097131', 'tblTempVendorCDR_20' ) end [2024-12-25 04:40:18] Production.INFO: ProcessCDR(1,14097131,1,1,2) [2024-12-25 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097131', 'tblTempUsageDetail_20' ) start [2024-12-25 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097131', 'tblTempUsageDetail_20' ) end [2024-12-25 04:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:40:21] Production.INFO: ==7680== Releasing lock... [2024-12-25 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:40:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:41:05 [end_date_ymd] => 2024-12-25 04:41:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:41:05' and `end` < '2024-12-25 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-25 04:41:18] Production.INFO: count ==111 [2024-12-25 04:41:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:41:05 - End Time 2024-12-25 04:41:05 [2024-12-25 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097137', 'tblTempUsageDetail_20' ) start [2024-12-25 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097137', 'tblTempUsageDetail_20' ) end [2024-12-25 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097137', 'tblTempVendorCDR_20' ) start [2024-12-25 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097137', 'tblTempVendorCDR_20' ) end [2024-12-25 04:41:18] Production.INFO: ProcessCDR(1,14097137,1,1,2) [2024-12-25 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097137', 'tblTempUsageDetail_20' ) start [2024-12-25 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097137', 'tblTempUsageDetail_20' ) end [2024-12-25 04:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:41:21] Production.INFO: ==7763== Releasing lock... [2024-12-25 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:41:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:42:04 [end_date_ymd] => 2024-12-25 04:42:04 [RateCDR] => 1 ) [2024-12-25 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:42:04' and `end` < '2024-12-25 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-25 04:42:17] Production.INFO: count ==111 [2024-12-25 04:42:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:42:04 - End Time 2024-12-25 04:42:04 [2024-12-25 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097142', 'tblTempUsageDetail_20' ) start [2024-12-25 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097142', 'tblTempUsageDetail_20' ) end [2024-12-25 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097142', 'tblTempVendorCDR_20' ) start [2024-12-25 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097142', 'tblTempVendorCDR_20' ) end [2024-12-25 04:42:17] Production.INFO: ProcessCDR(1,14097142,1,1,2) [2024-12-25 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097142', 'tblTempUsageDetail_20' ) start [2024-12-25 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097142', 'tblTempUsageDetail_20' ) end [2024-12-25 04:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:42:20] Production.INFO: ==7840== Releasing lock... [2024-12-25 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:42:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:43:05 [end_date_ymd] => 2024-12-25 04:43:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:43:05' and `end` < '2024-12-25 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-25 04:43:18] Production.INFO: count ==111 [2024-12-25 04:43:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:43:05 - End Time 2024-12-25 04:43:05 [2024-12-25 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097147', 'tblTempUsageDetail_20' ) start [2024-12-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097147', 'tblTempUsageDetail_20' ) end [2024-12-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097147', 'tblTempVendorCDR_20' ) start [2024-12-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097147', 'tblTempVendorCDR_20' ) end [2024-12-25 04:43:18] Production.INFO: ProcessCDR(1,14097147,1,1,2) [2024-12-25 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097147', 'tblTempUsageDetail_20' ) start [2024-12-25 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097147', 'tblTempUsageDetail_20' ) end [2024-12-25 04:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:43:21] Production.INFO: ==7918== Releasing lock... [2024-12-25 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:43:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:44:04 [end_date_ymd] => 2024-12-25 04:44:04 [RateCDR] => 1 ) [2024-12-25 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-25 01:44:04' and `end` < '2024-12-25 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-25 04:44:17] Production.INFO: count ==110 [2024-12-25 04:44:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:44:04 - End Time 2024-12-25 04:44:04 [2024-12-25 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097152', 'tblTempUsageDetail_20' ) start [2024-12-25 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097152', 'tblTempUsageDetail_20' ) end [2024-12-25 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097152', 'tblTempVendorCDR_20' ) start [2024-12-25 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097152', 'tblTempVendorCDR_20' ) end [2024-12-25 04:44:17] Production.INFO: ProcessCDR(1,14097152,1,1,2) [2024-12-25 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097152', 'tblTempUsageDetail_20' ) start [2024-12-25 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097152', 'tblTempUsageDetail_20' ) end [2024-12-25 04:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:44:21] Production.INFO: ==7993== Releasing lock... [2024-12-25 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:44:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:45:05 [end_date_ymd] => 2024-12-25 04:45:05 [RateCDR] => 1 ) [2024-12-25 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:45:05' and `end` < '2024-12-25 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:45:17] Production.INFO: count ==110 [2024-12-25 04:45:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:45:05 - End Time 2024-12-25 04:45:05 [2024-12-25 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097157', 'tblTempUsageDetail_20' ) start [2024-12-25 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097157', 'tblTempUsageDetail_20' ) end [2024-12-25 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097157', 'tblTempVendorCDR_20' ) start [2024-12-25 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097157', 'tblTempVendorCDR_20' ) end [2024-12-25 04:45:17] Production.INFO: ProcessCDR(1,14097157,1,1,2) [2024-12-25 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097157', 'tblTempUsageDetail_20' ) start [2024-12-25 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097157', 'tblTempUsageDetail_20' ) end [2024-12-25 04:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:45:20] Production.INFO: ==8071== Releasing lock... [2024-12-25 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:45:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:46:05 [end_date_ymd] => 2024-12-25 04:46:05 [RateCDR] => 1 ) [2024-12-25 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:46:05' and `end` < '2024-12-25 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:46:21] Production.INFO: count ==110 [2024-12-25 04:46:21] Production.ERROR: pbx CDR StartTime 2024-12-25 01:46:05 - End Time 2024-12-25 04:46:05 [2024-12-25 04:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097162', 'tblTempUsageDetail_20' ) start [2024-12-25 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097162', 'tblTempUsageDetail_20' ) end [2024-12-25 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097162', 'tblTempVendorCDR_20' ) start [2024-12-25 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097162', 'tblTempVendorCDR_20' ) end [2024-12-25 04:46:21] Production.INFO: ProcessCDR(1,14097162,1,1,2) [2024-12-25 04:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097162', 'tblTempUsageDetail_20' ) start [2024-12-25 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097162', 'tblTempUsageDetail_20' ) end [2024-12-25 04:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:46:24] Production.INFO: ==8153== Releasing lock... [2024-12-25 04:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:46:24] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:47:05 [end_date_ymd] => 2024-12-25 04:47:05 [RateCDR] => 1 ) [2024-12-25 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:47:05' and `end` < '2024-12-25 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:47:19] Production.INFO: count ==110 [2024-12-25 04:47:19] Production.ERROR: pbx CDR StartTime 2024-12-25 01:47:05 - End Time 2024-12-25 04:47:05 [2024-12-25 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097167', 'tblTempUsageDetail_20' ) start [2024-12-25 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097167', 'tblTempUsageDetail_20' ) end [2024-12-25 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097167', 'tblTempVendorCDR_20' ) start [2024-12-25 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097167', 'tblTempVendorCDR_20' ) end [2024-12-25 04:47:19] Production.INFO: ProcessCDR(1,14097167,1,1,2) [2024-12-25 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097167', 'tblTempUsageDetail_20' ) start [2024-12-25 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097167', 'tblTempUsageDetail_20' ) end [2024-12-25 04:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:47:22] Production.INFO: ==8275== Releasing lock... [2024-12-25 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:47:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:48:05 [end_date_ymd] => 2024-12-25 04:48:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:48:05' and `end` < '2024-12-25 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-25 04:48:18] Production.INFO: count ==110 [2024-12-25 04:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:48:05 - End Time 2024-12-25 04:48:05 [2024-12-25 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097172', 'tblTempUsageDetail_20' ) start [2024-12-25 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097172', 'tblTempUsageDetail_20' ) end [2024-12-25 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097172', 'tblTempVendorCDR_20' ) start [2024-12-25 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097172', 'tblTempVendorCDR_20' ) end [2024-12-25 04:48:18] Production.INFO: ProcessCDR(1,14097172,1,1,2) [2024-12-25 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097172', 'tblTempUsageDetail_20' ) start [2024-12-25 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097172', 'tblTempUsageDetail_20' ) end [2024-12-25 04:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:48:21] Production.INFO: ==8358== Releasing lock... [2024-12-25 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:48:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:49:05 [end_date_ymd] => 2024-12-25 04:49:05 [RateCDR] => 1 ) [2024-12-25 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:49:05' and `end` < '2024-12-25 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:49:19] Production.INFO: count ==110 [2024-12-25 04:49:19] Production.ERROR: pbx CDR StartTime 2024-12-25 01:49:05 - End Time 2024-12-25 04:49:05 [2024-12-25 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097177', 'tblTempUsageDetail_20' ) start [2024-12-25 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097177', 'tblTempUsageDetail_20' ) end [2024-12-25 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097177', 'tblTempVendorCDR_20' ) start [2024-12-25 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097177', 'tblTempVendorCDR_20' ) end [2024-12-25 04:49:19] Production.INFO: ProcessCDR(1,14097177,1,1,2) [2024-12-25 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097177', 'tblTempUsageDetail_20' ) start [2024-12-25 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097177', 'tblTempUsageDetail_20' ) end [2024-12-25 04:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:49:22] Production.INFO: ==8438== Releasing lock... [2024-12-25 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:49:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:50:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:50:04 [end_date_ymd] => 2024-12-25 04:50:04 [RateCDR] => 1 ) [2024-12-25 04: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-25 01:50:04' and `end` < '2024-12-25 04: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-25 04:50:18] Production.INFO: count ==106 [2024-12-25 04:50:19] Production.ERROR: pbx CDR StartTime 2024-12-25 01:50:04 - End Time 2024-12-25 04:50:04 [2024-12-25 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097182', 'tblTempUsageDetail_20' ) start [2024-12-25 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097182', 'tblTempUsageDetail_20' ) end [2024-12-25 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097182', 'tblTempVendorCDR_20' ) start [2024-12-25 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097182', 'tblTempVendorCDR_20' ) end [2024-12-25 04:50:19] Production.INFO: ProcessCDR(1,14097182,1,1,2) [2024-12-25 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097182', 'tblTempUsageDetail_20' ) start [2024-12-25 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097182', 'tblTempUsageDetail_20' ) end [2024-12-25 04:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:50:22] Production.INFO: ==8528== Releasing lock... [2024-12-25 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:50:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:51:04 [end_date_ymd] => 2024-12-25 04:51:04 [RateCDR] => 1 ) [2024-12-25 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-25 01:51:04' and `end` < '2024-12-25 04:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:51:18] Production.INFO: count ==106 [2024-12-25 04:51:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:51:04 - End Time 2024-12-25 04:51:04 [2024-12-25 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097188', 'tblTempUsageDetail_20' ) start [2024-12-25 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097188', 'tblTempUsageDetail_20' ) end [2024-12-25 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097188', 'tblTempVendorCDR_20' ) start [2024-12-25 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097188', 'tblTempVendorCDR_20' ) end [2024-12-25 04:51:18] Production.INFO: ProcessCDR(1,14097188,1,1,2) [2024-12-25 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097188', 'tblTempUsageDetail_20' ) start [2024-12-25 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097188', 'tblTempUsageDetail_20' ) end [2024-12-25 04:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:51:21] Production.INFO: ==8608== Releasing lock... [2024-12-25 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:51:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:52:05 [end_date_ymd] => 2024-12-25 04:52:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:52:05' and `end` < '2024-12-25 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-25 04:52:19] Production.INFO: count ==106 [2024-12-25 04:52:19] Production.ERROR: pbx CDR StartTime 2024-12-25 01:52:05 - End Time 2024-12-25 04:52:05 [2024-12-25 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097193', 'tblTempUsageDetail_20' ) start [2024-12-25 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097193', 'tblTempUsageDetail_20' ) end [2024-12-25 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097193', 'tblTempVendorCDR_20' ) start [2024-12-25 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097193', 'tblTempVendorCDR_20' ) end [2024-12-25 04:52:19] Production.INFO: ProcessCDR(1,14097193,1,1,2) [2024-12-25 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097193', 'tblTempUsageDetail_20' ) start [2024-12-25 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097193', 'tblTempUsageDetail_20' ) end [2024-12-25 04:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:52:22] Production.INFO: ==8692== Releasing lock... [2024-12-25 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:52:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:53:05 [end_date_ymd] => 2024-12-25 04:53:05 [RateCDR] => 1 ) [2024-12-25 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:53:05' and `end` < '2024-12-25 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:53:19] Production.INFO: count ==106 [2024-12-25 04:53:19] Production.ERROR: pbx CDR StartTime 2024-12-25 01:53:05 - End Time 2024-12-25 04:53:05 [2024-12-25 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097198', 'tblTempUsageDetail_20' ) start [2024-12-25 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097198', 'tblTempUsageDetail_20' ) end [2024-12-25 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097198', 'tblTempVendorCDR_20' ) start [2024-12-25 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097198', 'tblTempVendorCDR_20' ) end [2024-12-25 04:53:19] Production.INFO: ProcessCDR(1,14097198,1,1,2) [2024-12-25 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097198', 'tblTempUsageDetail_20' ) start [2024-12-25 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097198', 'tblTempUsageDetail_20' ) end [2024-12-25 04:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:53:22] Production.INFO: ==8779== Releasing lock... [2024-12-25 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:53:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:54:05 [end_date_ymd] => 2024-12-25 04:54:05 [RateCDR] => 1 ) [2024-12-25 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:54:05' and `end` < '2024-12-25 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:54:18] Production.INFO: count ==106 [2024-12-25 04:54:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:54:05 - End Time 2024-12-25 04:54:05 [2024-12-25 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097203', 'tblTempUsageDetail_20' ) start [2024-12-25 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097203', 'tblTempUsageDetail_20' ) end [2024-12-25 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097203', 'tblTempVendorCDR_20' ) start [2024-12-25 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097203', 'tblTempVendorCDR_20' ) end [2024-12-25 04:54:18] Production.INFO: ProcessCDR(1,14097203,1,1,2) [2024-12-25 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097203', 'tblTempUsageDetail_20' ) start [2024-12-25 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097203', 'tblTempUsageDetail_20' ) end [2024-12-25 04:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:54:21] Production.INFO: ==8862== Releasing lock... [2024-12-25 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:54:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:55:04 [end_date_ymd] => 2024-12-25 04:55:04 [RateCDR] => 1 ) [2024-12-25 04: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-25 01:55:04' and `end` < '2024-12-25 04: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-25 04:55:17] Production.INFO: count ==106 [2024-12-25 04:55:17] Production.ERROR: pbx CDR StartTime 2024-12-25 01:55:04 - End Time 2024-12-25 04:55:04 [2024-12-25 04:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097208', 'tblTempUsageDetail_20' ) start [2024-12-25 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097208', 'tblTempUsageDetail_20' ) end [2024-12-25 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097208', 'tblTempVendorCDR_20' ) start [2024-12-25 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097208', 'tblTempVendorCDR_20' ) end [2024-12-25 04:55:17] Production.INFO: ProcessCDR(1,14097208,1,1,2) [2024-12-25 04:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097208', 'tblTempUsageDetail_20' ) start [2024-12-25 04:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097208', 'tblTempUsageDetail_20' ) end [2024-12-25 04:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:55:20] Production.INFO: ==8941== Releasing lock... [2024-12-25 04:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:55:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:56:05 [end_date_ymd] => 2024-12-25 04:56:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:56:05' and `end` < '2024-12-25 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-25 04:56:18] Production.INFO: count ==106 [2024-12-25 04:56:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:56:05 - End Time 2024-12-25 04:56:05 [2024-12-25 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097213', 'tblTempUsageDetail_20' ) start [2024-12-25 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097213', 'tblTempUsageDetail_20' ) end [2024-12-25 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097213', 'tblTempVendorCDR_20' ) start [2024-12-25 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097213', 'tblTempVendorCDR_20' ) end [2024-12-25 04:56:18] Production.INFO: ProcessCDR(1,14097213,1,1,2) [2024-12-25 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097213', 'tblTempUsageDetail_20' ) start [2024-12-25 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097213', 'tblTempUsageDetail_20' ) end [2024-12-25 04:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:56:21] Production.INFO: ==9033== Releasing lock... [2024-12-25 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:56:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:57:05 [end_date_ymd] => 2024-12-25 04:57:05 [RateCDR] => 1 ) [2024-12-25 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 01:57:05' and `end` < '2024-12-25 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 04:57:18] Production.INFO: count ==106 [2024-12-25 04:57:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:57:05 - End Time 2024-12-25 04:57:05 [2024-12-25 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097218', 'tblTempUsageDetail_20' ) start [2024-12-25 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097218', 'tblTempUsageDetail_20' ) end [2024-12-25 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097218', 'tblTempVendorCDR_20' ) start [2024-12-25 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097218', 'tblTempVendorCDR_20' ) end [2024-12-25 04:57:18] Production.INFO: ProcessCDR(1,14097218,1,1,2) [2024-12-25 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097218', 'tblTempUsageDetail_20' ) start [2024-12-25 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097218', 'tblTempUsageDetail_20' ) end [2024-12-25 04:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:57:21] Production.INFO: ==9114== Releasing lock... [2024-12-25 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:57:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:58:05 [end_date_ymd] => 2024-12-25 04:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:58:05' and `end` < '2024-12-25 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-25 04:58:18] Production.INFO: count ==106 [2024-12-25 04:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 01:58:05 - End Time 2024-12-25 04:58:05 [2024-12-25 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097223', 'tblTempUsageDetail_20' ) start [2024-12-25 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097223', 'tblTempUsageDetail_20' ) end [2024-12-25 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097223', 'tblTempVendorCDR_20' ) start [2024-12-25 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097223', 'tblTempVendorCDR_20' ) end [2024-12-25 04:58:18] Production.INFO: ProcessCDR(1,14097223,1,1,2) [2024-12-25 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097223', 'tblTempUsageDetail_20' ) start [2024-12-25 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097223', 'tblTempUsageDetail_20' ) end [2024-12-25 04:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:58:21] Production.INFO: ==9195== Releasing lock... [2024-12-25 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:58:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 01:59:05 [end_date_ymd] => 2024-12-25 04:59:05 [RateCDR] => 1 ) [2024-12-25 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-25 01:59:05' and `end` < '2024-12-25 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-25 04:59:19] Production.INFO: count ==106 [2024-12-25 04:59:19] Production.ERROR: pbx CDR StartTime 2024-12-25 01:59:05 - End Time 2024-12-25 04:59:05 [2024-12-25 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097228', 'tblTempUsageDetail_20' ) start [2024-12-25 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097228', 'tblTempUsageDetail_20' ) end [2024-12-25 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097228', 'tblTempVendorCDR_20' ) start [2024-12-25 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097228', 'tblTempVendorCDR_20' ) end [2024-12-25 04:59:19] Production.INFO: ProcessCDR(1,14097228,1,1,2) [2024-12-25 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097228', 'tblTempUsageDetail_20' ) start [2024-12-25 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097228', 'tblTempUsageDetail_20' ) end [2024-12-25 04:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 04:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 04:59:22] Production.INFO: ==9273== Releasing lock... [2024-12-25 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 04:59:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:00:05 [end_date_ymd] => 2024-12-25 05:00:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:00:05' and `end` < '2024-12-25 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-25 05:00:18] Production.INFO: count ==99 [2024-12-25 05:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:00:05 - End Time 2024-12-25 05:00:05 [2024-12-25 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097234', 'tblTempUsageDetail_20' ) start [2024-12-25 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097234', 'tblTempUsageDetail_20' ) end [2024-12-25 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097234', 'tblTempVendorCDR_20' ) start [2024-12-25 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097234', 'tblTempVendorCDR_20' ) end [2024-12-25 05:00:18] Production.INFO: ProcessCDR(1,14097234,1,1,2) [2024-12-25 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097234', 'tblTempUsageDetail_20' ) start [2024-12-25 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097234', 'tblTempUsageDetail_20' ) end [2024-12-25 05:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:00:21] Production.INFO: ==9361== Releasing lock... [2024-12-25 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:00:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:01:05 [end_date_ymd] => 2024-12-25 05:01:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:01:05' and `end` < '2024-12-25 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-25 05:01:18] Production.INFO: count ==91 [2024-12-25 05:01:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:01:05 - End Time 2024-12-25 05:01:05 [2024-12-25 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097239', 'tblTempUsageDetail_20' ) start [2024-12-25 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097239', 'tblTempUsageDetail_20' ) end [2024-12-25 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097239', 'tblTempVendorCDR_20' ) start [2024-12-25 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097239', 'tblTempVendorCDR_20' ) end [2024-12-25 05:01:18] Production.INFO: ProcessCDR(1,14097239,1,1,2) [2024-12-25 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097239', 'tblTempUsageDetail_20' ) start [2024-12-25 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097239', 'tblTempUsageDetail_20' ) end [2024-12-25 05:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:01:21] Production.INFO: ==9458== Releasing lock... [2024-12-25 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:01:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:02:04 [end_date_ymd] => 2024-12-25 05:02:04 [RateCDR] => 1 ) [2024-12-25 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-25 02:02:04' and `end` < '2024-12-25 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-25 05:02:18] Production.INFO: count ==91 [2024-12-25 05:02:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:02:04 - End Time 2024-12-25 05:02:04 [2024-12-25 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097244', 'tblTempUsageDetail_20' ) start [2024-12-25 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097244', 'tblTempUsageDetail_20' ) end [2024-12-25 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097244', 'tblTempVendorCDR_20' ) start [2024-12-25 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097244', 'tblTempVendorCDR_20' ) end [2024-12-25 05:02:18] Production.INFO: ProcessCDR(1,14097244,1,1,2) [2024-12-25 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097244', 'tblTempUsageDetail_20' ) start [2024-12-25 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097244', 'tblTempUsageDetail_20' ) end [2024-12-25 05:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:02:21] Production.INFO: ==9584== Releasing lock... [2024-12-25 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:02:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:03:05 [end_date_ymd] => 2024-12-25 05:03:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:03:05' and `end` < '2024-12-25 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-25 05:03:17] Production.INFO: count ==90 [2024-12-25 05:03:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:03:05 - End Time 2024-12-25 05:03:05 [2024-12-25 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097249', 'tblTempUsageDetail_20' ) start [2024-12-25 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097249', 'tblTempUsageDetail_20' ) end [2024-12-25 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097249', 'tblTempVendorCDR_20' ) start [2024-12-25 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097249', 'tblTempVendorCDR_20' ) end [2024-12-25 05:03:17] Production.INFO: ProcessCDR(1,14097249,1,1,2) [2024-12-25 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097249', 'tblTempUsageDetail_20' ) start [2024-12-25 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097249', 'tblTempUsageDetail_20' ) end [2024-12-25 05:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:03:20] Production.INFO: ==9666== Releasing lock... [2024-12-25 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:03:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:04:05 [end_date_ymd] => 2024-12-25 05:04:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:04:05' and `end` < '2024-12-25 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-25 05:04:19] Production.INFO: count ==90 [2024-12-25 05:04:19] Production.ERROR: pbx CDR StartTime 2024-12-25 02:04:05 - End Time 2024-12-25 05:04:05 [2024-12-25 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097254', 'tblTempUsageDetail_20' ) start [2024-12-25 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097254', 'tblTempUsageDetail_20' ) end [2024-12-25 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097254', 'tblTempVendorCDR_20' ) start [2024-12-25 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097254', 'tblTempVendorCDR_20' ) end [2024-12-25 05:04:19] Production.INFO: ProcessCDR(1,14097254,1,1,2) [2024-12-25 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097254', 'tblTempUsageDetail_20' ) start [2024-12-25 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097254', 'tblTempUsageDetail_20' ) end [2024-12-25 05:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:04:22] Production.INFO: ==9765== Releasing lock... [2024-12-25 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:04:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 05:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:05:04 [end_date_ymd] => 2024-12-25 05:05:04 [RateCDR] => 1 ) [2024-12-25 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-25 02:05:04' and `end` < '2024-12-25 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-25 05:05:17] Production.INFO: count ==88 [2024-12-25 05:05:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:05:04 - End Time 2024-12-25 05:05:04 [2024-12-25 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097259', 'tblTempUsageDetail_20' ) start [2024-12-25 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097259', 'tblTempUsageDetail_20' ) end [2024-12-25 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097259', 'tblTempVendorCDR_20' ) start [2024-12-25 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097259', 'tblTempVendorCDR_20' ) end [2024-12-25 05:05:17] Production.INFO: ProcessCDR(1,14097259,1,1,2) [2024-12-25 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097259', 'tblTempUsageDetail_20' ) start [2024-12-25 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097259', 'tblTempUsageDetail_20' ) end [2024-12-25 05:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:05:20] Production.INFO: ==9875== Releasing lock... [2024-12-25 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:05:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:06:05 [end_date_ymd] => 2024-12-25 05:06:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:06:05' and `end` < '2024-12-25 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-25 05:06:49] Production.INFO: count ==88 [2024-12-25 05:06:49] Production.ERROR: pbx CDR StartTime 2024-12-25 02:06:05 - End Time 2024-12-25 05:06:05 [2024-12-25 05:06:49] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:06:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097264', 'tblTempUsageDetail_20' ) start [2024-12-25 05:06:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097264', 'tblTempUsageDetail_20' ) end [2024-12-25 05:06:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097264', 'tblTempVendorCDR_20' ) start [2024-12-25 05:06:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097264', 'tblTempVendorCDR_20' ) end [2024-12-25 05:06:49] Production.INFO: ProcessCDR(1,14097264,1,1,2) [2024-12-25 05:06:49] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:06:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:06:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:06:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:06:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097264', 'tblTempUsageDetail_20' ) start [2024-12-25 05:06:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097264', 'tblTempUsageDetail_20' ) end [2024-12-25 05:06:52] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:06:52] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:06:52] Production.INFO: ==9990== Releasing lock... [2024-12-25 05:06:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:06:52] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 05:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:07:04 [end_date_ymd] => 2024-12-25 05:07:04 [RateCDR] => 1 ) [2024-12-25 05:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:07:04' and `end` < '2024-12-25 05:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:07:17] Production.INFO: count ==84 [2024-12-25 05:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:07:04 - End Time 2024-12-25 05:07:04 [2024-12-25 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097269', 'tblTempUsageDetail_20' ) start [2024-12-25 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097269', 'tblTempUsageDetail_20' ) end [2024-12-25 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097269', 'tblTempVendorCDR_20' ) start [2024-12-25 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097269', 'tblTempVendorCDR_20' ) end [2024-12-25 05:07:17] Production.INFO: ProcessCDR(1,14097269,1,1,2) [2024-12-25 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097269', 'tblTempUsageDetail_20' ) start [2024-12-25 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097269', 'tblTempUsageDetail_20' ) end [2024-12-25 05:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:07:20] Production.INFO: ==10083== Releasing lock... [2024-12-25 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:07:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:08:04 [end_date_ymd] => 2024-12-25 05:08:04 [RateCDR] => 1 ) [2024-12-25 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:08:04' and `end` < '2024-12-25 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-25 05:08:17] Production.INFO: count ==76 [2024-12-25 05:08:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:08:04 - End Time 2024-12-25 05:08:04 [2024-12-25 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097274', 'tblTempUsageDetail_20' ) start [2024-12-25 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097274', 'tblTempUsageDetail_20' ) end [2024-12-25 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097274', 'tblTempVendorCDR_20' ) start [2024-12-25 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097274', 'tblTempVendorCDR_20' ) end [2024-12-25 05:08:17] Production.INFO: ProcessCDR(1,14097274,1,1,2) [2024-12-25 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097274', 'tblTempUsageDetail_20' ) start [2024-12-25 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097274', 'tblTempUsageDetail_20' ) end [2024-12-25 05:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:08:20] Production.INFO: ==10163== Releasing lock... [2024-12-25 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:08:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:09:04 [end_date_ymd] => 2024-12-25 05:09:04 [RateCDR] => 1 ) [2024-12-25 05: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-25 02:09:04' and `end` < '2024-12-25 05: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-25 05:09:17] Production.INFO: count ==72 [2024-12-25 05:09:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:09:04 - End Time 2024-12-25 05:09:04 [2024-12-25 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097279', 'tblTempUsageDetail_20' ) start [2024-12-25 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097279', 'tblTempUsageDetail_20' ) end [2024-12-25 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097279', 'tblTempVendorCDR_20' ) start [2024-12-25 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097279', 'tblTempVendorCDR_20' ) end [2024-12-25 05:09:17] Production.INFO: ProcessCDR(1,14097279,1,1,2) [2024-12-25 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097279', 'tblTempUsageDetail_20' ) start [2024-12-25 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097279', 'tblTempUsageDetail_20' ) end [2024-12-25 05:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:09:20] Production.INFO: ==10250== Releasing lock... [2024-12-25 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:09:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:10:05 [end_date_ymd] => 2024-12-25 05:10:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:10:05' and `end` < '2024-12-25 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-25 05:10:17] Production.INFO: count ==56 [2024-12-25 05:10:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:10:05 - End Time 2024-12-25 05:10:05 [2024-12-25 05:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097284', 'tblTempUsageDetail_20' ) start [2024-12-25 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097284', 'tblTempUsageDetail_20' ) end [2024-12-25 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097284', 'tblTempVendorCDR_20' ) start [2024-12-25 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097284', 'tblTempVendorCDR_20' ) end [2024-12-25 05:10:17] Production.INFO: ProcessCDR(1,14097284,1,1,2) [2024-12-25 05:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097284', 'tblTempUsageDetail_20' ) start [2024-12-25 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097284', 'tblTempUsageDetail_20' ) end [2024-12-25 05:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:10:20] Production.INFO: ==10335== Releasing lock... [2024-12-25 05:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:10:20] Production.INFO: 28 MB #Memory Used# [2024-12-25 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:11:05 [end_date_ymd] => 2024-12-25 05:11:05 [RateCDR] => 1 ) [2024-12-25 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:11:05' and `end` < '2024-12-25 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:11:17] Production.INFO: count ==46 [2024-12-25 05:11:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:11:05 - End Time 2024-12-25 05:11:05 [2024-12-25 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097290', 'tblTempUsageDetail_20' ) start [2024-12-25 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097290', 'tblTempUsageDetail_20' ) end [2024-12-25 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097290', 'tblTempVendorCDR_20' ) start [2024-12-25 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097290', 'tblTempVendorCDR_20' ) end [2024-12-25 05:11:17] Production.INFO: ProcessCDR(1,14097290,1,1,2) [2024-12-25 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097290', 'tblTempUsageDetail_20' ) start [2024-12-25 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097290', 'tblTempUsageDetail_20' ) end [2024-12-25 05:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:11:20] Production.INFO: ==10418== Releasing lock... [2024-12-25 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:11:20] Production.INFO: 28 MB #Memory Used# [2024-12-25 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:12:05 [end_date_ymd] => 2024-12-25 05:12:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:12:05' and `end` < '2024-12-25 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-25 05:12:18] Production.INFO: count ==46 [2024-12-25 05:12:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:12:05 - End Time 2024-12-25 05:12:05 [2024-12-25 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097295', 'tblTempUsageDetail_20' ) start [2024-12-25 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097295', 'tblTempUsageDetail_20' ) end [2024-12-25 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097295', 'tblTempVendorCDR_20' ) start [2024-12-25 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097295', 'tblTempVendorCDR_20' ) end [2024-12-25 05:12:18] Production.INFO: ProcessCDR(1,14097295,1,1,2) [2024-12-25 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097295', 'tblTempUsageDetail_20' ) start [2024-12-25 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097295', 'tblTempUsageDetail_20' ) end [2024-12-25 05:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:12:21] Production.INFO: ==10499== Releasing lock... [2024-12-25 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:12:21] Production.INFO: 28 MB #Memory Used# [2024-12-25 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:13:04 [end_date_ymd] => 2024-12-25 05:13:04 [RateCDR] => 1 ) [2024-12-25 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-25 02:13:04' and `end` < '2024-12-25 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-25 05:13:18] Production.INFO: count ==46 [2024-12-25 05:13:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:13:04 - End Time 2024-12-25 05:13:04 [2024-12-25 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097300', 'tblTempUsageDetail_20' ) start [2024-12-25 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097300', 'tblTempUsageDetail_20' ) end [2024-12-25 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097300', 'tblTempVendorCDR_20' ) start [2024-12-25 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097300', 'tblTempVendorCDR_20' ) end [2024-12-25 05:13:18] Production.INFO: ProcessCDR(1,14097300,1,1,2) [2024-12-25 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097300', 'tblTempUsageDetail_20' ) start [2024-12-25 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097300', 'tblTempUsageDetail_20' ) end [2024-12-25 05:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:13:21] Production.INFO: ==10582== Releasing lock... [2024-12-25 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:13:21] Production.INFO: 28 MB #Memory Used# [2024-12-25 05:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:14:04 [end_date_ymd] => 2024-12-25 05:14:04 [RateCDR] => 1 ) [2024-12-25 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-25 02:14:04' and `end` < '2024-12-25 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-25 05:14:17] Production.INFO: count ==46 [2024-12-25 05:14:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:14:04 - End Time 2024-12-25 05:14:04 [2024-12-25 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097305', 'tblTempUsageDetail_20' ) start [2024-12-25 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097305', 'tblTempUsageDetail_20' ) end [2024-12-25 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097305', 'tblTempVendorCDR_20' ) start [2024-12-25 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097305', 'tblTempVendorCDR_20' ) end [2024-12-25 05:14:17] Production.INFO: ProcessCDR(1,14097305,1,1,2) [2024-12-25 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097305', 'tblTempUsageDetail_20' ) start [2024-12-25 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097305', 'tblTempUsageDetail_20' ) end [2024-12-25 05:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:14:20] Production.INFO: ==10666== Releasing lock... [2024-12-25 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:14:20] Production.INFO: 28 MB #Memory Used# [2024-12-25 05:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:15:04 [end_date_ymd] => 2024-12-25 05:15:04 [RateCDR] => 1 ) [2024-12-25 05: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-25 02:15:04' and `end` < '2024-12-25 05: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-25 05:15:17] Production.INFO: count ==46 [2024-12-25 05:15:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:15:04 - End Time 2024-12-25 05:15:04 [2024-12-25 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097306', 'tblTempUsageDetail_20' ) start [2024-12-25 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097306', 'tblTempUsageDetail_20' ) end [2024-12-25 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097306', 'tblTempVendorCDR_20' ) start [2024-12-25 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097306', 'tblTempVendorCDR_20' ) end [2024-12-25 05:15:17] Production.INFO: ProcessCDR(1,14097306,1,1,2) [2024-12-25 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097306', 'tblTempUsageDetail_20' ) start [2024-12-25 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097306', 'tblTempUsageDetail_20' ) end [2024-12-25 05:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:15:20] Production.INFO: ==10745== Releasing lock... [2024-12-25 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:15:20] Production.INFO: 28 MB #Memory Used# [2024-12-25 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:16:05 [end_date_ymd] => 2024-12-25 05:16:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:16:05' and `end` < '2024-12-25 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-25 05:16:18] Production.INFO: count ==46 [2024-12-25 05:16:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:16:05 - End Time 2024-12-25 05:16:05 [2024-12-25 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097315', 'tblTempUsageDetail_20' ) start [2024-12-25 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097315', 'tblTempUsageDetail_20' ) end [2024-12-25 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097315', 'tblTempVendorCDR_20' ) start [2024-12-25 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097315', 'tblTempVendorCDR_20' ) end [2024-12-25 05:16:18] Production.INFO: ProcessCDR(1,14097315,1,1,2) [2024-12-25 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097315', 'tblTempUsageDetail_20' ) start [2024-12-25 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097315', 'tblTempUsageDetail_20' ) end [2024-12-25 05:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:16:21] Production.INFO: ==10828== Releasing lock... [2024-12-25 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:16:21] Production.INFO: 28 MB #Memory Used# [2024-12-25 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:17:04 [end_date_ymd] => 2024-12-25 05:17:04 [RateCDR] => 1 ) [2024-12-25 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-25 02:17:04' and `end` < '2024-12-25 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-25 05:17:17] Production.INFO: count ==46 [2024-12-25 05:17:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:17:04 - End Time 2024-12-25 05:17:04 [2024-12-25 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097320', 'tblTempUsageDetail_20' ) start [2024-12-25 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097320', 'tblTempUsageDetail_20' ) end [2024-12-25 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097320', 'tblTempVendorCDR_20' ) start [2024-12-25 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097320', 'tblTempVendorCDR_20' ) end [2024-12-25 05:17:17] Production.INFO: ProcessCDR(1,14097320,1,1,2) [2024-12-25 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097320', 'tblTempUsageDetail_20' ) start [2024-12-25 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097320', 'tblTempUsageDetail_20' ) end [2024-12-25 05:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:17:20] Production.INFO: ==10911== Releasing lock... [2024-12-25 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:17:20] Production.INFO: 28 MB #Memory Used# [2024-12-25 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:18:05 [end_date_ymd] => 2024-12-25 05:18:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:18:05' and `end` < '2024-12-25 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-25 05:18:18] Production.INFO: count ==46 [2024-12-25 05:18:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:18:05 - End Time 2024-12-25 05:18:05 [2024-12-25 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097325', 'tblTempUsageDetail_20' ) start [2024-12-25 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097325', 'tblTempUsageDetail_20' ) end [2024-12-25 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097325', 'tblTempVendorCDR_20' ) start [2024-12-25 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097325', 'tblTempVendorCDR_20' ) end [2024-12-25 05:18:18] Production.INFO: ProcessCDR(1,14097325,1,1,2) [2024-12-25 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097325', 'tblTempUsageDetail_20' ) start [2024-12-25 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097325', 'tblTempUsageDetail_20' ) end [2024-12-25 05:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:18:21] Production.INFO: ==11033== Releasing lock... [2024-12-25 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:18:21] Production.INFO: 28 MB #Memory Used# [2024-12-25 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:19:04 [end_date_ymd] => 2024-12-25 05:19:04 [RateCDR] => 1 ) [2024-12-25 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-25 02:19:04' and `end` < '2024-12-25 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-25 05:19:17] Production.INFO: count ==46 [2024-12-25 05:19:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:19:04 - End Time 2024-12-25 05:19:04 [2024-12-25 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097330', 'tblTempUsageDetail_20' ) start [2024-12-25 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097330', 'tblTempUsageDetail_20' ) end [2024-12-25 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097330', 'tblTempVendorCDR_20' ) start [2024-12-25 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097330', 'tblTempVendorCDR_20' ) end [2024-12-25 05:19:17] Production.INFO: ProcessCDR(1,14097330,1,1,2) [2024-12-25 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097330', 'tblTempUsageDetail_20' ) start [2024-12-25 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097330', 'tblTempUsageDetail_20' ) end [2024-12-25 05:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:19:20] Production.INFO: ==11115== Releasing lock... [2024-12-25 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:19:20] Production.INFO: 28 MB #Memory Used# [2024-12-25 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:20:06 [end_date_ymd] => 2024-12-25 05:20:06 [RateCDR] => 1 ) [2024-12-25 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:20:06' and `end` < '2024-12-25 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:20:18] Production.INFO: count ==38 [2024-12-25 05:20:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:20:06 - End Time 2024-12-25 05:20:06 [2024-12-25 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097336', 'tblTempUsageDetail_20' ) start [2024-12-25 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097336', 'tblTempUsageDetail_20' ) end [2024-12-25 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097336', 'tblTempVendorCDR_20' ) start [2024-12-25 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097336', 'tblTempVendorCDR_20' ) end [2024-12-25 05:20:18] Production.INFO: ProcessCDR(1,14097336,1,1,2) [2024-12-25 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097336', 'tblTempUsageDetail_20' ) start [2024-12-25 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097336', 'tblTempUsageDetail_20' ) end [2024-12-25 05:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:20:21] Production.INFO: ==11200== Releasing lock... [2024-12-25 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:20:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:21:04 [end_date_ymd] => 2024-12-25 05:21:04 [RateCDR] => 1 ) [2024-12-25 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-25 02:21:04' and `end` < '2024-12-25 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-25 05:21:18] Production.INFO: count ==31 [2024-12-25 05:21:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:21:04 - End Time 2024-12-25 05:21:04 [2024-12-25 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097341', 'tblTempUsageDetail_20' ) start [2024-12-25 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097341', 'tblTempUsageDetail_20' ) end [2024-12-25 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097341', 'tblTempVendorCDR_20' ) start [2024-12-25 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097341', 'tblTempVendorCDR_20' ) end [2024-12-25 05:21:18] Production.INFO: ProcessCDR(1,14097341,1,1,2) [2024-12-25 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097341', 'tblTempUsageDetail_20' ) start [2024-12-25 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097341', 'tblTempUsageDetail_20' ) end [2024-12-25 05:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:21:21] Production.INFO: ==11281== Releasing lock... [2024-12-25 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:21:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:22:04 [end_date_ymd] => 2024-12-25 05:22:04 [RateCDR] => 1 ) [2024-12-25 05:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:22:04' and `end` < '2024-12-25 05:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:22:17] Production.INFO: count ==30 [2024-12-25 05:22:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:22:04 - End Time 2024-12-25 05:22:04 [2024-12-25 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097346', 'tblTempUsageDetail_20' ) start [2024-12-25 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097346', 'tblTempUsageDetail_20' ) end [2024-12-25 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097346', 'tblTempVendorCDR_20' ) start [2024-12-25 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097346', 'tblTempVendorCDR_20' ) end [2024-12-25 05:22:17] Production.INFO: ProcessCDR(1,14097346,1,1,2) [2024-12-25 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097346', 'tblTempUsageDetail_20' ) start [2024-12-25 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097346', 'tblTempUsageDetail_20' ) end [2024-12-25 05:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:22:20] Production.INFO: ==11367== Releasing lock... [2024-12-25 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:22:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:23:05 [end_date_ymd] => 2024-12-25 05:23:05 [RateCDR] => 1 ) [2024-12-25 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:23:05' and `end` < '2024-12-25 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:23:17] Production.INFO: count ==30 [2024-12-25 05:23:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:23:05 - End Time 2024-12-25 05:23:05 [2024-12-25 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097351', 'tblTempUsageDetail_20' ) start [2024-12-25 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097351', 'tblTempUsageDetail_20' ) end [2024-12-25 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097351', 'tblTempVendorCDR_20' ) start [2024-12-25 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097351', 'tblTempVendorCDR_20' ) end [2024-12-25 05:23:17] Production.INFO: ProcessCDR(1,14097351,1,1,2) [2024-12-25 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097351', 'tblTempUsageDetail_20' ) start [2024-12-25 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097351', 'tblTempUsageDetail_20' ) end [2024-12-25 05:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:23:20] Production.INFO: ==11449== Releasing lock... [2024-12-25 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:23:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:24:04 [end_date_ymd] => 2024-12-25 05:24:04 [RateCDR] => 1 ) [2024-12-25 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-25 02:24:04' and `end` < '2024-12-25 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-25 05:24:16] Production.INFO: count ==30 [2024-12-25 05:24:16] Production.ERROR: pbx CDR StartTime 2024-12-25 02:24:04 - End Time 2024-12-25 05:24:04 [2024-12-25 05:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097356', 'tblTempUsageDetail_20' ) start [2024-12-25 05:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097356', 'tblTempUsageDetail_20' ) end [2024-12-25 05:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097356', 'tblTempVendorCDR_20' ) start [2024-12-25 05:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097356', 'tblTempVendorCDR_20' ) end [2024-12-25 05:24:16] Production.INFO: ProcessCDR(1,14097356,1,1,2) [2024-12-25 05:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:24:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:24:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097356', 'tblTempUsageDetail_20' ) start [2024-12-25 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097356', 'tblTempUsageDetail_20' ) end [2024-12-25 05:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:24:20] Production.INFO: ==11530== Releasing lock... [2024-12-25 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:24:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:25:05 [end_date_ymd] => 2024-12-25 05:25:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:25:05' and `end` < '2024-12-25 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-25 05:25:17] Production.INFO: count ==30 [2024-12-25 05:25:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:25:05 - End Time 2024-12-25 05:25:05 [2024-12-25 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097361', 'tblTempUsageDetail_20' ) start [2024-12-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097361', 'tblTempUsageDetail_20' ) end [2024-12-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097361', 'tblTempVendorCDR_20' ) start [2024-12-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097361', 'tblTempVendorCDR_20' ) end [2024-12-25 05:25:17] Production.INFO: ProcessCDR(1,14097361,1,1,2) [2024-12-25 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097361', 'tblTempUsageDetail_20' ) start [2024-12-25 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097361', 'tblTempUsageDetail_20' ) end [2024-12-25 05:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:25:21] Production.INFO: ==11613== Releasing lock... [2024-12-25 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:25:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:26:05 [end_date_ymd] => 2024-12-25 05:26:05 [RateCDR] => 1 ) [2024-12-25 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:26:05' and `end` < '2024-12-25 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:26:17] Production.INFO: count ==30 [2024-12-25 05:26:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:26:05 - End Time 2024-12-25 05:26:05 [2024-12-25 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097366', 'tblTempUsageDetail_20' ) start [2024-12-25 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097366', 'tblTempUsageDetail_20' ) end [2024-12-25 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097366', 'tblTempVendorCDR_20' ) start [2024-12-25 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097366', 'tblTempVendorCDR_20' ) end [2024-12-25 05:26:17] Production.INFO: ProcessCDR(1,14097366,1,1,2) [2024-12-25 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097366', 'tblTempUsageDetail_20' ) start [2024-12-25 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097366', 'tblTempUsageDetail_20' ) end [2024-12-25 05:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:26:20] Production.INFO: ==11701== Releasing lock... [2024-12-25 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:26:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:27:05 [end_date_ymd] => 2024-12-25 05:27:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:27:05' and `end` < '2024-12-25 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-25 05:27:17] Production.INFO: count ==30 [2024-12-25 05:27:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:27:05 - End Time 2024-12-25 05:27:05 [2024-12-25 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097371', 'tblTempUsageDetail_20' ) start [2024-12-25 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097371', 'tblTempUsageDetail_20' ) end [2024-12-25 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097371', 'tblTempVendorCDR_20' ) start [2024-12-25 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097371', 'tblTempVendorCDR_20' ) end [2024-12-25 05:27:17] Production.INFO: ProcessCDR(1,14097371,1,1,2) [2024-12-25 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097371', 'tblTempUsageDetail_20' ) start [2024-12-25 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097371', 'tblTempUsageDetail_20' ) end [2024-12-25 05:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:27:20] Production.INFO: ==11779== Releasing lock... [2024-12-25 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:28:04 [end_date_ymd] => 2024-12-25 05:28:04 [RateCDR] => 1 ) [2024-12-25 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-25 02:28:04' and `end` < '2024-12-25 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-25 05:28:17] Production.INFO: count ==30 [2024-12-25 05:28:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:28:04 - End Time 2024-12-25 05:28:04 [2024-12-25 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097376', 'tblTempUsageDetail_20' ) start [2024-12-25 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097376', 'tblTempUsageDetail_20' ) end [2024-12-25 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097376', 'tblTempVendorCDR_20' ) start [2024-12-25 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097376', 'tblTempVendorCDR_20' ) end [2024-12-25 05:28:17] Production.INFO: ProcessCDR(1,14097376,1,1,2) [2024-12-25 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097376', 'tblTempUsageDetail_20' ) start [2024-12-25 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097376', 'tblTempUsageDetail_20' ) end [2024-12-25 05:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:28:21] Production.INFO: ==11863== Releasing lock... [2024-12-25 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:29:05 [end_date_ymd] => 2024-12-25 05:29:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:29:05' and `end` < '2024-12-25 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-25 05:29:17] Production.INFO: count ==30 [2024-12-25 05:29:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:29:05 - End Time 2024-12-25 05:29:05 [2024-12-25 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097381', 'tblTempUsageDetail_20' ) start [2024-12-25 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097381', 'tblTempUsageDetail_20' ) end [2024-12-25 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097381', 'tblTempVendorCDR_20' ) start [2024-12-25 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097381', 'tblTempVendorCDR_20' ) end [2024-12-25 05:29:17] Production.INFO: ProcessCDR(1,14097381,1,1,2) [2024-12-25 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097381', 'tblTempUsageDetail_20' ) start [2024-12-25 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097381', 'tblTempUsageDetail_20' ) end [2024-12-25 05:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:29:20] Production.INFO: ==11940== Releasing lock... [2024-12-25 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:29:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:30:05 [end_date_ymd] => 2024-12-25 05:30:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:30:05' and `end` < '2024-12-25 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-25 05:30:17] Production.INFO: count ==23 [2024-12-25 05:30:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:30:05 - End Time 2024-12-25 05:30:05 [2024-12-25 05:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097386', 'tblTempUsageDetail_20' ) start [2024-12-25 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097386', 'tblTempUsageDetail_20' ) end [2024-12-25 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097386', 'tblTempVendorCDR_20' ) start [2024-12-25 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097386', 'tblTempVendorCDR_20' ) end [2024-12-25 05:30:17] Production.INFO: ProcessCDR(1,14097386,1,1,2) [2024-12-25 05:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097386', 'tblTempUsageDetail_20' ) start [2024-12-25 05:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097386', 'tblTempUsageDetail_20' ) end [2024-12-25 05:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:30:20] Production.INFO: ==12029== Releasing lock... [2024-12-25 05:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:30:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:31:04 [end_date_ymd] => 2024-12-25 05:31:04 [RateCDR] => 1 ) [2024-12-25 05:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:31:04' and `end` < '2024-12-25 05:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:31:17] Production.INFO: count ==19 [2024-12-25 05:31:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:31:04 - End Time 2024-12-25 05:31:04 [2024-12-25 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097392', 'tblTempUsageDetail_20' ) start [2024-12-25 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097392', 'tblTempUsageDetail_20' ) end [2024-12-25 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097392', 'tblTempVendorCDR_20' ) start [2024-12-25 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097392', 'tblTempVendorCDR_20' ) end [2024-12-25 05:31:17] Production.INFO: ProcessCDR(1,14097392,1,1,2) [2024-12-25 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097392', 'tblTempUsageDetail_20' ) start [2024-12-25 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097392', 'tblTempUsageDetail_20' ) end [2024-12-25 05:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:31:20] Production.INFO: ==12113== Releasing lock... [2024-12-25 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:31:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:32:05 [end_date_ymd] => 2024-12-25 05:32:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:32:05' and `end` < '2024-12-25 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-25 05:32:19] Production.INFO: count ==18 [2024-12-25 05:32:19] Production.ERROR: pbx CDR StartTime 2024-12-25 02:32:05 - End Time 2024-12-25 05:32:05 [2024-12-25 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097397', 'tblTempUsageDetail_20' ) start [2024-12-25 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097397', 'tblTempUsageDetail_20' ) end [2024-12-25 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097397', 'tblTempVendorCDR_20' ) start [2024-12-25 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097397', 'tblTempVendorCDR_20' ) end [2024-12-25 05:32:19] Production.INFO: ProcessCDR(1,14097397,1,1,2) [2024-12-25 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097397', 'tblTempUsageDetail_20' ) start [2024-12-25 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097397', 'tblTempUsageDetail_20' ) end [2024-12-25 05:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:32:22] Production.INFO: ==12194== Releasing lock... [2024-12-25 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:32:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:33:04 [end_date_ymd] => 2024-12-25 05:33:04 [RateCDR] => 1 ) [2024-12-25 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-25 02:33:04' and `end` < '2024-12-25 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-25 05:33:17] Production.INFO: count ==18 [2024-12-25 05:33:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:33:04 - End Time 2024-12-25 05:33:04 [2024-12-25 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097402', 'tblTempUsageDetail_20' ) start [2024-12-25 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097402', 'tblTempUsageDetail_20' ) end [2024-12-25 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097402', 'tblTempVendorCDR_20' ) start [2024-12-25 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097402', 'tblTempVendorCDR_20' ) end [2024-12-25 05:33:17] Production.INFO: ProcessCDR(1,14097402,1,1,2) [2024-12-25 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097402', 'tblTempUsageDetail_20' ) start [2024-12-25 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097402', 'tblTempUsageDetail_20' ) end [2024-12-25 05:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:33:21] Production.INFO: ==12280== Releasing lock... [2024-12-25 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:33:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:34:05 [end_date_ymd] => 2024-12-25 05:34:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:34:05' and `end` < '2024-12-25 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-25 05:34:17] Production.INFO: count ==17 [2024-12-25 05:34:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:34:05 - End Time 2024-12-25 05:34:05 [2024-12-25 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097407', 'tblTempUsageDetail_20' ) start [2024-12-25 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097407', 'tblTempUsageDetail_20' ) end [2024-12-25 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097407', 'tblTempVendorCDR_20' ) start [2024-12-25 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097407', 'tblTempVendorCDR_20' ) end [2024-12-25 05:34:17] Production.INFO: ProcessCDR(1,14097407,1,1,2) [2024-12-25 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097407', 'tblTempUsageDetail_20' ) start [2024-12-25 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097407', 'tblTempUsageDetail_20' ) end [2024-12-25 05:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:34:20] Production.INFO: ==12400== Releasing lock... [2024-12-25 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:34:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:35:04 [end_date_ymd] => 2024-12-25 05:35:04 [RateCDR] => 1 ) [2024-12-25 05: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-25 02:35:04' and `end` < '2024-12-25 05: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-25 05:35:16] Production.INFO: count ==17 [2024-12-25 05:35:16] Production.ERROR: pbx CDR StartTime 2024-12-25 02:35:04 - End Time 2024-12-25 05:35:04 [2024-12-25 05:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097412', 'tblTempUsageDetail_20' ) start [2024-12-25 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097412', 'tblTempUsageDetail_20' ) end [2024-12-25 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097412', 'tblTempVendorCDR_20' ) start [2024-12-25 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097412', 'tblTempVendorCDR_20' ) end [2024-12-25 05:35:16] Production.INFO: ProcessCDR(1,14097412,1,1,2) [2024-12-25 05:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097412', 'tblTempUsageDetail_20' ) start [2024-12-25 05:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097412', 'tblTempUsageDetail_20' ) end [2024-12-25 05:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:35:19] Production.INFO: ==12485== Releasing lock... [2024-12-25 05:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:35:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:36:05 [end_date_ymd] => 2024-12-25 05:36:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:36:05' and `end` < '2024-12-25 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-25 05:36:17] Production.INFO: count ==16 [2024-12-25 05:36:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:36:05 - End Time 2024-12-25 05:36:05 [2024-12-25 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097417', 'tblTempUsageDetail_20' ) start [2024-12-25 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097417', 'tblTempUsageDetail_20' ) end [2024-12-25 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097417', 'tblTempVendorCDR_20' ) start [2024-12-25 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097417', 'tblTempVendorCDR_20' ) end [2024-12-25 05:36:17] Production.INFO: ProcessCDR(1,14097417,1,1,2) [2024-12-25 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097417', 'tblTempUsageDetail_20' ) start [2024-12-25 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097417', 'tblTempUsageDetail_20' ) end [2024-12-25 05:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:36:21] Production.INFO: ==12569== Releasing lock... [2024-12-25 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:36:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:37:05 [end_date_ymd] => 2024-12-25 05:37:05 [RateCDR] => 1 ) [2024-12-25 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:37:05' and `end` < '2024-12-25 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:37:18] Production.INFO: count ==16 [2024-12-25 05:37:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:37:05 - End Time 2024-12-25 05:37:05 [2024-12-25 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097422', 'tblTempUsageDetail_20' ) start [2024-12-25 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097422', 'tblTempUsageDetail_20' ) end [2024-12-25 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097422', 'tblTempVendorCDR_20' ) start [2024-12-25 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097422', 'tblTempVendorCDR_20' ) end [2024-12-25 05:37:18] Production.INFO: ProcessCDR(1,14097422,1,1,2) [2024-12-25 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097422', 'tblTempUsageDetail_20' ) start [2024-12-25 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097422', 'tblTempUsageDetail_20' ) end [2024-12-25 05:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:37:21] Production.INFO: ==12652== Releasing lock... [2024-12-25 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:37:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:38:05 [end_date_ymd] => 2024-12-25 05:38:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:38:05' and `end` < '2024-12-25 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-25 05:38:18] Production.INFO: count ==16 [2024-12-25 05:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:38:05 - End Time 2024-12-25 05:38:05 [2024-12-25 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097427', 'tblTempUsageDetail_20' ) start [2024-12-25 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097427', 'tblTempUsageDetail_20' ) end [2024-12-25 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097427', 'tblTempVendorCDR_20' ) start [2024-12-25 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097427', 'tblTempVendorCDR_20' ) end [2024-12-25 05:38:18] Production.INFO: ProcessCDR(1,14097427,1,1,2) [2024-12-25 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097427', 'tblTempUsageDetail_20' ) start [2024-12-25 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097427', 'tblTempUsageDetail_20' ) end [2024-12-25 05:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:38:21] Production.INFO: ==12731== Releasing lock... [2024-12-25 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:38:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:39:05 [end_date_ymd] => 2024-12-25 05:39:05 [RateCDR] => 1 ) [2024-12-25 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:39:05' and `end` < '2024-12-25 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:39:17] Production.INFO: count ==16 [2024-12-25 05:39:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:39:05 - End Time 2024-12-25 05:39:05 [2024-12-25 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097432', 'tblTempUsageDetail_20' ) start [2024-12-25 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097432', 'tblTempUsageDetail_20' ) end [2024-12-25 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097432', 'tblTempVendorCDR_20' ) start [2024-12-25 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097432', 'tblTempVendorCDR_20' ) end [2024-12-25 05:39:17] Production.INFO: ProcessCDR(1,14097432,1,1,2) [2024-12-25 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097432', 'tblTempUsageDetail_20' ) start [2024-12-25 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097432', 'tblTempUsageDetail_20' ) end [2024-12-25 05:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:39:21] Production.INFO: ==12813== Releasing lock... [2024-12-25 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:39:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:40:05 [end_date_ymd] => 2024-12-25 05:40:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:40:05' and `end` < '2024-12-25 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-25 05:40:18] Production.INFO: count ==13 [2024-12-25 05:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:40:05 - End Time 2024-12-25 05:40:05 [2024-12-25 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097438', 'tblTempUsageDetail_20' ) start [2024-12-25 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097438', 'tblTempUsageDetail_20' ) end [2024-12-25 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097438', 'tblTempVendorCDR_20' ) start [2024-12-25 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097438', 'tblTempVendorCDR_20' ) end [2024-12-25 05:40:18] Production.INFO: ProcessCDR(1,14097438,1,1,2) [2024-12-25 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097438', 'tblTempUsageDetail_20' ) start [2024-12-25 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097438', 'tblTempUsageDetail_20' ) end [2024-12-25 05:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:40:21] Production.INFO: ==12897== Releasing lock... [2024-12-25 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:40:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:41:05 [end_date_ymd] => 2024-12-25 05:41:05 [RateCDR] => 1 ) [2024-12-25 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:41:05' and `end` < '2024-12-25 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:41:17] Production.INFO: count ==13 [2024-12-25 05:41:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:41:05 - End Time 2024-12-25 05:41:05 [2024-12-25 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097443', 'tblTempUsageDetail_20' ) start [2024-12-25 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097443', 'tblTempUsageDetail_20' ) end [2024-12-25 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097443', 'tblTempVendorCDR_20' ) start [2024-12-25 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097443', 'tblTempVendorCDR_20' ) end [2024-12-25 05:41:17] Production.INFO: ProcessCDR(1,14097443,1,1,2) [2024-12-25 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097443', 'tblTempUsageDetail_20' ) start [2024-12-25 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097443', 'tblTempUsageDetail_20' ) end [2024-12-25 05:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:41:20] Production.INFO: ==12981== Releasing lock... [2024-12-25 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:41:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:42:05 [end_date_ymd] => 2024-12-25 05:42:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:42:05' and `end` < '2024-12-25 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-25 05:42:17] Production.INFO: count ==13 [2024-12-25 05:42:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:42:05 - End Time 2024-12-25 05:42:05 [2024-12-25 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097448', 'tblTempUsageDetail_20' ) start [2024-12-25 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097448', 'tblTempUsageDetail_20' ) end [2024-12-25 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097448', 'tblTempVendorCDR_20' ) start [2024-12-25 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097448', 'tblTempVendorCDR_20' ) end [2024-12-25 05:42:17] Production.INFO: ProcessCDR(1,14097448,1,1,2) [2024-12-25 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097448', 'tblTempUsageDetail_20' ) start [2024-12-25 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097448', 'tblTempUsageDetail_20' ) end [2024-12-25 05:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:42:20] Production.INFO: ==13061== Releasing lock... [2024-12-25 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:42:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:43:05 [end_date_ymd] => 2024-12-25 05:43:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:43:05' and `end` < '2024-12-25 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-25 05:43:18] Production.INFO: count ==13 [2024-12-25 05:43:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:43:05 - End Time 2024-12-25 05:43:05 [2024-12-25 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097453', 'tblTempUsageDetail_20' ) start [2024-12-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097453', 'tblTempUsageDetail_20' ) end [2024-12-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097453', 'tblTempVendorCDR_20' ) start [2024-12-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097453', 'tblTempVendorCDR_20' ) end [2024-12-25 05:43:18] Production.INFO: ProcessCDR(1,14097453,1,1,2) [2024-12-25 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097453', 'tblTempUsageDetail_20' ) start [2024-12-25 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097453', 'tblTempUsageDetail_20' ) end [2024-12-25 05:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:43:21] Production.INFO: ==13144== Releasing lock... [2024-12-25 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:43:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:44:05 [end_date_ymd] => 2024-12-25 05:44:05 [RateCDR] => 1 ) [2024-12-25 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:44:05' and `end` < '2024-12-25 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:44:17] Production.INFO: count ==13 [2024-12-25 05:44:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:44:05 - End Time 2024-12-25 05:44:05 [2024-12-25 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097458', 'tblTempUsageDetail_20' ) start [2024-12-25 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097458', 'tblTempUsageDetail_20' ) end [2024-12-25 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097458', 'tblTempVendorCDR_20' ) start [2024-12-25 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097458', 'tblTempVendorCDR_20' ) end [2024-12-25 05:44:17] Production.INFO: ProcessCDR(1,14097458,1,1,2) [2024-12-25 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097458', 'tblTempUsageDetail_20' ) start [2024-12-25 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097458', 'tblTempUsageDetail_20' ) end [2024-12-25 05:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:44:20] Production.INFO: ==13226== Releasing lock... [2024-12-25 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:44:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:45:05 [end_date_ymd] => 2024-12-25 05:45:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:45:05' and `end` < '2024-12-25 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-25 05:45:17] Production.INFO: count ==13 [2024-12-25 05:45:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:45:05 - End Time 2024-12-25 05:45:05 [2024-12-25 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097463', 'tblTempUsageDetail_20' ) start [2024-12-25 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097463', 'tblTempUsageDetail_20' ) end [2024-12-25 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097463', 'tblTempVendorCDR_20' ) start [2024-12-25 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097463', 'tblTempVendorCDR_20' ) end [2024-12-25 05:45:17] Production.INFO: ProcessCDR(1,14097463,1,1,2) [2024-12-25 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097463', 'tblTempUsageDetail_20' ) start [2024-12-25 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097463', 'tblTempUsageDetail_20' ) end [2024-12-25 05:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:45:20] Production.INFO: ==13316== Releasing lock... [2024-12-25 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:45:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:46:04 [end_date_ymd] => 2024-12-25 05:46:04 [RateCDR] => 1 ) [2024-12-25 05: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-25 02:46:04' and `end` < '2024-12-25 05: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-25 05:46:17] Production.INFO: count ==13 [2024-12-25 05:46:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:46:04 - End Time 2024-12-25 05:46:04 [2024-12-25 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097468', 'tblTempUsageDetail_20' ) start [2024-12-25 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097468', 'tblTempUsageDetail_20' ) end [2024-12-25 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097468', 'tblTempVendorCDR_20' ) start [2024-12-25 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097468', 'tblTempVendorCDR_20' ) end [2024-12-25 05:46:17] Production.INFO: ProcessCDR(1,14097468,1,1,2) [2024-12-25 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097468', 'tblTempUsageDetail_20' ) start [2024-12-25 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097468', 'tblTempUsageDetail_20' ) end [2024-12-25 05:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:46:20] Production.INFO: ==13391== Releasing lock... [2024-12-25 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:46:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:47:04 [end_date_ymd] => 2024-12-25 05:47:04 [RateCDR] => 1 ) [2024-12-25 05:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:47:04' and `end` < '2024-12-25 05:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:47:18] Production.INFO: count ==13 [2024-12-25 05:47:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:47:04 - End Time 2024-12-25 05:47:04 [2024-12-25 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097473', 'tblTempUsageDetail_20' ) start [2024-12-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097473', 'tblTempUsageDetail_20' ) end [2024-12-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097473', 'tblTempVendorCDR_20' ) start [2024-12-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097473', 'tblTempVendorCDR_20' ) end [2024-12-25 05:47:18] Production.INFO: ProcessCDR(1,14097473,1,1,2) [2024-12-25 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097473', 'tblTempUsageDetail_20' ) start [2024-12-25 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097473', 'tblTempUsageDetail_20' ) end [2024-12-25 05:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:47:21] Production.INFO: ==13477== Releasing lock... [2024-12-25 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:47:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:48:05 [end_date_ymd] => 2024-12-25 05:48:05 [RateCDR] => 1 ) [2024-12-25 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:48:05' and `end` < '2024-12-25 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:48:18] Production.INFO: count ==13 [2024-12-25 05:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:48:05 - End Time 2024-12-25 05:48:05 [2024-12-25 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097478', 'tblTempUsageDetail_20' ) start [2024-12-25 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097478', 'tblTempUsageDetail_20' ) end [2024-12-25 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097478', 'tblTempVendorCDR_20' ) start [2024-12-25 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097478', 'tblTempVendorCDR_20' ) end [2024-12-25 05:48:18] Production.INFO: ProcessCDR(1,14097478,1,1,2) [2024-12-25 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097478', 'tblTempUsageDetail_20' ) start [2024-12-25 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097478', 'tblTempUsageDetail_20' ) end [2024-12-25 05:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:48:21] Production.INFO: ==13556== Releasing lock... [2024-12-25 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:48:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:49:05 [end_date_ymd] => 2024-12-25 05:49:05 [RateCDR] => 1 ) [2024-12-25 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:49:05' and `end` < '2024-12-25 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:49:18] Production.INFO: count ==13 [2024-12-25 05:49:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:49:05 - End Time 2024-12-25 05:49:05 [2024-12-25 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097483', 'tblTempUsageDetail_20' ) start [2024-12-25 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097483', 'tblTempUsageDetail_20' ) end [2024-12-25 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097483', 'tblTempVendorCDR_20' ) start [2024-12-25 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097483', 'tblTempVendorCDR_20' ) end [2024-12-25 05:49:18] Production.INFO: ProcessCDR(1,14097483,1,1,2) [2024-12-25 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097483', 'tblTempUsageDetail_20' ) start [2024-12-25 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097483', 'tblTempUsageDetail_20' ) end [2024-12-25 05:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:49:21] Production.INFO: ==13682== Releasing lock... [2024-12-25 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:49:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:50:05 [end_date_ymd] => 2024-12-25 05:50:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:50:05' and `end` < '2024-12-25 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-25 05:50:18] Production.INFO: count ==7 [2024-12-25 05:50:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:50:05 - End Time 2024-12-25 05:50:05 [2024-12-25 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097488', 'tblTempUsageDetail_20' ) start [2024-12-25 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097488', 'tblTempUsageDetail_20' ) end [2024-12-25 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097488', 'tblTempVendorCDR_20' ) start [2024-12-25 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097488', 'tblTempVendorCDR_20' ) end [2024-12-25 05:50:18] Production.INFO: ProcessCDR(1,14097488,1,1,2) [2024-12-25 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097488', 'tblTempUsageDetail_20' ) start [2024-12-25 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097488', 'tblTempUsageDetail_20' ) end [2024-12-25 05:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:50:21] Production.INFO: ==13761== Releasing lock... [2024-12-25 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:50:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:51:05 [end_date_ymd] => 2024-12-25 05:51:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:51:05' and `end` < '2024-12-25 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-25 05:51:18] Production.INFO: count ==5 [2024-12-25 05:51:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:51:05 - End Time 2024-12-25 05:51:05 [2024-12-25 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097494', 'tblTempUsageDetail_20' ) start [2024-12-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097494', 'tblTempUsageDetail_20' ) end [2024-12-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097494', 'tblTempVendorCDR_20' ) start [2024-12-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097494', 'tblTempVendorCDR_20' ) end [2024-12-25 05:51:18] Production.INFO: ProcessCDR(1,14097494,1,1,2) [2024-12-25 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097494', 'tblTempUsageDetail_20' ) start [2024-12-25 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097494', 'tblTempUsageDetail_20' ) end [2024-12-25 05:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:51:20] Production.INFO: ==13848== Releasing lock... [2024-12-25 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:51:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:52:05 [end_date_ymd] => 2024-12-25 05:52:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:52:05' and `end` < '2024-12-25 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-25 05:52:18] Production.INFO: count ==5 [2024-12-25 05:52:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:52:05 - End Time 2024-12-25 05:52:05 [2024-12-25 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097499', 'tblTempUsageDetail_20' ) start [2024-12-25 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097499', 'tblTempUsageDetail_20' ) end [2024-12-25 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097499', 'tblTempVendorCDR_20' ) start [2024-12-25 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097499', 'tblTempVendorCDR_20' ) end [2024-12-25 05:52:18] Production.INFO: ProcessCDR(1,14097499,1,1,2) [2024-12-25 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097499', 'tblTempUsageDetail_20' ) start [2024-12-25 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097499', 'tblTempUsageDetail_20' ) end [2024-12-25 05:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:52:21] Production.INFO: ==13936== Releasing lock... [2024-12-25 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:52:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:53:04 [end_date_ymd] => 2024-12-25 05:53:04 [RateCDR] => 1 ) [2024-12-25 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-25 02:53:04' and `end` < '2024-12-25 05: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-25 05:53:17] Production.INFO: count ==5 [2024-12-25 05:53:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:53:04 - End Time 2024-12-25 05:53:04 [2024-12-25 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097504', 'tblTempUsageDetail_20' ) start [2024-12-25 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097504', 'tblTempUsageDetail_20' ) end [2024-12-25 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097504', 'tblTempVendorCDR_20' ) start [2024-12-25 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097504', 'tblTempVendorCDR_20' ) end [2024-12-25 05:53:17] Production.INFO: ProcessCDR(1,14097504,1,1,2) [2024-12-25 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097504', 'tblTempUsageDetail_20' ) start [2024-12-25 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097504', 'tblTempUsageDetail_20' ) end [2024-12-25 05:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:53:20] Production.INFO: ==14015== Releasing lock... [2024-12-25 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:53:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:54:05 [end_date_ymd] => 2024-12-25 05:54:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:54:05' and `end` < '2024-12-25 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-25 05:54:18] Production.INFO: count ==5 [2024-12-25 05:54:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:54:05 - End Time 2024-12-25 05:54:05 [2024-12-25 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097509', 'tblTempUsageDetail_20' ) start [2024-12-25 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097509', 'tblTempUsageDetail_20' ) end [2024-12-25 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097509', 'tblTempVendorCDR_20' ) start [2024-12-25 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097509', 'tblTempVendorCDR_20' ) end [2024-12-25 05:54:18] Production.INFO: ProcessCDR(1,14097509,1,1,2) [2024-12-25 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097509', 'tblTempUsageDetail_20' ) start [2024-12-25 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097509', 'tblTempUsageDetail_20' ) end [2024-12-25 05:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:54:21] Production.INFO: ==14096== Releasing lock... [2024-12-25 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:54:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:55:04 [end_date_ymd] => 2024-12-25 05:55:04 [RateCDR] => 1 ) [2024-12-25 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-25 02:55:04' and `end` < '2024-12-25 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-25 05:55:17] Production.INFO: count ==5 [2024-12-25 05:55:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:55:04 - End Time 2024-12-25 05:55:04 [2024-12-25 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097514', 'tblTempUsageDetail_20' ) start [2024-12-25 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097514', 'tblTempUsageDetail_20' ) end [2024-12-25 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097514', 'tblTempVendorCDR_20' ) start [2024-12-25 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097514', 'tblTempVendorCDR_20' ) end [2024-12-25 05:55:17] Production.INFO: ProcessCDR(1,14097514,1,1,2) [2024-12-25 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097514', 'tblTempUsageDetail_20' ) start [2024-12-25 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097514', 'tblTempUsageDetail_20' ) end [2024-12-25 05:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:55:20] Production.INFO: ==14172== Releasing lock... [2024-12-25 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:55:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:56:04 [end_date_ymd] => 2024-12-25 05:56:04 [RateCDR] => 1 ) [2024-12-25 05: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-25 02:56:04' and `end` < '2024-12-25 05: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-25 05:56:17] Production.INFO: count ==5 [2024-12-25 05:56:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:56:04 - End Time 2024-12-25 05:56:04 [2024-12-25 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097519', 'tblTempUsageDetail_20' ) start [2024-12-25 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097519', 'tblTempUsageDetail_20' ) end [2024-12-25 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097519', 'tblTempVendorCDR_20' ) start [2024-12-25 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097519', 'tblTempVendorCDR_20' ) end [2024-12-25 05:56:17] Production.INFO: ProcessCDR(1,14097519,1,1,2) [2024-12-25 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097519', 'tblTempUsageDetail_20' ) start [2024-12-25 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097519', 'tblTempUsageDetail_20' ) end [2024-12-25 05:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:56:20] Production.INFO: ==14263== Releasing lock... [2024-12-25 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:56:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:57:05 [end_date_ymd] => 2024-12-25 05:57:05 [RateCDR] => 1 ) [2024-12-25 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 02:57:05' and `end` < '2024-12-25 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 05:57:17] Production.INFO: count ==5 [2024-12-25 05:57:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:57:05 - End Time 2024-12-25 05:57:05 [2024-12-25 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097524', 'tblTempUsageDetail_20' ) start [2024-12-25 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097524', 'tblTempUsageDetail_20' ) end [2024-12-25 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097524', 'tblTempVendorCDR_20' ) start [2024-12-25 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097524', 'tblTempVendorCDR_20' ) end [2024-12-25 05:57:17] Production.INFO: ProcessCDR(1,14097524,1,1,2) [2024-12-25 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097524', 'tblTempUsageDetail_20' ) start [2024-12-25 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097524', 'tblTempUsageDetail_20' ) end [2024-12-25 05:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:57:20] Production.INFO: ==14343== Releasing lock... [2024-12-25 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:57:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:58:05 [end_date_ymd] => 2024-12-25 05:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:58:05' and `end` < '2024-12-25 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-25 05:58:18] Production.INFO: count ==5 [2024-12-25 05:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 02:58:05 - End Time 2024-12-25 05:58:05 [2024-12-25 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097529', 'tblTempUsageDetail_20' ) start [2024-12-25 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097529', 'tblTempUsageDetail_20' ) end [2024-12-25 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097529', 'tblTempVendorCDR_20' ) start [2024-12-25 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097529', 'tblTempVendorCDR_20' ) end [2024-12-25 05:58:18] Production.INFO: ProcessCDR(1,14097529,1,1,2) [2024-12-25 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097529', 'tblTempUsageDetail_20' ) start [2024-12-25 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097529', 'tblTempUsageDetail_20' ) end [2024-12-25 05:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:58:21] Production.INFO: ==14430== Releasing lock... [2024-12-25 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:58:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 02:59:05 [end_date_ymd] => 2024-12-25 05:59:05 [RateCDR] => 1 ) [2024-12-25 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-25 02:59:05' and `end` < '2024-12-25 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-25 05:59:17] Production.INFO: count ==5 [2024-12-25 05:59:17] Production.ERROR: pbx CDR StartTime 2024-12-25 02:59:05 - End Time 2024-12-25 05:59:05 [2024-12-25 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097534', 'tblTempUsageDetail_20' ) start [2024-12-25 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097534', 'tblTempUsageDetail_20' ) end [2024-12-25 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097534', 'tblTempVendorCDR_20' ) start [2024-12-25 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097534', 'tblTempVendorCDR_20' ) end [2024-12-25 05:59:17] Production.INFO: ProcessCDR(1,14097534,1,1,2) [2024-12-25 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097534', 'tblTempUsageDetail_20' ) start [2024-12-25 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097534', 'tblTempUsageDetail_20' ) end [2024-12-25 05:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 05:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 05:59:20] Production.INFO: ==14512== Releasing lock... [2024-12-25 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 05:59:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:00:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:00:04 [end_date_ymd] => 2024-12-25 06:00:04 [RateCDR] => 1 ) [2024-12-25 06:00:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:00:04' and `end` < '2024-12-25 06:00:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:00:17] Production.INFO: count ==3 [2024-12-25 06:00:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:00:04 - End Time 2024-12-25 06:00:04 [2024-12-25 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097539', 'tblTempUsageDetail_20' ) start [2024-12-25 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097539', 'tblTempUsageDetail_20' ) end [2024-12-25 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097539', 'tblTempVendorCDR_20' ) start [2024-12-25 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097539', 'tblTempVendorCDR_20' ) end [2024-12-25 06:00:17] Production.INFO: ProcessCDR(1,14097539,1,1,2) [2024-12-25 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097539', 'tblTempUsageDetail_20' ) start [2024-12-25 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097539', 'tblTempUsageDetail_20' ) end [2024-12-25 06:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:00:20] Production.INFO: ==14593== Releasing lock... [2024-12-25 06:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:00:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:01:05 [end_date_ymd] => 2024-12-25 06:01:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:01:05' and `end` < '2024-12-25 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-25 06:01:18] Production.INFO: count ==3 [2024-12-25 06:01:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:01:05 - End Time 2024-12-25 06:01:05 [2024-12-25 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097545', 'tblTempUsageDetail_20' ) start [2024-12-25 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097545', 'tblTempUsageDetail_20' ) end [2024-12-25 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097545', 'tblTempVendorCDR_20' ) start [2024-12-25 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097545', 'tblTempVendorCDR_20' ) end [2024-12-25 06:01:18] Production.INFO: ProcessCDR(1,14097545,1,1,2) [2024-12-25 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097545', 'tblTempUsageDetail_20' ) start [2024-12-25 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097545', 'tblTempUsageDetail_20' ) end [2024-12-25 06:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:01:21] Production.INFO: ==14689== Releasing lock... [2024-12-25 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:01:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:02:05 [end_date_ymd] => 2024-12-25 06:02:05 [RateCDR] => 1 ) [2024-12-25 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:02:05' and `end` < '2024-12-25 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:02:18] Production.INFO: count ==3 [2024-12-25 06:02:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:02:05 - End Time 2024-12-25 06:02:05 [2024-12-25 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097550', 'tblTempUsageDetail_20' ) start [2024-12-25 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097550', 'tblTempUsageDetail_20' ) end [2024-12-25 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097550', 'tblTempVendorCDR_20' ) start [2024-12-25 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097550', 'tblTempVendorCDR_20' ) end [2024-12-25 06:02:18] Production.INFO: ProcessCDR(1,14097550,1,1,2) [2024-12-25 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097550', 'tblTempUsageDetail_20' ) start [2024-12-25 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097550', 'tblTempUsageDetail_20' ) end [2024-12-25 06:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:02:21] Production.INFO: ==14768== Releasing lock... [2024-12-25 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:02:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:03:04 [end_date_ymd] => 2024-12-25 06:03:04 [RateCDR] => 1 ) [2024-12-25 06:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:03:04' and `end` < '2024-12-25 06:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:03:17] Production.INFO: count ==3 [2024-12-25 06:03:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:03:04 - End Time 2024-12-25 06:03:04 [2024-12-25 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097555', 'tblTempUsageDetail_20' ) start [2024-12-25 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097555', 'tblTempUsageDetail_20' ) end [2024-12-25 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097555', 'tblTempVendorCDR_20' ) start [2024-12-25 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097555', 'tblTempVendorCDR_20' ) end [2024-12-25 06:03:17] Production.INFO: ProcessCDR(1,14097555,1,1,2) [2024-12-25 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097555', 'tblTempUsageDetail_20' ) start [2024-12-25 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097555', 'tblTempUsageDetail_20' ) end [2024-12-25 06:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:03:20] Production.INFO: ==14850== Releasing lock... [2024-12-25 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:03:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:04:05 [end_date_ymd] => 2024-12-25 06:04:05 [RateCDR] => 1 ) [2024-12-25 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:04:05' and `end` < '2024-12-25 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:04:18] Production.INFO: count ==3 [2024-12-25 06:04:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:04:05 - End Time 2024-12-25 06:04:05 [2024-12-25 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097560', 'tblTempUsageDetail_20' ) start [2024-12-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097560', 'tblTempUsageDetail_20' ) end [2024-12-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097560', 'tblTempVendorCDR_20' ) start [2024-12-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097560', 'tblTempVendorCDR_20' ) end [2024-12-25 06:04:18] Production.INFO: ProcessCDR(1,14097560,1,1,2) [2024-12-25 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097560', 'tblTempUsageDetail_20' ) start [2024-12-25 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097560', 'tblTempUsageDetail_20' ) end [2024-12-25 06:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:04:21] Production.INFO: ==14929== Releasing lock... [2024-12-25 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:04:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:05:05 [end_date_ymd] => 2024-12-25 06:05:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:05:05' and `end` < '2024-12-25 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-25 06:05:17] Production.INFO: count ==3 [2024-12-25 06:05:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:05:05 - End Time 2024-12-25 06:05:05 [2024-12-25 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097565', 'tblTempUsageDetail_20' ) start [2024-12-25 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097565', 'tblTempUsageDetail_20' ) end [2024-12-25 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097565', 'tblTempVendorCDR_20' ) start [2024-12-25 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097565', 'tblTempVendorCDR_20' ) end [2024-12-25 06:05:17] Production.INFO: ProcessCDR(1,14097565,1,1,2) [2024-12-25 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097565', 'tblTempUsageDetail_20' ) start [2024-12-25 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097565', 'tblTempUsageDetail_20' ) end [2024-12-25 06:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:05:20] Production.INFO: ==15052== Releasing lock... [2024-12-25 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:05:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:06:05 [end_date_ymd] => 2024-12-25 06:06:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:06:05' and `end` < '2024-12-25 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-25 06:06:18] Production.INFO: count ==3 [2024-12-25 06:06:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:06:05 - End Time 2024-12-25 06:06:05 [2024-12-25 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097570', 'tblTempUsageDetail_20' ) start [2024-12-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097570', 'tblTempUsageDetail_20' ) end [2024-12-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097570', 'tblTempVendorCDR_20' ) start [2024-12-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097570', 'tblTempVendorCDR_20' ) end [2024-12-25 06:06:18] Production.INFO: ProcessCDR(1,14097570,1,1,2) [2024-12-25 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097570', 'tblTempUsageDetail_20' ) start [2024-12-25 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097570', 'tblTempUsageDetail_20' ) end [2024-12-25 06:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:06:21] Production.INFO: ==15135== Releasing lock... [2024-12-25 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:06:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:07:04 [end_date_ymd] => 2024-12-25 06:07:04 [RateCDR] => 1 ) [2024-12-25 06:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:07:04' and `end` < '2024-12-25 06:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:07:17] Production.INFO: count ==3 [2024-12-25 06:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:07:04 - End Time 2024-12-25 06:07:04 [2024-12-25 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097575', 'tblTempUsageDetail_20' ) start [2024-12-25 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097575', 'tblTempUsageDetail_20' ) end [2024-12-25 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097575', 'tblTempVendorCDR_20' ) start [2024-12-25 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097575', 'tblTempVendorCDR_20' ) end [2024-12-25 06:07:17] Production.INFO: ProcessCDR(1,14097575,1,1,2) [2024-12-25 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097575', 'tblTempUsageDetail_20' ) start [2024-12-25 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097575', 'tblTempUsageDetail_20' ) end [2024-12-25 06:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:07:20] Production.INFO: ==15211== Releasing lock... [2024-12-25 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:07:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:08:05 [end_date_ymd] => 2024-12-25 06:08:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:08:05' and `end` < '2024-12-25 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-25 06:08:18] Production.INFO: count ==3 [2024-12-25 06:08:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:08:05 - End Time 2024-12-25 06:08:05 [2024-12-25 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097580', 'tblTempUsageDetail_20' ) start [2024-12-25 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097580', 'tblTempUsageDetail_20' ) end [2024-12-25 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097580', 'tblTempVendorCDR_20' ) start [2024-12-25 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097580', 'tblTempVendorCDR_20' ) end [2024-12-25 06:08:18] Production.INFO: ProcessCDR(1,14097580,1,1,2) [2024-12-25 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097580', 'tblTempUsageDetail_20' ) start [2024-12-25 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097580', 'tblTempUsageDetail_20' ) end [2024-12-25 06:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:08:21] Production.INFO: ==15295== Releasing lock... [2024-12-25 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:08:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:09:05 [end_date_ymd] => 2024-12-25 06:09:05 [RateCDR] => 1 ) [2024-12-25 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:09:05' and `end` < '2024-12-25 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:09:17] Production.INFO: count ==3 [2024-12-25 06:09:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:09:05 - End Time 2024-12-25 06:09:05 [2024-12-25 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097585', 'tblTempUsageDetail_20' ) start [2024-12-25 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097585', 'tblTempUsageDetail_20' ) end [2024-12-25 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097585', 'tblTempVendorCDR_20' ) start [2024-12-25 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097585', 'tblTempVendorCDR_20' ) end [2024-12-25 06:09:17] Production.INFO: ProcessCDR(1,14097585,1,1,2) [2024-12-25 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097585', 'tblTempUsageDetail_20' ) start [2024-12-25 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097585', 'tblTempUsageDetail_20' ) end [2024-12-25 06:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:09:21] Production.INFO: ==15373== Releasing lock... [2024-12-25 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:09:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:10:06 [end_date_ymd] => 2024-12-25 06:10:06 [RateCDR] => 1 ) [2024-12-25 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-25 03:10:06' and `end` < '2024-12-25 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-25 06:10:18] Production.INFO: count ==3 [2024-12-25 06:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:10:06 - End Time 2024-12-25 06:10:06 [2024-12-25 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097590', 'tblTempUsageDetail_20' ) start [2024-12-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097590', 'tblTempUsageDetail_20' ) end [2024-12-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097590', 'tblTempVendorCDR_20' ) start [2024-12-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097590', 'tblTempVendorCDR_20' ) end [2024-12-25 06:10:18] Production.INFO: ProcessCDR(1,14097590,1,1,2) [2024-12-25 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097590', 'tblTempUsageDetail_20' ) start [2024-12-25 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097590', 'tblTempUsageDetail_20' ) end [2024-12-25 06:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:10:21] Production.INFO: ==15458== Releasing lock... [2024-12-25 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:10:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:11:05 [end_date_ymd] => 2024-12-25 06:11:05 [RateCDR] => 1 ) [2024-12-25 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:11:05' and `end` < '2024-12-25 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:11:17] Production.INFO: count ==3 [2024-12-25 06:11:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:11:05 - End Time 2024-12-25 06:11:05 [2024-12-25 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097596', 'tblTempUsageDetail_20' ) start [2024-12-25 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097596', 'tblTempUsageDetail_20' ) end [2024-12-25 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097596', 'tblTempVendorCDR_20' ) start [2024-12-25 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097596', 'tblTempVendorCDR_20' ) end [2024-12-25 06:11:17] Production.INFO: ProcessCDR(1,14097596,1,1,2) [2024-12-25 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097596', 'tblTempUsageDetail_20' ) start [2024-12-25 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097596', 'tblTempUsageDetail_20' ) end [2024-12-25 06:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:11:20] Production.INFO: ==15538== Releasing lock... [2024-12-25 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:11:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:12:05 [end_date_ymd] => 2024-12-25 06:12:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:12:05' and `end` < '2024-12-25 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-25 06:12:17] Production.INFO: count ==3 [2024-12-25 06:12:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:12:05 - End Time 2024-12-25 06:12:05 [2024-12-25 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097601', 'tblTempUsageDetail_20' ) start [2024-12-25 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097601', 'tblTempUsageDetail_20' ) end [2024-12-25 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097601', 'tblTempVendorCDR_20' ) start [2024-12-25 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097601', 'tblTempVendorCDR_20' ) end [2024-12-25 06:12:17] Production.INFO: ProcessCDR(1,14097601,1,1,2) [2024-12-25 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097601', 'tblTempUsageDetail_20' ) start [2024-12-25 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097601', 'tblTempUsageDetail_20' ) end [2024-12-25 06:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:12:20] Production.INFO: ==15619== Releasing lock... [2024-12-25 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:12:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:13:04 [end_date_ymd] => 2024-12-25 06:13:04 [RateCDR] => 1 ) [2024-12-25 06: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-25 03:13:04' and `end` < '2024-12-25 06: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-25 06:13:17] Production.INFO: count ==3 [2024-12-25 06:13:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:13:04 - End Time 2024-12-25 06:13:04 [2024-12-25 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097606', 'tblTempUsageDetail_20' ) start [2024-12-25 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097606', 'tblTempUsageDetail_20' ) end [2024-12-25 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097606', 'tblTempVendorCDR_20' ) start [2024-12-25 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097606', 'tblTempVendorCDR_20' ) end [2024-12-25 06:13:17] Production.INFO: ProcessCDR(1,14097606,1,1,2) [2024-12-25 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097606', 'tblTempUsageDetail_20' ) start [2024-12-25 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097606', 'tblTempUsageDetail_20' ) end [2024-12-25 06:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:13:20] Production.INFO: ==15702== Releasing lock... [2024-12-25 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:13:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:14:05 [end_date_ymd] => 2024-12-25 06:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:14:05' and `end` < '2024-12-25 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-25 06:14:17] Production.INFO: count ==3 [2024-12-25 06:14:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:14:05 - End Time 2024-12-25 06:14:05 [2024-12-25 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097611', 'tblTempUsageDetail_20' ) start [2024-12-25 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097611', 'tblTempUsageDetail_20' ) end [2024-12-25 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097611', 'tblTempVendorCDR_20' ) start [2024-12-25 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097611', 'tblTempVendorCDR_20' ) end [2024-12-25 06:14:17] Production.INFO: ProcessCDR(1,14097611,1,1,2) [2024-12-25 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097611', 'tblTempUsageDetail_20' ) start [2024-12-25 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097611', 'tblTempUsageDetail_20' ) end [2024-12-25 06:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:14:20] Production.INFO: ==15792== Releasing lock... [2024-12-25 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:14:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:15:05 [end_date_ymd] => 2024-12-25 06:15:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:15:05' and `end` < '2024-12-25 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-25 06:15:17] Production.INFO: count ==3 [2024-12-25 06:15:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:15:05 - End Time 2024-12-25 06:15:05 [2024-12-25 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097616', 'tblTempUsageDetail_20' ) start [2024-12-25 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097616', 'tblTempUsageDetail_20' ) end [2024-12-25 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097616', 'tblTempVendorCDR_20' ) start [2024-12-25 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097616', 'tblTempVendorCDR_20' ) end [2024-12-25 06:15:17] Production.INFO: ProcessCDR(1,14097616,1,1,2) [2024-12-25 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097616', 'tblTempUsageDetail_20' ) start [2024-12-25 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097616', 'tblTempUsageDetail_20' ) end [2024-12-25 06:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:15:20] Production.INFO: ==15875== Releasing lock... [2024-12-25 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:15:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:16:04 [end_date_ymd] => 2024-12-25 06:16:04 [RateCDR] => 1 ) [2024-12-25 06: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-25 03:16:04' and `end` < '2024-12-25 06: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-25 06:16:17] Production.INFO: count ==3 [2024-12-25 06:16:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:16:04 - End Time 2024-12-25 06:16:04 [2024-12-25 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097621', 'tblTempUsageDetail_20' ) start [2024-12-25 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097621', 'tblTempUsageDetail_20' ) end [2024-12-25 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097621', 'tblTempVendorCDR_20' ) start [2024-12-25 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097621', 'tblTempVendorCDR_20' ) end [2024-12-25 06:16:17] Production.INFO: ProcessCDR(1,14097621,1,1,2) [2024-12-25 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097621', 'tblTempUsageDetail_20' ) start [2024-12-25 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097621', 'tblTempUsageDetail_20' ) end [2024-12-25 06:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:16:20] Production.INFO: ==15965== Releasing lock... [2024-12-25 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:16:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:17:04 [end_date_ymd] => 2024-12-25 06:17:04 [RateCDR] => 1 ) [2024-12-25 06: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-25 03:17:04' and `end` < '2024-12-25 06: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-25 06:17:17] Production.INFO: count ==3 [2024-12-25 06:17:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:17:04 - End Time 2024-12-25 06:17:04 [2024-12-25 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097626', 'tblTempUsageDetail_20' ) start [2024-12-25 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097626', 'tblTempUsageDetail_20' ) end [2024-12-25 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097626', 'tblTempVendorCDR_20' ) start [2024-12-25 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097626', 'tblTempVendorCDR_20' ) end [2024-12-25 06:17:17] Production.INFO: ProcessCDR(1,14097626,1,1,2) [2024-12-25 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097626', 'tblTempUsageDetail_20' ) start [2024-12-25 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097626', 'tblTempUsageDetail_20' ) end [2024-12-25 06:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:17:20] Production.INFO: ==16049== Releasing lock... [2024-12-25 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:17:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:18:04 [end_date_ymd] => 2024-12-25 06:18:04 [RateCDR] => 1 ) [2024-12-25 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-25 03:18:04' and `end` < '2024-12-25 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-25 06:18:18] Production.INFO: count ==3 [2024-12-25 06:18:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:18:04 - End Time 2024-12-25 06:18:04 [2024-12-25 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097631', 'tblTempUsageDetail_20' ) start [2024-12-25 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097631', 'tblTempUsageDetail_20' ) end [2024-12-25 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097631', 'tblTempVendorCDR_20' ) start [2024-12-25 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097631', 'tblTempVendorCDR_20' ) end [2024-12-25 06:18:18] Production.INFO: ProcessCDR(1,14097631,1,1,2) [2024-12-25 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097631', 'tblTempUsageDetail_20' ) start [2024-12-25 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097631', 'tblTempUsageDetail_20' ) end [2024-12-25 06:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:18:21] Production.INFO: ==16134== Releasing lock... [2024-12-25 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:18:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:19:04 [end_date_ymd] => 2024-12-25 06:19:04 [RateCDR] => 1 ) [2024-12-25 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-25 03:19:04' and `end` < '2024-12-25 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-25 06:19:17] Production.INFO: count ==3 [2024-12-25 06:19:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:19:04 - End Time 2024-12-25 06:19:04 [2024-12-25 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097636', 'tblTempUsageDetail_20' ) start [2024-12-25 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097636', 'tblTempUsageDetail_20' ) end [2024-12-25 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097636', 'tblTempVendorCDR_20' ) start [2024-12-25 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097636', 'tblTempVendorCDR_20' ) end [2024-12-25 06:19:17] Production.INFO: ProcessCDR(1,14097636,1,1,2) [2024-12-25 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097636', 'tblTempUsageDetail_20' ) start [2024-12-25 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097636', 'tblTempUsageDetail_20' ) end [2024-12-25 06:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:19:20] Production.INFO: ==16215== Releasing lock... [2024-12-25 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:19:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:20:06 [end_date_ymd] => 2024-12-25 06:20:06 [RateCDR] => 1 ) [2024-12-25 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:20:06' and `end` < '2024-12-25 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:20:18] Production.INFO: count ==3 [2024-12-25 06:20:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:20:06 - End Time 2024-12-25 06:20:06 [2024-12-25 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097642', 'tblTempUsageDetail_20' ) start [2024-12-25 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097642', 'tblTempUsageDetail_20' ) end [2024-12-25 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097642', 'tblTempVendorCDR_20' ) start [2024-12-25 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097642', 'tblTempVendorCDR_20' ) end [2024-12-25 06:20:18] Production.INFO: ProcessCDR(1,14097642,1,1,2) [2024-12-25 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097642', 'tblTempUsageDetail_20' ) start [2024-12-25 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097642', 'tblTempUsageDetail_20' ) end [2024-12-25 06:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:20:21] Production.INFO: ==16300== Releasing lock... [2024-12-25 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:20:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:21:05 [end_date_ymd] => 2024-12-25 06:21:05 [RateCDR] => 1 ) [2024-12-25 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:21:05' and `end` < '2024-12-25 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:21:17] Production.INFO: count ==4 [2024-12-25 06:21:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:21:05 - End Time 2024-12-25 06:21:05 [2024-12-25 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097647', 'tblTempUsageDetail_20' ) start [2024-12-25 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097647', 'tblTempUsageDetail_20' ) end [2024-12-25 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097647', 'tblTempVendorCDR_20' ) start [2024-12-25 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097647', 'tblTempVendorCDR_20' ) end [2024-12-25 06:21:17] Production.INFO: ProcessCDR(1,14097647,1,1,2) [2024-12-25 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097647', 'tblTempUsageDetail_20' ) start [2024-12-25 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097647', 'tblTempUsageDetail_20' ) end [2024-12-25 06:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:21:22] Production.INFO: ==16424== Releasing lock... [2024-12-25 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:21:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:22:05 [end_date_ymd] => 2024-12-25 06:22:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:22:05' and `end` < '2024-12-25 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-25 06:22:18] Production.INFO: count ==4 [2024-12-25 06:22:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:22:05 - End Time 2024-12-25 06:22:05 [2024-12-25 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097652', 'tblTempUsageDetail_20' ) start [2024-12-25 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097652', 'tblTempUsageDetail_20' ) end [2024-12-25 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097652', 'tblTempVendorCDR_20' ) start [2024-12-25 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097652', 'tblTempVendorCDR_20' ) end [2024-12-25 06:22:18] Production.INFO: ProcessCDR(1,14097652,1,1,2) [2024-12-25 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097652', 'tblTempUsageDetail_20' ) start [2024-12-25 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097652', 'tblTempUsageDetail_20' ) end [2024-12-25 06:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:22:21] Production.INFO: ==16505== Releasing lock... [2024-12-25 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:22:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:23:04 [end_date_ymd] => 2024-12-25 06:23:04 [RateCDR] => 1 ) [2024-12-25 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-25 03:23:04' and `end` < '2024-12-25 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-25 06:23:17] Production.INFO: count ==4 [2024-12-25 06:23:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:23:04 - End Time 2024-12-25 06:23:04 [2024-12-25 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097657', 'tblTempUsageDetail_20' ) start [2024-12-25 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097657', 'tblTempUsageDetail_20' ) end [2024-12-25 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097657', 'tblTempVendorCDR_20' ) start [2024-12-25 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097657', 'tblTempVendorCDR_20' ) end [2024-12-25 06:23:17] Production.INFO: ProcessCDR(1,14097657,1,1,2) [2024-12-25 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097657', 'tblTempUsageDetail_20' ) start [2024-12-25 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097657', 'tblTempUsageDetail_20' ) end [2024-12-25 06:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:23:20] Production.INFO: ==16582== Releasing lock... [2024-12-25 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:23:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:24:05 [end_date_ymd] => 2024-12-25 06:24:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:24:05' and `end` < '2024-12-25 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-25 06:24:17] Production.INFO: count ==4 [2024-12-25 06:24:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:24:05 - End Time 2024-12-25 06:24:05 [2024-12-25 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097662', 'tblTempUsageDetail_20' ) start [2024-12-25 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097662', 'tblTempUsageDetail_20' ) end [2024-12-25 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097662', 'tblTempVendorCDR_20' ) start [2024-12-25 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097662', 'tblTempVendorCDR_20' ) end [2024-12-25 06:24:17] Production.INFO: ProcessCDR(1,14097662,1,1,2) [2024-12-25 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097662', 'tblTempUsageDetail_20' ) start [2024-12-25 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097662', 'tblTempUsageDetail_20' ) end [2024-12-25 06:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:24:20] Production.INFO: ==16667== Releasing lock... [2024-12-25 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:24:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:25:05 [end_date_ymd] => 2024-12-25 06:25:05 [RateCDR] => 1 ) [2024-12-25 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:25:05' and `end` < '2024-12-25 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:25:18] Production.INFO: count ==4 [2024-12-25 06:25:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:25:05 - End Time 2024-12-25 06:25:05 [2024-12-25 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097667', 'tblTempUsageDetail_20' ) start [2024-12-25 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097667', 'tblTempUsageDetail_20' ) end [2024-12-25 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097667', 'tblTempVendorCDR_20' ) start [2024-12-25 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097667', 'tblTempVendorCDR_20' ) end [2024-12-25 06:25:18] Production.INFO: ProcessCDR(1,14097667,1,1,2) [2024-12-25 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097667', 'tblTempUsageDetail_20' ) start [2024-12-25 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097667', 'tblTempUsageDetail_20' ) end [2024-12-25 06:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:25:21] Production.INFO: ==16749== Releasing lock... [2024-12-25 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:25:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:26:05 [end_date_ymd] => 2024-12-25 06:26:05 [RateCDR] => 1 ) [2024-12-25 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:26:05' and `end` < '2024-12-25 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:26:17] Production.INFO: count ==4 [2024-12-25 06:26:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:26:05 - End Time 2024-12-25 06:26:05 [2024-12-25 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097672', 'tblTempUsageDetail_20' ) start [2024-12-25 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097672', 'tblTempUsageDetail_20' ) end [2024-12-25 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097672', 'tblTempVendorCDR_20' ) start [2024-12-25 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097672', 'tblTempVendorCDR_20' ) end [2024-12-25 06:26:17] Production.INFO: ProcessCDR(1,14097672,1,1,2) [2024-12-25 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097672', 'tblTempUsageDetail_20' ) start [2024-12-25 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097672', 'tblTempUsageDetail_20' ) end [2024-12-25 06:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:26:21] Production.INFO: ==16833== Releasing lock... [2024-12-25 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:26:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:27:05 [end_date_ymd] => 2024-12-25 06:27:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:27:05' and `end` < '2024-12-25 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-25 06:27:18] Production.INFO: count ==4 [2024-12-25 06:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:27:05 - End Time 2024-12-25 06:27:05 [2024-12-25 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097677', 'tblTempUsageDetail_20' ) start [2024-12-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097677', 'tblTempUsageDetail_20' ) end [2024-12-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097677', 'tblTempVendorCDR_20' ) start [2024-12-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097677', 'tblTempVendorCDR_20' ) end [2024-12-25 06:27:18] Production.INFO: ProcessCDR(1,14097677,1,1,2) [2024-12-25 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097677', 'tblTempUsageDetail_20' ) start [2024-12-25 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097677', 'tblTempUsageDetail_20' ) end [2024-12-25 06:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:27:21] Production.INFO: ==16909== Releasing lock... [2024-12-25 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:27:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:28:05 [end_date_ymd] => 2024-12-25 06:28:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:28:05' and `end` < '2024-12-25 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-25 06:28:18] Production.INFO: count ==4 [2024-12-25 06:28:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:28:05 - End Time 2024-12-25 06:28:05 [2024-12-25 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097682', 'tblTempUsageDetail_20' ) start [2024-12-25 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097682', 'tblTempUsageDetail_20' ) end [2024-12-25 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097682', 'tblTempVendorCDR_20' ) start [2024-12-25 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097682', 'tblTempVendorCDR_20' ) end [2024-12-25 06:28:18] Production.INFO: ProcessCDR(1,14097682,1,1,2) [2024-12-25 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097682', 'tblTempUsageDetail_20' ) start [2024-12-25 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097682', 'tblTempUsageDetail_20' ) end [2024-12-25 06:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:28:21] Production.INFO: ==16990== Releasing lock... [2024-12-25 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:28:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:29:05 [end_date_ymd] => 2024-12-25 06:29:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:29:05' and `end` < '2024-12-25 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-25 06:29:17] Production.INFO: count ==4 [2024-12-25 06:29:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:29:05 - End Time 2024-12-25 06:29:05 [2024-12-25 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097687', 'tblTempUsageDetail_20' ) start [2024-12-25 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097687', 'tblTempUsageDetail_20' ) end [2024-12-25 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097687', 'tblTempVendorCDR_20' ) start [2024-12-25 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097687', 'tblTempVendorCDR_20' ) end [2024-12-25 06:29:17] Production.INFO: ProcessCDR(1,14097687,1,1,2) [2024-12-25 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097687', 'tblTempUsageDetail_20' ) start [2024-12-25 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097687', 'tblTempUsageDetail_20' ) end [2024-12-25 06:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:29:20] Production.INFO: ==17076== Releasing lock... [2024-12-25 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:29:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:30:05 [end_date_ymd] => 2024-12-25 06:30:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:30:05' and `end` < '2024-12-25 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-25 06:30:17] Production.INFO: count ==6 [2024-12-25 06:30:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:30:05 - End Time 2024-12-25 06:30:05 [2024-12-25 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097692', 'tblTempUsageDetail_20' ) start [2024-12-25 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097692', 'tblTempUsageDetail_20' ) end [2024-12-25 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097692', 'tblTempVendorCDR_20' ) start [2024-12-25 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097692', 'tblTempVendorCDR_20' ) end [2024-12-25 06:30:17] Production.INFO: ProcessCDR(1,14097692,1,1,2) [2024-12-25 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097692', 'tblTempUsageDetail_20' ) start [2024-12-25 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097692', 'tblTempUsageDetail_20' ) end [2024-12-25 06:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:30:20] Production.INFO: ==17169== Releasing lock... [2024-12-25 06:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:30:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-25 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:31:05 [end_date_ymd] => 2024-12-25 06:31:05 [RateCDR] => 1 ) [2024-12-25 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:31:05' and `end` < '2024-12-25 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:31:18] Production.INFO: count ==7 [2024-12-25 06:31:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:31:05 - End Time 2024-12-25 06:31:05 [2024-12-25 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097698', 'tblTempUsageDetail_20' ) start [2024-12-25 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097698', 'tblTempUsageDetail_20' ) end [2024-12-25 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097698', 'tblTempVendorCDR_20' ) start [2024-12-25 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097698', 'tblTempVendorCDR_20' ) end [2024-12-25 06:31:18] Production.INFO: ProcessCDR(1,14097698,1,1,2) [2024-12-25 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097698', 'tblTempUsageDetail_20' ) start [2024-12-25 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097698', 'tblTempUsageDetail_20' ) end [2024-12-25 06:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:31:21] Production.INFO: ==17256== Releasing lock... [2024-12-25 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:31:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:32:04 [end_date_ymd] => 2024-12-25 06:32:04 [RateCDR] => 1 ) [2024-12-25 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-25 03:32:04' and `end` < '2024-12-25 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-25 06:32:18] Production.INFO: count ==7 [2024-12-25 06:32:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:32:04 - End Time 2024-12-25 06:32:04 [2024-12-25 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097703', 'tblTempUsageDetail_20' ) start [2024-12-25 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097703', 'tblTempUsageDetail_20' ) end [2024-12-25 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097703', 'tblTempVendorCDR_20' ) start [2024-12-25 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097703', 'tblTempVendorCDR_20' ) end [2024-12-25 06:32:18] Production.INFO: ProcessCDR(1,14097703,1,1,2) [2024-12-25 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097703', 'tblTempUsageDetail_20' ) start [2024-12-25 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097703', 'tblTempUsageDetail_20' ) end [2024-12-25 06:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:32:21] Production.INFO: ==17337== Releasing lock... [2024-12-25 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:32:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:33:05 [end_date_ymd] => 2024-12-25 06:33:05 [RateCDR] => 1 ) [2024-12-25 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:33:05' and `end` < '2024-12-25 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:33:18] Production.INFO: count ==7 [2024-12-25 06:33:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:33:05 - End Time 2024-12-25 06:33:05 [2024-12-25 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097708', 'tblTempUsageDetail_20' ) start [2024-12-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097708', 'tblTempUsageDetail_20' ) end [2024-12-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097708', 'tblTempVendorCDR_20' ) start [2024-12-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097708', 'tblTempVendorCDR_20' ) end [2024-12-25 06:33:18] Production.INFO: ProcessCDR(1,14097708,1,1,2) [2024-12-25 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097708', 'tblTempUsageDetail_20' ) start [2024-12-25 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097708', 'tblTempUsageDetail_20' ) end [2024-12-25 06:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:33:21] Production.INFO: ==17420== Releasing lock... [2024-12-25 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:33:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:34:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:34:06 [end_date_ymd] => 2024-12-25 06:34:06 [RateCDR] => 1 ) [2024-12-25 06:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:34:06' and `end` < '2024-12-25 06:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:34:19] Production.INFO: count ==7 [2024-12-25 06:34:19] Production.ERROR: pbx CDR StartTime 2024-12-25 03:34:06 - End Time 2024-12-25 06:34:06 [2024-12-25 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097713', 'tblTempUsageDetail_20' ) start [2024-12-25 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097713', 'tblTempUsageDetail_20' ) end [2024-12-25 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097713', 'tblTempVendorCDR_20' ) start [2024-12-25 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097713', 'tblTempVendorCDR_20' ) end [2024-12-25 06:34:19] Production.INFO: ProcessCDR(1,14097713,1,1,2) [2024-12-25 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097713', 'tblTempUsageDetail_20' ) start [2024-12-25 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097713', 'tblTempUsageDetail_20' ) end [2024-12-25 06:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:34:22] Production.INFO: ==17501== Releasing lock... [2024-12-25 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:34:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:35:05 [end_date_ymd] => 2024-12-25 06:35:05 [RateCDR] => 1 ) [2024-12-25 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:35:05' and `end` < '2024-12-25 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:35:18] Production.INFO: count ==7 [2024-12-25 06:35:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:35:05 - End Time 2024-12-25 06:35:05 [2024-12-25 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097718', 'tblTempUsageDetail_20' ) start [2024-12-25 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097718', 'tblTempUsageDetail_20' ) end [2024-12-25 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097718', 'tblTempVendorCDR_20' ) start [2024-12-25 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097718', 'tblTempVendorCDR_20' ) end [2024-12-25 06:35:18] Production.INFO: ProcessCDR(1,14097718,1,1,2) [2024-12-25 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097718', 'tblTempUsageDetail_20' ) start [2024-12-25 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097718', 'tblTempUsageDetail_20' ) end [2024-12-25 06:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:35:21] Production.INFO: ==17586== Releasing lock... [2024-12-25 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:35:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:36:05 [end_date_ymd] => 2024-12-25 06:36:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:36:05' and `end` < '2024-12-25 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-25 06:36:17] Production.INFO: count ==7 [2024-12-25 06:36:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:36:05 - End Time 2024-12-25 06:36:05 [2024-12-25 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097723', 'tblTempUsageDetail_20' ) start [2024-12-25 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097723', 'tblTempUsageDetail_20' ) end [2024-12-25 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097723', 'tblTempVendorCDR_20' ) start [2024-12-25 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097723', 'tblTempVendorCDR_20' ) end [2024-12-25 06:36:17] Production.INFO: ProcessCDR(1,14097723,1,1,2) [2024-12-25 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097723', 'tblTempUsageDetail_20' ) start [2024-12-25 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097723', 'tblTempUsageDetail_20' ) end [2024-12-25 06:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:36:20] Production.INFO: ==17705== Releasing lock... [2024-12-25 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:36:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:37:04 [end_date_ymd] => 2024-12-25 06:37:04 [RateCDR] => 1 ) [2024-12-25 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-25 03:37:04' and `end` < '2024-12-25 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-25 06:37:18] Production.INFO: count ==7 [2024-12-25 06:37:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:37:04 - End Time 2024-12-25 06:37:04 [2024-12-25 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097728', 'tblTempUsageDetail_20' ) start [2024-12-25 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097728', 'tblTempUsageDetail_20' ) end [2024-12-25 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097728', 'tblTempVendorCDR_20' ) start [2024-12-25 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097728', 'tblTempVendorCDR_20' ) end [2024-12-25 06:37:18] Production.INFO: ProcessCDR(1,14097728,1,1,2) [2024-12-25 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097728', 'tblTempUsageDetail_20' ) start [2024-12-25 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097728', 'tblTempUsageDetail_20' ) end [2024-12-25 06:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:37:21] Production.INFO: ==17789== Releasing lock... [2024-12-25 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:37:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:38:05 [end_date_ymd] => 2024-12-25 06:38:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:38:05' and `end` < '2024-12-25 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-25 06:38:17] Production.INFO: count ==7 [2024-12-25 06:38:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:38:05 - End Time 2024-12-25 06:38:05 [2024-12-25 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097733', 'tblTempUsageDetail_20' ) start [2024-12-25 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097733', 'tblTempUsageDetail_20' ) end [2024-12-25 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097733', 'tblTempVendorCDR_20' ) start [2024-12-25 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097733', 'tblTempVendorCDR_20' ) end [2024-12-25 06:38:17] Production.INFO: ProcessCDR(1,14097733,1,1,2) [2024-12-25 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097733', 'tblTempUsageDetail_20' ) start [2024-12-25 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097733', 'tblTempUsageDetail_20' ) end [2024-12-25 06:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:38:20] Production.INFO: ==17870== Releasing lock... [2024-12-25 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:38:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:39:04 [end_date_ymd] => 2024-12-25 06:39:04 [RateCDR] => 1 ) [2024-12-25 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-25 03:39:04' and `end` < '2024-12-25 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-25 06:39:17] Production.INFO: count ==7 [2024-12-25 06:39:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:39:04 - End Time 2024-12-25 06:39:04 [2024-12-25 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097738', 'tblTempUsageDetail_20' ) start [2024-12-25 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097738', 'tblTempUsageDetail_20' ) end [2024-12-25 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097738', 'tblTempVendorCDR_20' ) start [2024-12-25 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097738', 'tblTempVendorCDR_20' ) end [2024-12-25 06:39:17] Production.INFO: ProcessCDR(1,14097738,1,1,2) [2024-12-25 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097738', 'tblTempUsageDetail_20' ) start [2024-12-25 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097738', 'tblTempUsageDetail_20' ) end [2024-12-25 06:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:39:20] Production.INFO: ==17952== Releasing lock... [2024-12-25 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:39:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:40:06 [end_date_ymd] => 2024-12-25 06:40:06 [RateCDR] => 1 ) [2024-12-25 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:40:06' and `end` < '2024-12-25 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:40:18] Production.INFO: count ==7 [2024-12-25 06:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:40:06 - End Time 2024-12-25 06:40:06 [2024-12-25 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097744', 'tblTempUsageDetail_20' ) start [2024-12-25 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097744', 'tblTempUsageDetail_20' ) end [2024-12-25 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097744', 'tblTempVendorCDR_20' ) start [2024-12-25 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097744', 'tblTempVendorCDR_20' ) end [2024-12-25 06:40:18] Production.INFO: ProcessCDR(1,14097744,1,1,2) [2024-12-25 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097744', 'tblTempUsageDetail_20' ) start [2024-12-25 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097744', 'tblTempUsageDetail_20' ) end [2024-12-25 06:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:40:21] Production.INFO: ==18036== Releasing lock... [2024-12-25 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:40:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:41:05 [end_date_ymd] => 2024-12-25 06:41:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:41:05' and `end` < '2024-12-25 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-25 06:41:18] Production.INFO: count ==7 [2024-12-25 06:41:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:41:05 - End Time 2024-12-25 06:41:05 [2024-12-25 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097749', 'tblTempUsageDetail_20' ) start [2024-12-25 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097749', 'tblTempUsageDetail_20' ) end [2024-12-25 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097749', 'tblTempVendorCDR_20' ) start [2024-12-25 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097749', 'tblTempVendorCDR_20' ) end [2024-12-25 06:41:18] Production.INFO: ProcessCDR(1,14097749,1,1,2) [2024-12-25 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097749', 'tblTempUsageDetail_20' ) start [2024-12-25 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097749', 'tblTempUsageDetail_20' ) end [2024-12-25 06:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:41:21] Production.INFO: ==18117== Releasing lock... [2024-12-25 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:41:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:42:04 [end_date_ymd] => 2024-12-25 06:42:04 [RateCDR] => 1 ) [2024-12-25 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-25 03:42:04' and `end` < '2024-12-25 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-25 06:42:16] Production.INFO: count ==7 [2024-12-25 06:42:16] Production.ERROR: pbx CDR StartTime 2024-12-25 03:42:04 - End Time 2024-12-25 06:42:04 [2024-12-25 06:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097750', 'tblTempUsageDetail_20' ) start [2024-12-25 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097750', 'tblTempUsageDetail_20' ) end [2024-12-25 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097750', 'tblTempVendorCDR_20' ) start [2024-12-25 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097750', 'tblTempVendorCDR_20' ) end [2024-12-25 06:42:17] Production.INFO: ProcessCDR(1,14097750,1,1,2) [2024-12-25 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097750', 'tblTempUsageDetail_20' ) start [2024-12-25 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097750', 'tblTempUsageDetail_20' ) end [2024-12-25 06:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:42:20] Production.INFO: ==18198== Releasing lock... [2024-12-25 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:42:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:43:05 [end_date_ymd] => 2024-12-25 06:43:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:43:05' and `end` < '2024-12-25 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-25 06:43:18] Production.INFO: count ==7 [2024-12-25 06:43:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:43:05 - End Time 2024-12-25 06:43:05 [2024-12-25 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097759', 'tblTempUsageDetail_20' ) start [2024-12-25 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097759', 'tblTempUsageDetail_20' ) end [2024-12-25 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097759', 'tblTempVendorCDR_20' ) start [2024-12-25 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097759', 'tblTempVendorCDR_20' ) end [2024-12-25 06:43:18] Production.INFO: ProcessCDR(1,14097759,1,1,2) [2024-12-25 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097759', 'tblTempUsageDetail_20' ) start [2024-12-25 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097759', 'tblTempUsageDetail_20' ) end [2024-12-25 06:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:43:22] Production.INFO: ==18287== Releasing lock... [2024-12-25 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:43:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:44:05 [end_date_ymd] => 2024-12-25 06:44:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:44:05' and `end` < '2024-12-25 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-25 06:44:17] Production.INFO: count ==7 [2024-12-25 06:44:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:44:05 - End Time 2024-12-25 06:44:05 [2024-12-25 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097764', 'tblTempUsageDetail_20' ) start [2024-12-25 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097764', 'tblTempUsageDetail_20' ) end [2024-12-25 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097764', 'tblTempVendorCDR_20' ) start [2024-12-25 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097764', 'tblTempVendorCDR_20' ) end [2024-12-25 06:44:17] Production.INFO: ProcessCDR(1,14097764,1,1,2) [2024-12-25 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097764', 'tblTempUsageDetail_20' ) start [2024-12-25 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097764', 'tblTempUsageDetail_20' ) end [2024-12-25 06:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:44:20] Production.INFO: ==18366== Releasing lock... [2024-12-25 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:44:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:45:04 [end_date_ymd] => 2024-12-25 06:45:04 [RateCDR] => 1 ) [2024-12-25 06:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:45:04' and `end` < '2024-12-25 06:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:45:17] Production.INFO: count ==7 [2024-12-25 06:45:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:45:04 - End Time 2024-12-25 06:45:04 [2024-12-25 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097769', 'tblTempUsageDetail_20' ) start [2024-12-25 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097769', 'tblTempUsageDetail_20' ) end [2024-12-25 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097769', 'tblTempVendorCDR_20' ) start [2024-12-25 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097769', 'tblTempVendorCDR_20' ) end [2024-12-25 06:45:17] Production.INFO: ProcessCDR(1,14097769,1,1,2) [2024-12-25 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097769', 'tblTempUsageDetail_20' ) start [2024-12-25 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097769', 'tblTempUsageDetail_20' ) end [2024-12-25 06:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:45:20] Production.INFO: ==18450== Releasing lock... [2024-12-25 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:45:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:46:05 [end_date_ymd] => 2024-12-25 06:46:05 [RateCDR] => 1 ) [2024-12-25 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:46:05' and `end` < '2024-12-25 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:46:18] Production.INFO: count ==7 [2024-12-25 06:46:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:46:05 - End Time 2024-12-25 06:46:05 [2024-12-25 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097774', 'tblTempUsageDetail_20' ) start [2024-12-25 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097774', 'tblTempUsageDetail_20' ) end [2024-12-25 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097774', 'tblTempVendorCDR_20' ) start [2024-12-25 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097774', 'tblTempVendorCDR_20' ) end [2024-12-25 06:46:18] Production.INFO: ProcessCDR(1,14097774,1,1,2) [2024-12-25 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097774', 'tblTempUsageDetail_20' ) start [2024-12-25 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097774', 'tblTempUsageDetail_20' ) end [2024-12-25 06:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:46:21] Production.INFO: ==18534== Releasing lock... [2024-12-25 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:46:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:47:05 [end_date_ymd] => 2024-12-25 06:47:05 [RateCDR] => 1 ) [2024-12-25 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:47:05' and `end` < '2024-12-25 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:47:17] Production.INFO: count ==7 [2024-12-25 06:47:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:47:05 - End Time 2024-12-25 06:47:05 [2024-12-25 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097779', 'tblTempUsageDetail_20' ) start [2024-12-25 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097779', 'tblTempUsageDetail_20' ) end [2024-12-25 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097779', 'tblTempVendorCDR_20' ) start [2024-12-25 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097779', 'tblTempVendorCDR_20' ) end [2024-12-25 06:47:17] Production.INFO: ProcessCDR(1,14097779,1,1,2) [2024-12-25 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097779', 'tblTempUsageDetail_20' ) start [2024-12-25 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097779', 'tblTempUsageDetail_20' ) end [2024-12-25 06:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:47:21] Production.INFO: ==18618== Releasing lock... [2024-12-25 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:47:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:48:05 [end_date_ymd] => 2024-12-25 06:48:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:48:05' and `end` < '2024-12-25 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-25 06:48:18] Production.INFO: count ==7 [2024-12-25 06:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:48:05 - End Time 2024-12-25 06:48:05 [2024-12-25 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097784', 'tblTempUsageDetail_20' ) start [2024-12-25 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097784', 'tblTempUsageDetail_20' ) end [2024-12-25 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097784', 'tblTempVendorCDR_20' ) start [2024-12-25 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097784', 'tblTempVendorCDR_20' ) end [2024-12-25 06:48:18] Production.INFO: ProcessCDR(1,14097784,1,1,2) [2024-12-25 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097784', 'tblTempUsageDetail_20' ) start [2024-12-25 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097784', 'tblTempUsageDetail_20' ) end [2024-12-25 06:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:48:21] Production.INFO: ==18699== Releasing lock... [2024-12-25 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:48:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:49:05 [end_date_ymd] => 2024-12-25 06:49:05 [RateCDR] => 1 ) [2024-12-25 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:49:05' and `end` < '2024-12-25 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:49:17] Production.INFO: count ==7 [2024-12-25 06:49:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:49:05 - End Time 2024-12-25 06:49:05 [2024-12-25 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097789', 'tblTempUsageDetail_20' ) start [2024-12-25 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097789', 'tblTempUsageDetail_20' ) end [2024-12-25 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097789', 'tblTempVendorCDR_20' ) start [2024-12-25 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097789', 'tblTempVendorCDR_20' ) end [2024-12-25 06:49:17] Production.INFO: ProcessCDR(1,14097789,1,1,2) [2024-12-25 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097789', 'tblTempUsageDetail_20' ) start [2024-12-25 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097789', 'tblTempUsageDetail_20' ) end [2024-12-25 06:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:49:20] Production.INFO: ==18782== Releasing lock... [2024-12-25 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:49:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:50:05 [end_date_ymd] => 2024-12-25 06:50:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:50:05' and `end` < '2024-12-25 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-25 06:50:18] Production.INFO: count ==13 [2024-12-25 06:50:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:50:05 - End Time 2024-12-25 06:50:05 [2024-12-25 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097794', 'tblTempUsageDetail_20' ) start [2024-12-25 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097794', 'tblTempUsageDetail_20' ) end [2024-12-25 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097794', 'tblTempVendorCDR_20' ) start [2024-12-25 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097794', 'tblTempVendorCDR_20' ) end [2024-12-25 06:50:18] Production.INFO: ProcessCDR(1,14097794,1,1,2) [2024-12-25 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097794', 'tblTempUsageDetail_20' ) start [2024-12-25 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097794', 'tblTempUsageDetail_20' ) end [2024-12-25 06:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:50:21] Production.INFO: ==18868== Releasing lock... [2024-12-25 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:50:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:51:05 [end_date_ymd] => 2024-12-25 06:51:05 [RateCDR] => 1 ) [2024-12-25 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:51:05' and `end` < '2024-12-25 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:51:17] Production.INFO: count ==13 [2024-12-25 06:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:51:05 - End Time 2024-12-25 06:51:05 [2024-12-25 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097800', 'tblTempUsageDetail_20' ) start [2024-12-25 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097800', 'tblTempUsageDetail_20' ) end [2024-12-25 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097800', 'tblTempVendorCDR_20' ) start [2024-12-25 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097800', 'tblTempVendorCDR_20' ) end [2024-12-25 06:51:17] Production.INFO: ProcessCDR(1,14097800,1,1,2) [2024-12-25 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097800', 'tblTempUsageDetail_20' ) start [2024-12-25 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097800', 'tblTempUsageDetail_20' ) end [2024-12-25 06:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:51:21] Production.INFO: ==18953== Releasing lock... [2024-12-25 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:51:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:52:05 [end_date_ymd] => 2024-12-25 06:52:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:52:05' and `end` < '2024-12-25 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-25 06:52:18] Production.INFO: count ==13 [2024-12-25 06:52:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:52:05 - End Time 2024-12-25 06:52:05 [2024-12-25 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097805', 'tblTempUsageDetail_20' ) start [2024-12-25 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097805', 'tblTempUsageDetail_20' ) end [2024-12-25 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097805', 'tblTempVendorCDR_20' ) start [2024-12-25 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097805', 'tblTempVendorCDR_20' ) end [2024-12-25 06:52:18] Production.INFO: ProcessCDR(1,14097805,1,1,2) [2024-12-25 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097805', 'tblTempUsageDetail_20' ) start [2024-12-25 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097805', 'tblTempUsageDetail_20' ) end [2024-12-25 06:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:52:21] Production.INFO: ==19068== Releasing lock... [2024-12-25 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:53:04 [end_date_ymd] => 2024-12-25 06:53:04 [RateCDR] => 1 ) [2024-12-25 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-25 03:53:04' and `end` < '2024-12-25 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-25 06:53:17] Production.INFO: count ==13 [2024-12-25 06:53:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:53:04 - End Time 2024-12-25 06:53:04 [2024-12-25 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097810', 'tblTempUsageDetail_20' ) start [2024-12-25 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097810', 'tblTempUsageDetail_20' ) end [2024-12-25 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097810', 'tblTempVendorCDR_20' ) start [2024-12-25 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097810', 'tblTempVendorCDR_20' ) end [2024-12-25 06:53:17] Production.INFO: ProcessCDR(1,14097810,1,1,2) [2024-12-25 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097810', 'tblTempUsageDetail_20' ) start [2024-12-25 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097810', 'tblTempUsageDetail_20' ) end [2024-12-25 06:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:53:20] Production.INFO: ==19156== Releasing lock... [2024-12-25 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:53:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:54:05 [end_date_ymd] => 2024-12-25 06:54:05 [RateCDR] => 1 ) [2024-12-25 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:54:05' and `end` < '2024-12-25 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:54:17] Production.INFO: count ==13 [2024-12-25 06:54:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:54:05 - End Time 2024-12-25 06:54:05 [2024-12-25 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097815', 'tblTempUsageDetail_20' ) start [2024-12-25 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097815', 'tblTempUsageDetail_20' ) end [2024-12-25 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097815', 'tblTempVendorCDR_20' ) start [2024-12-25 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097815', 'tblTempVendorCDR_20' ) end [2024-12-25 06:54:18] Production.INFO: ProcessCDR(1,14097815,1,1,2) [2024-12-25 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097815', 'tblTempUsageDetail_20' ) start [2024-12-25 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097815', 'tblTempUsageDetail_20' ) end [2024-12-25 06:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:54:21] Production.INFO: ==19239== Releasing lock... [2024-12-25 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:54:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:55:05 [end_date_ymd] => 2024-12-25 06:55:05 [RateCDR] => 1 ) [2024-12-25 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-25 03:55:05' and `end` < '2024-12-25 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-25 06:55:17] Production.INFO: count ==13 [2024-12-25 06:55:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:55:05 - End Time 2024-12-25 06:55:05 [2024-12-25 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097820', 'tblTempUsageDetail_20' ) start [2024-12-25 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097820', 'tblTempUsageDetail_20' ) end [2024-12-25 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097820', 'tblTempVendorCDR_20' ) start [2024-12-25 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097820', 'tblTempVendorCDR_20' ) end [2024-12-25 06:55:17] Production.INFO: ProcessCDR(1,14097820,1,1,2) [2024-12-25 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097820', 'tblTempUsageDetail_20' ) start [2024-12-25 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097820', 'tblTempUsageDetail_20' ) end [2024-12-25 06:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:55:20] Production.INFO: ==19318== Releasing lock... [2024-12-25 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:55:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:56:04 [end_date_ymd] => 2024-12-25 06:56:04 [RateCDR] => 1 ) [2024-12-25 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-25 03:56:04' and `end` < '2024-12-25 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-25 06:56:17] Production.INFO: count ==13 [2024-12-25 06:56:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:56:04 - End Time 2024-12-25 06:56:04 [2024-12-25 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097825', 'tblTempUsageDetail_20' ) start [2024-12-25 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097825', 'tblTempUsageDetail_20' ) end [2024-12-25 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097825', 'tblTempVendorCDR_20' ) start [2024-12-25 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097825', 'tblTempVendorCDR_20' ) end [2024-12-25 06:56:17] Production.INFO: ProcessCDR(1,14097825,1,1,2) [2024-12-25 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097825', 'tblTempUsageDetail_20' ) start [2024-12-25 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097825', 'tblTempUsageDetail_20' ) end [2024-12-25 06:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:56:20] Production.INFO: ==19402== Releasing lock... [2024-12-25 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:56:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:57:04 [end_date_ymd] => 2024-12-25 06:57:04 [RateCDR] => 1 ) [2024-12-25 06: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-25 03:57:04' and `end` < '2024-12-25 06: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-25 06:57:17] Production.INFO: count ==13 [2024-12-25 06:57:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:57:04 - End Time 2024-12-25 06:57:04 [2024-12-25 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097830', 'tblTempUsageDetail_20' ) start [2024-12-25 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097830', 'tblTempUsageDetail_20' ) end [2024-12-25 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097830', 'tblTempVendorCDR_20' ) start [2024-12-25 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097830', 'tblTempVendorCDR_20' ) end [2024-12-25 06:57:17] Production.INFO: ProcessCDR(1,14097830,1,1,2) [2024-12-25 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097830', 'tblTempUsageDetail_20' ) start [2024-12-25 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097830', 'tblTempUsageDetail_20' ) end [2024-12-25 06:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:57:20] Production.INFO: ==19487== Releasing lock... [2024-12-25 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:57:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:58:04 [end_date_ymd] => 2024-12-25 06:58:04 [RateCDR] => 1 ) [2024-12-25 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-25 03:58:04' and `end` < '2024-12-25 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-25 06:58:17] Production.INFO: count ==13 [2024-12-25 06:58:17] Production.ERROR: pbx CDR StartTime 2024-12-25 03:58:04 - End Time 2024-12-25 06:58:04 [2024-12-25 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097835', 'tblTempUsageDetail_20' ) start [2024-12-25 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097835', 'tblTempUsageDetail_20' ) end [2024-12-25 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097835', 'tblTempVendorCDR_20' ) start [2024-12-25 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097835', 'tblTempVendorCDR_20' ) end [2024-12-25 06:58:17] Production.INFO: ProcessCDR(1,14097835,1,1,2) [2024-12-25 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097835', 'tblTempUsageDetail_20' ) start [2024-12-25 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097835', 'tblTempUsageDetail_20' ) end [2024-12-25 06:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:58:20] Production.INFO: ==19570== Releasing lock... [2024-12-25 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:58:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 03:59:05 [end_date_ymd] => 2024-12-25 06:59:05 [RateCDR] => 1 ) [2024-12-25 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 03:59:05' and `end` < '2024-12-25 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 06:59:18] Production.INFO: count ==13 [2024-12-25 06:59:18] Production.ERROR: pbx CDR StartTime 2024-12-25 03:59:05 - End Time 2024-12-25 06:59:05 [2024-12-25 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097840', 'tblTempUsageDetail_20' ) start [2024-12-25 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097840', 'tblTempUsageDetail_20' ) end [2024-12-25 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097840', 'tblTempVendorCDR_20' ) start [2024-12-25 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097840', 'tblTempVendorCDR_20' ) end [2024-12-25 06:59:18] Production.INFO: ProcessCDR(1,14097840,1,1,2) [2024-12-25 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097840', 'tblTempUsageDetail_20' ) start [2024-12-25 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097840', 'tblTempUsageDetail_20' ) end [2024-12-25 06:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 06:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 06:59:21] Production.INFO: ==19656== Releasing lock... [2024-12-25 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 06:59:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:00:06 [end_date_ymd] => 2024-12-25 07:00:06 [RateCDR] => 1 ) [2024-12-25 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:00:06' and `end` < '2024-12-25 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:00:18] Production.INFO: count ==13 [2024-12-25 07:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:00:06 - End Time 2024-12-25 07:00:06 [2024-12-25 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097846', 'tblTempUsageDetail_20' ) start [2024-12-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097846', 'tblTempUsageDetail_20' ) end [2024-12-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097846', 'tblTempVendorCDR_20' ) start [2024-12-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097846', 'tblTempVendorCDR_20' ) end [2024-12-25 07:00:18] Production.INFO: ProcessCDR(1,14097846,1,1,2) [2024-12-25 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097846', 'tblTempUsageDetail_20' ) start [2024-12-25 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097846', 'tblTempUsageDetail_20' ) end [2024-12-25 07:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:00:21] Production.INFO: ==19737== Releasing lock... [2024-12-25 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:00:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:01:05 [end_date_ymd] => 2024-12-25 07:01:05 [RateCDR] => 1 ) [2024-12-25 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:01:05' and `end` < '2024-12-25 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:01:20] Production.INFO: count ==13 [2024-12-25 07:01:20] Production.ERROR: pbx CDR StartTime 2024-12-25 04:01:05 - End Time 2024-12-25 07:01:05 [2024-12-25 07:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097851', 'tblTempUsageDetail_20' ) start [2024-12-25 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097851', 'tblTempUsageDetail_20' ) end [2024-12-25 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097851', 'tblTempVendorCDR_20' ) start [2024-12-25 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097851', 'tblTempVendorCDR_20' ) end [2024-12-25 07:01:20] Production.INFO: ProcessCDR(1,14097851,1,1,2) [2024-12-25 07:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097851', 'tblTempUsageDetail_20' ) start [2024-12-25 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097851', 'tblTempUsageDetail_20' ) end [2024-12-25 07:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:01:23] Production.INFO: ==19923== Releasing lock... [2024-12-25 07:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:01:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:02:05 [end_date_ymd] => 2024-12-25 07:02:05 [RateCDR] => 1 ) [2024-12-25 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:02:05' and `end` < '2024-12-25 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:02:19] Production.INFO: count ==13 [2024-12-25 07:02:19] Production.ERROR: pbx CDR StartTime 2024-12-25 04:02:05 - End Time 2024-12-25 07:02:05 [2024-12-25 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097856', 'tblTempUsageDetail_20' ) start [2024-12-25 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097856', 'tblTempUsageDetail_20' ) end [2024-12-25 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097856', 'tblTempVendorCDR_20' ) start [2024-12-25 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097856', 'tblTempVendorCDR_20' ) end [2024-12-25 07:02:19] Production.INFO: ProcessCDR(1,14097856,1,1,2) [2024-12-25 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097856', 'tblTempUsageDetail_20' ) start [2024-12-25 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097856', 'tblTempUsageDetail_20' ) end [2024-12-25 07:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:02:22] Production.INFO: ==20170== Releasing lock... [2024-12-25 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:02:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:03:05 [end_date_ymd] => 2024-12-25 07:03:05 [RateCDR] => 1 ) [2024-12-25 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:03:05' and `end` < '2024-12-25 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:03:18] Production.INFO: count ==13 [2024-12-25 07:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:03:05 - End Time 2024-12-25 07:03:05 [2024-12-25 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097861', 'tblTempUsageDetail_20' ) start [2024-12-25 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097861', 'tblTempUsageDetail_20' ) end [2024-12-25 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097861', 'tblTempVendorCDR_20' ) start [2024-12-25 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097861', 'tblTempVendorCDR_20' ) end [2024-12-25 07:03:18] Production.INFO: ProcessCDR(1,14097861,1,1,2) [2024-12-25 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097861', 'tblTempUsageDetail_20' ) start [2024-12-25 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097861', 'tblTempUsageDetail_20' ) end [2024-12-25 07:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:03:21] Production.INFO: ==20335== Releasing lock... [2024-12-25 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:03:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:04:04 [end_date_ymd] => 2024-12-25 07:04:04 [RateCDR] => 1 ) [2024-12-25 07: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-25 04:04:04' and `end` < '2024-12-25 07: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-25 07:04:18] Production.INFO: count ==13 [2024-12-25 07:04:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:04:04 - End Time 2024-12-25 07:04:04 [2024-12-25 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097866', 'tblTempUsageDetail_20' ) start [2024-12-25 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097866', 'tblTempUsageDetail_20' ) end [2024-12-25 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097866', 'tblTempVendorCDR_20' ) start [2024-12-25 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097866', 'tblTempVendorCDR_20' ) end [2024-12-25 07:04:19] Production.INFO: ProcessCDR(1,14097866,1,1,2) [2024-12-25 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097866', 'tblTempUsageDetail_20' ) start [2024-12-25 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097866', 'tblTempUsageDetail_20' ) end [2024-12-25 07:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:04:21] Production.INFO: ==20469== Releasing lock... [2024-12-25 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:04:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:05:04 [end_date_ymd] => 2024-12-25 07:05:04 [RateCDR] => 1 ) [2024-12-25 07: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-25 04:05:04' and `end` < '2024-12-25 07: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-25 07:05:18] Production.INFO: count ==13 [2024-12-25 07:05:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:05:04 - End Time 2024-12-25 07:05:04 [2024-12-25 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097871', 'tblTempUsageDetail_20' ) start [2024-12-25 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097871', 'tblTempUsageDetail_20' ) end [2024-12-25 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097871', 'tblTempVendorCDR_20' ) start [2024-12-25 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097871', 'tblTempVendorCDR_20' ) end [2024-12-25 07:05:18] Production.INFO: ProcessCDR(1,14097871,1,1,2) [2024-12-25 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097871', 'tblTempUsageDetail_20' ) start [2024-12-25 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097871', 'tblTempUsageDetail_20' ) end [2024-12-25 07:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:05:21] Production.INFO: ==20631== Releasing lock... [2024-12-25 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:05:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:06:05 [end_date_ymd] => 2024-12-25 07:06:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:06:05' and `end` < '2024-12-25 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-25 07:06:18] Production.INFO: count ==13 [2024-12-25 07:06:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:06:05 - End Time 2024-12-25 07:06:05 [2024-12-25 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097876', 'tblTempUsageDetail_20' ) start [2024-12-25 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097876', 'tblTempUsageDetail_20' ) end [2024-12-25 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097876', 'tblTempVendorCDR_20' ) start [2024-12-25 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097876', 'tblTempVendorCDR_20' ) end [2024-12-25 07:06:18] Production.INFO: ProcessCDR(1,14097876,1,1,2) [2024-12-25 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097876', 'tblTempUsageDetail_20' ) start [2024-12-25 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097876', 'tblTempUsageDetail_20' ) end [2024-12-25 07:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:06:21] Production.INFO: ==20714== Releasing lock... [2024-12-25 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:06:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:07:04 [end_date_ymd] => 2024-12-25 07:07:04 [RateCDR] => 1 ) [2024-12-25 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-25 04:07:04' and `end` < '2024-12-25 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-25 07:07:18] Production.INFO: count ==13 [2024-12-25 07:07:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:07:04 - End Time 2024-12-25 07:07:04 [2024-12-25 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097881', 'tblTempUsageDetail_20' ) start [2024-12-25 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097881', 'tblTempUsageDetail_20' ) end [2024-12-25 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097881', 'tblTempVendorCDR_20' ) start [2024-12-25 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097881', 'tblTempVendorCDR_20' ) end [2024-12-25 07:07:18] Production.INFO: ProcessCDR(1,14097881,1,1,2) [2024-12-25 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097881', 'tblTempUsageDetail_20' ) start [2024-12-25 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097881', 'tblTempUsageDetail_20' ) end [2024-12-25 07:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:07:21] Production.INFO: ==20791== Releasing lock... [2024-12-25 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:07:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:08:05 [end_date_ymd] => 2024-12-25 07:08:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:08:05' and `end` < '2024-12-25 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-25 07:08:18] Production.INFO: count ==13 [2024-12-25 07:08:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:08:05 - End Time 2024-12-25 07:08:05 [2024-12-25 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097886', 'tblTempUsageDetail_20' ) start [2024-12-25 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097886', 'tblTempUsageDetail_20' ) end [2024-12-25 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097886', 'tblTempVendorCDR_20' ) start [2024-12-25 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097886', 'tblTempVendorCDR_20' ) end [2024-12-25 07:08:18] Production.INFO: ProcessCDR(1,14097886,1,1,2) [2024-12-25 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097886', 'tblTempUsageDetail_20' ) start [2024-12-25 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097886', 'tblTempUsageDetail_20' ) end [2024-12-25 07:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:08:21] Production.INFO: ==20994== Releasing lock... [2024-12-25 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:08:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:09:06 [end_date_ymd] => 2024-12-25 07:09:06 [RateCDR] => 1 ) [2024-12-25 07:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:09:06' and `end` < '2024-12-25 07:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:09:19] Production.INFO: count ==13 [2024-12-25 07:09:19] Production.ERROR: pbx CDR StartTime 2024-12-25 04:09:06 - End Time 2024-12-25 07:09:06 [2024-12-25 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097891', 'tblTempUsageDetail_20' ) start [2024-12-25 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097891', 'tblTempUsageDetail_20' ) end [2024-12-25 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097891', 'tblTempVendorCDR_20' ) start [2024-12-25 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097891', 'tblTempVendorCDR_20' ) end [2024-12-25 07:09:19] Production.INFO: ProcessCDR(1,14097891,1,1,2) [2024-12-25 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097891', 'tblTempUsageDetail_20' ) start [2024-12-25 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097891', 'tblTempUsageDetail_20' ) end [2024-12-25 07:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:09:22] Production.INFO: ==21081== Releasing lock... [2024-12-25 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:09:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:10:06 [end_date_ymd] => 2024-12-25 07:10:06 [RateCDR] => 1 ) [2024-12-25 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:10:06' and `end` < '2024-12-25 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:10:18] Production.INFO: count ==13 [2024-12-25 07:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:10:06 - End Time 2024-12-25 07:10:06 [2024-12-25 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097897', 'tblTempUsageDetail_20' ) start [2024-12-25 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097897', 'tblTempUsageDetail_20' ) end [2024-12-25 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097897', 'tblTempVendorCDR_20' ) start [2024-12-25 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097897', 'tblTempVendorCDR_20' ) end [2024-12-25 07:10:18] Production.INFO: ProcessCDR(1,14097897,1,1,2) [2024-12-25 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097897', 'tblTempUsageDetail_20' ) start [2024-12-25 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097897', 'tblTempUsageDetail_20' ) end [2024-12-25 07:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:10:22] Production.INFO: ==21168== Releasing lock... [2024-12-25 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:10:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:11:05 [end_date_ymd] => 2024-12-25 07:11:05 [RateCDR] => 1 ) [2024-12-25 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:11:05' and `end` < '2024-12-25 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:11:19] Production.INFO: count ==13 [2024-12-25 07:11:19] Production.ERROR: pbx CDR StartTime 2024-12-25 04:11:05 - End Time 2024-12-25 07:11:05 [2024-12-25 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097902', 'tblTempUsageDetail_20' ) start [2024-12-25 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097902', 'tblTempUsageDetail_20' ) end [2024-12-25 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097902', 'tblTempVendorCDR_20' ) start [2024-12-25 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097902', 'tblTempVendorCDR_20' ) end [2024-12-25 07:11:19] Production.INFO: ProcessCDR(1,14097902,1,1,2) [2024-12-25 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097902', 'tblTempUsageDetail_20' ) start [2024-12-25 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097902', 'tblTempUsageDetail_20' ) end [2024-12-25 07:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:11:22] Production.INFO: ==21252== Releasing lock... [2024-12-25 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:11:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:12:05 [end_date_ymd] => 2024-12-25 07:12:05 [RateCDR] => 1 ) [2024-12-25 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:12:05' and `end` < '2024-12-25 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:12:18] Production.INFO: count ==13 [2024-12-25 07:12:19] Production.ERROR: pbx CDR StartTime 2024-12-25 04:12:05 - End Time 2024-12-25 07:12:05 [2024-12-25 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097907', 'tblTempUsageDetail_20' ) start [2024-12-25 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097907', 'tblTempUsageDetail_20' ) end [2024-12-25 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097907', 'tblTempVendorCDR_20' ) start [2024-12-25 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097907', 'tblTempVendorCDR_20' ) end [2024-12-25 07:12:19] Production.INFO: ProcessCDR(1,14097907,1,1,2) [2024-12-25 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097907', 'tblTempUsageDetail_20' ) start [2024-12-25 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097907', 'tblTempUsageDetail_20' ) end [2024-12-25 07:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:12:22] Production.INFO: ==21414== Releasing lock... [2024-12-25 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:12:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:13:06 [end_date_ymd] => 2024-12-25 07:13:06 [RateCDR] => 1 ) [2024-12-25 07: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-25 04:13:06' and `end` < '2024-12-25 07: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-25 07:13:18] Production.INFO: count ==13 [2024-12-25 07:13:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:13:06 - End Time 2024-12-25 07:13:06 [2024-12-25 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097912', 'tblTempUsageDetail_20' ) start [2024-12-25 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097912', 'tblTempUsageDetail_20' ) end [2024-12-25 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097912', 'tblTempVendorCDR_20' ) start [2024-12-25 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097912', 'tblTempVendorCDR_20' ) end [2024-12-25 07:13:18] Production.INFO: ProcessCDR(1,14097912,1,1,2) [2024-12-25 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097912', 'tblTempUsageDetail_20' ) start [2024-12-25 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097912', 'tblTempUsageDetail_20' ) end [2024-12-25 07:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:13:22] Production.INFO: ==21497== Releasing lock... [2024-12-25 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:13:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:14:05 [end_date_ymd] => 2024-12-25 07:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:14:05' and `end` < '2024-12-25 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-25 07:14:19] Production.INFO: count ==13 [2024-12-25 07:14:19] Production.ERROR: pbx CDR StartTime 2024-12-25 04:14:05 - End Time 2024-12-25 07:14:05 [2024-12-25 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097917', 'tblTempUsageDetail_20' ) start [2024-12-25 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097917', 'tblTempUsageDetail_20' ) end [2024-12-25 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097917', 'tblTempVendorCDR_20' ) start [2024-12-25 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097917', 'tblTempVendorCDR_20' ) end [2024-12-25 07:14:19] Production.INFO: ProcessCDR(1,14097917,1,1,2) [2024-12-25 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097917', 'tblTempUsageDetail_20' ) start [2024-12-25 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097917', 'tblTempUsageDetail_20' ) end [2024-12-25 07:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:14:22] Production.INFO: ==21579== Releasing lock... [2024-12-25 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:14:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:15:05 [end_date_ymd] => 2024-12-25 07:15:05 [RateCDR] => 1 ) [2024-12-25 07: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-25 04:15:05' and `end` < '2024-12-25 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:15:19] Production.INFO: count ==13 [2024-12-25 07:15:19] Production.ERROR: pbx CDR StartTime 2024-12-25 04:15:05 - End Time 2024-12-25 07:15:05 [2024-12-25 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097922', 'tblTempUsageDetail_20' ) start [2024-12-25 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097922', 'tblTempUsageDetail_20' ) end [2024-12-25 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097922', 'tblTempVendorCDR_20' ) start [2024-12-25 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097922', 'tblTempVendorCDR_20' ) end [2024-12-25 07:15:19] Production.INFO: ProcessCDR(1,14097922,1,1,2) [2024-12-25 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097922', 'tblTempUsageDetail_20' ) start [2024-12-25 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097922', 'tblTempUsageDetail_20' ) end [2024-12-25 07:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:15:23] Production.INFO: ==21743== Releasing lock... [2024-12-25 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:15:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:16:04 [end_date_ymd] => 2024-12-25 07:16:04 [RateCDR] => 1 ) [2024-12-25 07: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-25 04:16:04' and `end` < '2024-12-25 07: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-25 07:16:19] Production.INFO: count ==13 [2024-12-25 07:16:19] Production.ERROR: pbx CDR StartTime 2024-12-25 04:16:04 - End Time 2024-12-25 07:16:04 [2024-12-25 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097927', 'tblTempUsageDetail_20' ) start [2024-12-25 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097927', 'tblTempUsageDetail_20' ) end [2024-12-25 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097927', 'tblTempVendorCDR_20' ) start [2024-12-25 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097927', 'tblTempVendorCDR_20' ) end [2024-12-25 07:16:19] Production.INFO: ProcessCDR(1,14097927,1,1,2) [2024-12-25 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097927', 'tblTempUsageDetail_20' ) start [2024-12-25 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097927', 'tblTempUsageDetail_20' ) end [2024-12-25 07:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:16:22] Production.INFO: ==21824== Releasing lock... [2024-12-25 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:16:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:17:05 [end_date_ymd] => 2024-12-25 07:17:05 [RateCDR] => 1 ) [2024-12-25 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:17:05' and `end` < '2024-12-25 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:17:19] Production.INFO: count ==13 [2024-12-25 07:17:19] Production.ERROR: pbx CDR StartTime 2024-12-25 04:17:05 - End Time 2024-12-25 07:17:05 [2024-12-25 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097932', 'tblTempUsageDetail_20' ) start [2024-12-25 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097932', 'tblTempUsageDetail_20' ) end [2024-12-25 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097932', 'tblTempVendorCDR_20' ) start [2024-12-25 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097932', 'tblTempVendorCDR_20' ) end [2024-12-25 07:17:19] Production.INFO: ProcessCDR(1,14097932,1,1,2) [2024-12-25 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097932', 'tblTempUsageDetail_20' ) start [2024-12-25 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097932', 'tblTempUsageDetail_20' ) end [2024-12-25 07:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:17:22] Production.INFO: ==21904== Releasing lock... [2024-12-25 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:17:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:18:04 [end_date_ymd] => 2024-12-25 07:18:04 [RateCDR] => 1 ) [2024-12-25 07: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-25 04:18:04' and `end` < '2024-12-25 07: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-25 07:18:18] Production.INFO: count ==13 [2024-12-25 07:18:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:18:04 - End Time 2024-12-25 07:18:04 [2024-12-25 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097937', 'tblTempUsageDetail_20' ) start [2024-12-25 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097937', 'tblTempUsageDetail_20' ) end [2024-12-25 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097937', 'tblTempVendorCDR_20' ) start [2024-12-25 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097937', 'tblTempVendorCDR_20' ) end [2024-12-25 07:18:18] Production.INFO: ProcessCDR(1,14097937,1,1,2) [2024-12-25 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097937', 'tblTempUsageDetail_20' ) start [2024-12-25 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097937', 'tblTempUsageDetail_20' ) end [2024-12-25 07:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:18:21] Production.INFO: ==21986== Releasing lock... [2024-12-25 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:18:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:19:04 [end_date_ymd] => 2024-12-25 07:19:04 [RateCDR] => 1 ) [2024-12-25 07:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:19:04' and `end` < '2024-12-25 07:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:19:17] Production.INFO: count ==13 [2024-12-25 07:19:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:19:04 - End Time 2024-12-25 07:19:04 [2024-12-25 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097942', 'tblTempUsageDetail_20' ) start [2024-12-25 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097942', 'tblTempUsageDetail_20' ) end [2024-12-25 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097942', 'tblTempVendorCDR_20' ) start [2024-12-25 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097942', 'tblTempVendorCDR_20' ) end [2024-12-25 07:19:17] Production.INFO: ProcessCDR(1,14097942,1,1,2) [2024-12-25 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097942', 'tblTempUsageDetail_20' ) start [2024-12-25 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097942', 'tblTempUsageDetail_20' ) end [2024-12-25 07:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:19:20] Production.INFO: ==22085== Releasing lock... [2024-12-25 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:19:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:20:06 [end_date_ymd] => 2024-12-25 07:20:06 [RateCDR] => 1 ) [2024-12-25 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:20:06' and `end` < '2024-12-25 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:20:19] Production.INFO: count ==14 [2024-12-25 07:20:19] Production.ERROR: pbx CDR StartTime 2024-12-25 04:20:06 - End Time 2024-12-25 07:20:06 [2024-12-25 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097948', 'tblTempUsageDetail_20' ) start [2024-12-25 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097948', 'tblTempUsageDetail_20' ) end [2024-12-25 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097948', 'tblTempVendorCDR_20' ) start [2024-12-25 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097948', 'tblTempVendorCDR_20' ) end [2024-12-25 07:20:19] Production.INFO: ProcessCDR(1,14097948,1,1,2) [2024-12-25 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097948', 'tblTempUsageDetail_20' ) start [2024-12-25 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097948', 'tblTempUsageDetail_20' ) end [2024-12-25 07:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:20:23] Production.INFO: ==22169== Releasing lock... [2024-12-25 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:20:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:21:05 [end_date_ymd] => 2024-12-25 07:21:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:21:05' and `end` < '2024-12-25 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-25 07:21:21] Production.INFO: count ==14 [2024-12-25 07:21:21] Production.ERROR: pbx CDR StartTime 2024-12-25 04:21:05 - End Time 2024-12-25 07:21:05 [2024-12-25 07:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097953', 'tblTempUsageDetail_20' ) start [2024-12-25 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097953', 'tblTempUsageDetail_20' ) end [2024-12-25 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097953', 'tblTempVendorCDR_20' ) start [2024-12-25 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097953', 'tblTempVendorCDR_20' ) end [2024-12-25 07:21:21] Production.INFO: ProcessCDR(1,14097953,1,1,2) [2024-12-25 07:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097953', 'tblTempUsageDetail_20' ) start [2024-12-25 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097953', 'tblTempUsageDetail_20' ) end [2024-12-25 07:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:21:24] Production.INFO: ==22251== Releasing lock... [2024-12-25 07:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:21:24] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:22:06 [end_date_ymd] => 2024-12-25 07:22:06 [RateCDR] => 1 ) [2024-12-25 07:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:22:06' and `end` < '2024-12-25 07:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:22:19] Production.INFO: count ==14 [2024-12-25 07:22:19] Production.ERROR: pbx CDR StartTime 2024-12-25 04:22:06 - End Time 2024-12-25 07:22:06 [2024-12-25 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097958', 'tblTempUsageDetail_20' ) start [2024-12-25 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097958', 'tblTempUsageDetail_20' ) end [2024-12-25 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097958', 'tblTempVendorCDR_20' ) start [2024-12-25 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097958', 'tblTempVendorCDR_20' ) end [2024-12-25 07:22:19] Production.INFO: ProcessCDR(1,14097958,1,1,2) [2024-12-25 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097958', 'tblTempUsageDetail_20' ) start [2024-12-25 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097958', 'tblTempUsageDetail_20' ) end [2024-12-25 07:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:22:22] Production.INFO: ==22332== Releasing lock... [2024-12-25 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:22:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:23:05 [end_date_ymd] => 2024-12-25 07:23:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:23:05' and `end` < '2024-12-25 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-25 07:23:17] Production.INFO: count ==14 [2024-12-25 07:23:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:23:05 - End Time 2024-12-25 07:23:05 [2024-12-25 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097963', 'tblTempUsageDetail_20' ) start [2024-12-25 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097963', 'tblTempUsageDetail_20' ) end [2024-12-25 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097963', 'tblTempVendorCDR_20' ) start [2024-12-25 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097963', 'tblTempVendorCDR_20' ) end [2024-12-25 07:23:17] Production.INFO: ProcessCDR(1,14097963,1,1,2) [2024-12-25 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097963', 'tblTempUsageDetail_20' ) start [2024-12-25 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097963', 'tblTempUsageDetail_20' ) end [2024-12-25 07:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:23:20] Production.INFO: ==22452== Releasing lock... [2024-12-25 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:23:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:24:05 [end_date_ymd] => 2024-12-25 07:24:05 [RateCDR] => 1 ) [2024-12-25 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:24:05' and `end` < '2024-12-25 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:24:18] Production.INFO: count ==14 [2024-12-25 07:24:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:24:05 - End Time 2024-12-25 07:24:05 [2024-12-25 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097968', 'tblTempUsageDetail_20' ) start [2024-12-25 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097968', 'tblTempUsageDetail_20' ) end [2024-12-25 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097968', 'tblTempVendorCDR_20' ) start [2024-12-25 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097968', 'tblTempVendorCDR_20' ) end [2024-12-25 07:24:18] Production.INFO: ProcessCDR(1,14097968,1,1,2) [2024-12-25 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097968', 'tblTempUsageDetail_20' ) start [2024-12-25 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097968', 'tblTempUsageDetail_20' ) end [2024-12-25 07:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:24:21] Production.INFO: ==22533== Releasing lock... [2024-12-25 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:24:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:25:05 [end_date_ymd] => 2024-12-25 07:25:05 [RateCDR] => 1 ) [2024-12-25 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:25:05' and `end` < '2024-12-25 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:25:18] Production.INFO: count ==14 [2024-12-25 07:25:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:25:05 - End Time 2024-12-25 07:25:05 [2024-12-25 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097973', 'tblTempUsageDetail_20' ) start [2024-12-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097973', 'tblTempUsageDetail_20' ) end [2024-12-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097973', 'tblTempVendorCDR_20' ) start [2024-12-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097973', 'tblTempVendorCDR_20' ) end [2024-12-25 07:25:18] Production.INFO: ProcessCDR(1,14097973,1,1,2) [2024-12-25 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097973', 'tblTempUsageDetail_20' ) start [2024-12-25 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097973', 'tblTempUsageDetail_20' ) end [2024-12-25 07:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:25:21] Production.INFO: ==22615== Releasing lock... [2024-12-25 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:25:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:26:05 [end_date_ymd] => 2024-12-25 07:26:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:26:05' and `end` < '2024-12-25 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-25 07:26:17] Production.INFO: count ==14 [2024-12-25 07:26:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:26:05 - End Time 2024-12-25 07:26:05 [2024-12-25 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097978', 'tblTempUsageDetail_20' ) start [2024-12-25 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097978', 'tblTempUsageDetail_20' ) end [2024-12-25 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097978', 'tblTempVendorCDR_20' ) start [2024-12-25 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097978', 'tblTempVendorCDR_20' ) end [2024-12-25 07:26:17] Production.INFO: ProcessCDR(1,14097978,1,1,2) [2024-12-25 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097978', 'tblTempUsageDetail_20' ) start [2024-12-25 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097978', 'tblTempUsageDetail_20' ) end [2024-12-25 07:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:26:21] Production.INFO: ==22692== Releasing lock... [2024-12-25 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:26:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:27:05 [end_date_ymd] => 2024-12-25 07:27:05 [RateCDR] => 1 ) [2024-12-25 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:27:05' and `end` < '2024-12-25 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:27:17] Production.INFO: count ==14 [2024-12-25 07:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:27:05 - End Time 2024-12-25 07:27:05 [2024-12-25 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097983', 'tblTempUsageDetail_20' ) start [2024-12-25 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097983', 'tblTempUsageDetail_20' ) end [2024-12-25 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097983', 'tblTempVendorCDR_20' ) start [2024-12-25 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097983', 'tblTempVendorCDR_20' ) end [2024-12-25 07:27:18] Production.INFO: ProcessCDR(1,14097983,1,1,2) [2024-12-25 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097983', 'tblTempUsageDetail_20' ) start [2024-12-25 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097983', 'tblTempUsageDetail_20' ) end [2024-12-25 07:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:27:21] Production.INFO: ==22779== Releasing lock... [2024-12-25 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:27:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:28:06 [end_date_ymd] => 2024-12-25 07:28:06 [RateCDR] => 1 ) [2024-12-25 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:28:06' and `end` < '2024-12-25 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:28:18] Production.INFO: count ==14 [2024-12-25 07:28:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:28:06 - End Time 2024-12-25 07:28:06 [2024-12-25 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097988', 'tblTempUsageDetail_20' ) start [2024-12-25 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097988', 'tblTempUsageDetail_20' ) end [2024-12-25 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097988', 'tblTempVendorCDR_20' ) start [2024-12-25 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097988', 'tblTempVendorCDR_20' ) end [2024-12-25 07:28:18] Production.INFO: ProcessCDR(1,14097988,1,1,2) [2024-12-25 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097988', 'tblTempUsageDetail_20' ) start [2024-12-25 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097988', 'tblTempUsageDetail_20' ) end [2024-12-25 07:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:28:21] Production.INFO: ==22858== Releasing lock... [2024-12-25 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:29:05 [end_date_ymd] => 2024-12-25 07:29:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:29:05' and `end` < '2024-12-25 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-25 07:29:17] Production.INFO: count ==15 [2024-12-25 07:29:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:29:05 - End Time 2024-12-25 07:29:05 [2024-12-25 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097993', 'tblTempUsageDetail_20' ) start [2024-12-25 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097993', 'tblTempUsageDetail_20' ) end [2024-12-25 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097993', 'tblTempVendorCDR_20' ) start [2024-12-25 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097993', 'tblTempVendorCDR_20' ) end [2024-12-25 07:29:17] Production.INFO: ProcessCDR(1,14097993,1,1,2) [2024-12-25 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097993', 'tblTempUsageDetail_20' ) start [2024-12-25 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097993', 'tblTempUsageDetail_20' ) end [2024-12-25 07:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:29:21] Production.INFO: ==22939== Releasing lock... [2024-12-25 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:29:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:30:06 [end_date_ymd] => 2024-12-25 07:30:06 [RateCDR] => 1 ) [2024-12-25 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-25 04:30:06' and `end` < '2024-12-25 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-25 07:30:18] Production.INFO: count ==18 [2024-12-25 07:30:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:30:06 - End Time 2024-12-25 07:30:06 [2024-12-25 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097998', 'tblTempUsageDetail_20' ) start [2024-12-25 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14097998', 'tblTempUsageDetail_20' ) end [2024-12-25 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097998', 'tblTempVendorCDR_20' ) start [2024-12-25 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14097998', 'tblTempVendorCDR_20' ) end [2024-12-25 07:30:18] Production.INFO: ProcessCDR(1,14097998,1,1,2) [2024-12-25 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14097998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14097998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14097998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14097998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097998', 'tblTempUsageDetail_20' ) start [2024-12-25 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14097998', 'tblTempUsageDetail_20' ) end [2024-12-25 07:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:30:21] Production.INFO: ==23019== Releasing lock... [2024-12-25 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:31:04 [end_date_ymd] => 2024-12-25 07:31:04 [RateCDR] => 1 ) [2024-12-25 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-25 04:31:04' and `end` < '2024-12-25 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-25 07:31:17] Production.INFO: count ==18 [2024-12-25 07:31:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:31:04 - End Time 2024-12-25 07:31:04 [2024-12-25 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098004', 'tblTempUsageDetail_20' ) start [2024-12-25 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098004', 'tblTempUsageDetail_20' ) end [2024-12-25 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098004', 'tblTempVendorCDR_20' ) start [2024-12-25 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098004', 'tblTempVendorCDR_20' ) end [2024-12-25 07:31:17] Production.INFO: ProcessCDR(1,14098004,1,1,2) [2024-12-25 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098004', 'tblTempUsageDetail_20' ) start [2024-12-25 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098004', 'tblTempUsageDetail_20' ) end [2024-12-25 07:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:31:20] Production.INFO: ==23105== Releasing lock... [2024-12-25 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:31:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:32:05 [end_date_ymd] => 2024-12-25 07:32:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:32:05' and `end` < '2024-12-25 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-25 07:32:17] Production.INFO: count ==19 [2024-12-25 07:32:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:32:05 - End Time 2024-12-25 07:32:05 [2024-12-25 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098009', 'tblTempUsageDetail_20' ) start [2024-12-25 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098009', 'tblTempUsageDetail_20' ) end [2024-12-25 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098009', 'tblTempVendorCDR_20' ) start [2024-12-25 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098009', 'tblTempVendorCDR_20' ) end [2024-12-25 07:32:17] Production.INFO: ProcessCDR(1,14098009,1,1,2) [2024-12-25 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098009', 'tblTempUsageDetail_20' ) start [2024-12-25 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098009', 'tblTempUsageDetail_20' ) end [2024-12-25 07:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:32:22] Production.INFO: ==23182== Releasing lock... [2024-12-25 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:32:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:33:04 [end_date_ymd] => 2024-12-25 07:33:04 [RateCDR] => 1 ) [2024-12-25 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-25 04:33:04' and `end` < '2024-12-25 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-25 07:33:18] Production.INFO: count ==19 [2024-12-25 07:33:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:33:04 - End Time 2024-12-25 07:33:04 [2024-12-25 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098014', 'tblTempUsageDetail_20' ) start [2024-12-25 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098014', 'tblTempUsageDetail_20' ) end [2024-12-25 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098014', 'tblTempVendorCDR_20' ) start [2024-12-25 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098014', 'tblTempVendorCDR_20' ) end [2024-12-25 07:33:18] Production.INFO: ProcessCDR(1,14098014,1,1,2) [2024-12-25 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098014', 'tblTempUsageDetail_20' ) start [2024-12-25 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098014', 'tblTempUsageDetail_20' ) end [2024-12-25 07:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:33:21] Production.INFO: ==23266== Releasing lock... [2024-12-25 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:33:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:34:05 [end_date_ymd] => 2024-12-25 07:34:05 [RateCDR] => 1 ) [2024-12-25 07: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-25 04:34:05' and `end` < '2024-12-25 07: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-25 07:34:18] Production.INFO: count ==19 [2024-12-25 07:34:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:34:05 - End Time 2024-12-25 07:34:05 [2024-12-25 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098019', 'tblTempUsageDetail_20' ) start [2024-12-25 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098019', 'tblTempUsageDetail_20' ) end [2024-12-25 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098019', 'tblTempVendorCDR_20' ) start [2024-12-25 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098019', 'tblTempVendorCDR_20' ) end [2024-12-25 07:34:18] Production.INFO: ProcessCDR(1,14098019,1,1,2) [2024-12-25 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098019', 'tblTempUsageDetail_20' ) start [2024-12-25 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098019', 'tblTempUsageDetail_20' ) end [2024-12-25 07:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:34:21] Production.INFO: ==23347== Releasing lock... [2024-12-25 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:34:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:35:04 [end_date_ymd] => 2024-12-25 07:35:04 [RateCDR] => 1 ) [2024-12-25 07: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-25 04:35:04' and `end` < '2024-12-25 07: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-25 07:35:17] Production.INFO: count ==19 [2024-12-25 07:35:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:35:04 - End Time 2024-12-25 07:35:04 [2024-12-25 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098024', 'tblTempUsageDetail_20' ) start [2024-12-25 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098024', 'tblTempUsageDetail_20' ) end [2024-12-25 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098024', 'tblTempVendorCDR_20' ) start [2024-12-25 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098024', 'tblTempVendorCDR_20' ) end [2024-12-25 07:35:17] Production.INFO: ProcessCDR(1,14098024,1,1,2) [2024-12-25 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098024', 'tblTempUsageDetail_20' ) start [2024-12-25 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098024', 'tblTempUsageDetail_20' ) end [2024-12-25 07:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:35:20] Production.INFO: ==23433== Releasing lock... [2024-12-25 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:35:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:36:05 [end_date_ymd] => 2024-12-25 07:36:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:36:05' and `end` < '2024-12-25 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:36:17] Production.INFO: count ==19 [2024-12-25 07:36:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:36:05 - End Time 2024-12-25 07:36:05 [2024-12-25 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098029', 'tblTempUsageDetail_20' ) start [2024-12-25 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098029', 'tblTempUsageDetail_20' ) end [2024-12-25 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098029', 'tblTempVendorCDR_20' ) start [2024-12-25 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098029', 'tblTempVendorCDR_20' ) end [2024-12-25 07:36:17] Production.INFO: ProcessCDR(1,14098029,1,1,2) [2024-12-25 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098029', 'tblTempUsageDetail_20' ) start [2024-12-25 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098029', 'tblTempUsageDetail_20' ) end [2024-12-25 07:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:36:20] Production.INFO: ==23519== Releasing lock... [2024-12-25 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:36:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:37:04 [end_date_ymd] => 2024-12-25 07:37:04 [RateCDR] => 1 ) [2024-12-25 07: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-25 04:37:04' and `end` < '2024-12-25 07: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-25 07:37:17] Production.INFO: count ==19 [2024-12-25 07:37:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:37:04 - End Time 2024-12-25 07:37:04 [2024-12-25 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098034', 'tblTempUsageDetail_20' ) start [2024-12-25 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098034', 'tblTempUsageDetail_20' ) end [2024-12-25 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098034', 'tblTempVendorCDR_20' ) start [2024-12-25 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098034', 'tblTempVendorCDR_20' ) end [2024-12-25 07:37:17] Production.INFO: ProcessCDR(1,14098034,1,1,2) [2024-12-25 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098034', 'tblTempUsageDetail_20' ) start [2024-12-25 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098034', 'tblTempUsageDetail_20' ) end [2024-12-25 07:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:37:20] Production.INFO: ==23602== Releasing lock... [2024-12-25 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:37:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:38:05 [end_date_ymd] => 2024-12-25 07:38:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:38:05' and `end` < '2024-12-25 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-25 07:38:17] Production.INFO: count ==19 [2024-12-25 07:38:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:38:05 - End Time 2024-12-25 07:38:05 [2024-12-25 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098039', 'tblTempUsageDetail_20' ) start [2024-12-25 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098039', 'tblTempUsageDetail_20' ) end [2024-12-25 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098039', 'tblTempVendorCDR_20' ) start [2024-12-25 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098039', 'tblTempVendorCDR_20' ) end [2024-12-25 07:38:17] Production.INFO: ProcessCDR(1,14098039,1,1,2) [2024-12-25 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098039', 'tblTempUsageDetail_20' ) start [2024-12-25 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098039', 'tblTempUsageDetail_20' ) end [2024-12-25 07:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:38:20] Production.INFO: ==23686== Releasing lock... [2024-12-25 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:38:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:39:06 [end_date_ymd] => 2024-12-25 07:39:06 [RateCDR] => 1 ) [2024-12-25 07:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:39:06' and `end` < '2024-12-25 07:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:39:18] Production.INFO: count ==19 [2024-12-25 07:39:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:39:06 - End Time 2024-12-25 07:39:06 [2024-12-25 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098044', 'tblTempUsageDetail_20' ) start [2024-12-25 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098044', 'tblTempUsageDetail_20' ) end [2024-12-25 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098044', 'tblTempVendorCDR_20' ) start [2024-12-25 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098044', 'tblTempVendorCDR_20' ) end [2024-12-25 07:39:18] Production.INFO: ProcessCDR(1,14098044,1,1,2) [2024-12-25 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098044', 'tblTempUsageDetail_20' ) start [2024-12-25 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098044', 'tblTempUsageDetail_20' ) end [2024-12-25 07:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:39:21] Production.INFO: ==23807== Releasing lock... [2024-12-25 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:39:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:40:05 [end_date_ymd] => 2024-12-25 07:40:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:40:05' and `end` < '2024-12-25 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-25 07:40:18] Production.INFO: count ==19 [2024-12-25 07:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:40:05 - End Time 2024-12-25 07:40:05 [2024-12-25 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098050', 'tblTempUsageDetail_20' ) start [2024-12-25 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098050', 'tblTempUsageDetail_20' ) end [2024-12-25 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098050', 'tblTempVendorCDR_20' ) start [2024-12-25 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098050', 'tblTempVendorCDR_20' ) end [2024-12-25 07:40:18] Production.INFO: ProcessCDR(1,14098050,1,1,2) [2024-12-25 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098050', 'tblTempUsageDetail_20' ) start [2024-12-25 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098050', 'tblTempUsageDetail_20' ) end [2024-12-25 07:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:40:21] Production.INFO: ==23889== Releasing lock... [2024-12-25 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:40:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:41:05 [end_date_ymd] => 2024-12-25 07:41:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:41:05' and `end` < '2024-12-25 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-25 07:41:17] Production.INFO: count ==19 [2024-12-25 07:41:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:41:05 - End Time 2024-12-25 07:41:05 [2024-12-25 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098055', 'tblTempUsageDetail_20' ) start [2024-12-25 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098055', 'tblTempUsageDetail_20' ) end [2024-12-25 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098055', 'tblTempVendorCDR_20' ) start [2024-12-25 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098055', 'tblTempVendorCDR_20' ) end [2024-12-25 07:41:17] Production.INFO: ProcessCDR(1,14098055,1,1,2) [2024-12-25 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098055', 'tblTempUsageDetail_20' ) start [2024-12-25 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098055', 'tblTempUsageDetail_20' ) end [2024-12-25 07:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:41:20] Production.INFO: ==23974== Releasing lock... [2024-12-25 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:41:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:42:05 [end_date_ymd] => 2024-12-25 07:42:05 [RateCDR] => 1 ) [2024-12-25 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:42:05' and `end` < '2024-12-25 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:42:17] Production.INFO: count ==19 [2024-12-25 07:42:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:42:05 - End Time 2024-12-25 07:42:05 [2024-12-25 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098060', 'tblTempUsageDetail_20' ) start [2024-12-25 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098060', 'tblTempUsageDetail_20' ) end [2024-12-25 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098060', 'tblTempVendorCDR_20' ) start [2024-12-25 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098060', 'tblTempVendorCDR_20' ) end [2024-12-25 07:42:17] Production.INFO: ProcessCDR(1,14098060,1,1,2) [2024-12-25 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098060', 'tblTempUsageDetail_20' ) start [2024-12-25 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098060', 'tblTempUsageDetail_20' ) end [2024-12-25 07:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:42:21] Production.INFO: ==24059== Releasing lock... [2024-12-25 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:42:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:43:04 [end_date_ymd] => 2024-12-25 07:43:04 [RateCDR] => 1 ) [2024-12-25 07:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:43:04' and `end` < '2024-12-25 07:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:43:17] Production.INFO: count ==19 [2024-12-25 07:43:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:43:04 - End Time 2024-12-25 07:43:04 [2024-12-25 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098065', 'tblTempUsageDetail_20' ) start [2024-12-25 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098065', 'tblTempUsageDetail_20' ) end [2024-12-25 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098065', 'tblTempVendorCDR_20' ) start [2024-12-25 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098065', 'tblTempVendorCDR_20' ) end [2024-12-25 07:43:17] Production.INFO: ProcessCDR(1,14098065,1,1,2) [2024-12-25 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098065', 'tblTempUsageDetail_20' ) start [2024-12-25 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098065', 'tblTempUsageDetail_20' ) end [2024-12-25 07:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:43:20] Production.INFO: ==24135== Releasing lock... [2024-12-25 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:43:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:44:05 [end_date_ymd] => 2024-12-25 07:44:05 [RateCDR] => 1 ) [2024-12-25 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:44:05' and `end` < '2024-12-25 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:44:17] Production.INFO: count ==19 [2024-12-25 07:44:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:44:05 - End Time 2024-12-25 07:44:05 [2024-12-25 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098070', 'tblTempUsageDetail_20' ) start [2024-12-25 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098070', 'tblTempUsageDetail_20' ) end [2024-12-25 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098070', 'tblTempVendorCDR_20' ) start [2024-12-25 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098070', 'tblTempVendorCDR_20' ) end [2024-12-25 07:44:17] Production.INFO: ProcessCDR(1,14098070,1,1,2) [2024-12-25 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098070', 'tblTempUsageDetail_20' ) start [2024-12-25 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098070', 'tblTempUsageDetail_20' ) end [2024-12-25 07:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:44:20] Production.INFO: ==24216== Releasing lock... [2024-12-25 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:44:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:45:05 [end_date_ymd] => 2024-12-25 07:45:05 [RateCDR] => 1 ) [2024-12-25 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:45:05' and `end` < '2024-12-25 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:45:18] Production.INFO: count ==19 [2024-12-25 07:45:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:45:05 - End Time 2024-12-25 07:45:05 [2024-12-25 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098075', 'tblTempUsageDetail_20' ) start [2024-12-25 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098075', 'tblTempUsageDetail_20' ) end [2024-12-25 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098075', 'tblTempVendorCDR_20' ) start [2024-12-25 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098075', 'tblTempVendorCDR_20' ) end [2024-12-25 07:45:18] Production.INFO: ProcessCDR(1,14098075,1,1,2) [2024-12-25 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098075', 'tblTempUsageDetail_20' ) start [2024-12-25 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098075', 'tblTempUsageDetail_20' ) end [2024-12-25 07:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:45:21] Production.INFO: ==24297== Releasing lock... [2024-12-25 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:45:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:46:05 [end_date_ymd] => 2024-12-25 07:46:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:46:05' and `end` < '2024-12-25 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-25 07:46:17] Production.INFO: count ==19 [2024-12-25 07:46:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:46:05 - End Time 2024-12-25 07:46:05 [2024-12-25 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098080', 'tblTempUsageDetail_20' ) start [2024-12-25 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098080', 'tblTempUsageDetail_20' ) end [2024-12-25 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098080', 'tblTempVendorCDR_20' ) start [2024-12-25 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098080', 'tblTempVendorCDR_20' ) end [2024-12-25 07:46:17] Production.INFO: ProcessCDR(1,14098080,1,1,2) [2024-12-25 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098080', 'tblTempUsageDetail_20' ) start [2024-12-25 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098080', 'tblTempUsageDetail_20' ) end [2024-12-25 07:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:46:20] Production.INFO: ==24377== Releasing lock... [2024-12-25 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:46:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:47:05 [end_date_ymd] => 2024-12-25 07:47:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:47:05' and `end` < '2024-12-25 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-25 07:47:17] Production.INFO: count ==19 [2024-12-25 07:47:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:47:05 - End Time 2024-12-25 07:47:05 [2024-12-25 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098085', 'tblTempUsageDetail_20' ) start [2024-12-25 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098085', 'tblTempUsageDetail_20' ) end [2024-12-25 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098085', 'tblTempVendorCDR_20' ) start [2024-12-25 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098085', 'tblTempVendorCDR_20' ) end [2024-12-25 07:47:17] Production.INFO: ProcessCDR(1,14098085,1,1,2) [2024-12-25 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098085', 'tblTempUsageDetail_20' ) start [2024-12-25 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098085', 'tblTempUsageDetail_20' ) end [2024-12-25 07:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:47:20] Production.INFO: ==24458== Releasing lock... [2024-12-25 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:47:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:48:04 [end_date_ymd] => 2024-12-25 07:48:04 [RateCDR] => 1 ) [2024-12-25 07: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-25 04:48:04' and `end` < '2024-12-25 07: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-25 07:48:17] Production.INFO: count ==19 [2024-12-25 07:48:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:48:04 - End Time 2024-12-25 07:48:04 [2024-12-25 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098090', 'tblTempUsageDetail_20' ) start [2024-12-25 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098090', 'tblTempUsageDetail_20' ) end [2024-12-25 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098090', 'tblTempVendorCDR_20' ) start [2024-12-25 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098090', 'tblTempVendorCDR_20' ) end [2024-12-25 07:48:17] Production.INFO: ProcessCDR(1,14098090,1,1,2) [2024-12-25 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098090', 'tblTempUsageDetail_20' ) start [2024-12-25 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098090', 'tblTempUsageDetail_20' ) end [2024-12-25 07:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:48:20] Production.INFO: ==24542== Releasing lock... [2024-12-25 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:48:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:49:05 [end_date_ymd] => 2024-12-25 07:49:05 [RateCDR] => 1 ) [2024-12-25 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:49:05' and `end` < '2024-12-25 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:49:17] Production.INFO: count ==19 [2024-12-25 07:49:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:49:05 - End Time 2024-12-25 07:49:05 [2024-12-25 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098095', 'tblTempUsageDetail_20' ) start [2024-12-25 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098095', 'tblTempUsageDetail_20' ) end [2024-12-25 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098095', 'tblTempVendorCDR_20' ) start [2024-12-25 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098095', 'tblTempVendorCDR_20' ) end [2024-12-25 07:49:17] Production.INFO: ProcessCDR(1,14098095,1,1,2) [2024-12-25 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098095', 'tblTempUsageDetail_20' ) start [2024-12-25 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098095', 'tblTempUsageDetail_20' ) end [2024-12-25 07:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:49:20] Production.INFO: ==24627== Releasing lock... [2024-12-25 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:49:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:50:06 [end_date_ymd] => 2024-12-25 07:50:06 [RateCDR] => 1 ) [2024-12-25 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:50:06' and `end` < '2024-12-25 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:50:18] Production.INFO: count ==19 [2024-12-25 07:50:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:50:06 - End Time 2024-12-25 07:50:06 [2024-12-25 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098101', 'tblTempUsageDetail_20' ) start [2024-12-25 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098101', 'tblTempUsageDetail_20' ) end [2024-12-25 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098101', 'tblTempVendorCDR_20' ) start [2024-12-25 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098101', 'tblTempVendorCDR_20' ) end [2024-12-25 07:50:18] Production.INFO: ProcessCDR(1,14098101,1,1,2) [2024-12-25 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098101', 'tblTempUsageDetail_20' ) start [2024-12-25 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098101', 'tblTempUsageDetail_20' ) end [2024-12-25 07:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:50:21] Production.INFO: ==24712== Releasing lock... [2024-12-25 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:50:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:51:04 [end_date_ymd] => 2024-12-25 07:51:04 [RateCDR] => 1 ) [2024-12-25 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-25 04:51:04' and `end` < '2024-12-25 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-25 07:51:17] Production.INFO: count ==19 [2024-12-25 07:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:51:04 - End Time 2024-12-25 07:51:04 [2024-12-25 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098106', 'tblTempUsageDetail_20' ) start [2024-12-25 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098106', 'tblTempUsageDetail_20' ) end [2024-12-25 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098106', 'tblTempVendorCDR_20' ) start [2024-12-25 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098106', 'tblTempVendorCDR_20' ) end [2024-12-25 07:51:17] Production.INFO: ProcessCDR(1,14098106,1,1,2) [2024-12-25 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098106', 'tblTempUsageDetail_20' ) start [2024-12-25 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098106', 'tblTempUsageDetail_20' ) end [2024-12-25 07:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:51:20] Production.INFO: ==24795== Releasing lock... [2024-12-25 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:51:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:52:05 [end_date_ymd] => 2024-12-25 07:52:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:52:05' and `end` < '2024-12-25 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-25 07:52:17] Production.INFO: count ==19 [2024-12-25 07:52:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:52:05 - End Time 2024-12-25 07:52:05 [2024-12-25 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098111', 'tblTempUsageDetail_20' ) start [2024-12-25 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098111', 'tblTempUsageDetail_20' ) end [2024-12-25 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098111', 'tblTempVendorCDR_20' ) start [2024-12-25 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098111', 'tblTempVendorCDR_20' ) end [2024-12-25 07:52:17] Production.INFO: ProcessCDR(1,14098111,1,1,2) [2024-12-25 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098111', 'tblTempUsageDetail_20' ) start [2024-12-25 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098111', 'tblTempUsageDetail_20' ) end [2024-12-25 07:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:52:21] Production.INFO: ==24879== Releasing lock... [2024-12-25 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:53:04 [end_date_ymd] => 2024-12-25 07:53:04 [RateCDR] => 1 ) [2024-12-25 07: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-25 04:53:04' and `end` < '2024-12-25 07: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-25 07:53:18] Production.INFO: count ==19 [2024-12-25 07:53:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:53:04 - End Time 2024-12-25 07:53:04 [2024-12-25 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098116', 'tblTempUsageDetail_20' ) start [2024-12-25 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098116', 'tblTempUsageDetail_20' ) end [2024-12-25 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098116', 'tblTempVendorCDR_20' ) start [2024-12-25 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098116', 'tblTempVendorCDR_20' ) end [2024-12-25 07:53:18] Production.INFO: ProcessCDR(1,14098116,1,1,2) [2024-12-25 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098116', 'tblTempUsageDetail_20' ) start [2024-12-25 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098116', 'tblTempUsageDetail_20' ) end [2024-12-25 07:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:53:21] Production.INFO: ==24958== Releasing lock... [2024-12-25 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:53:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:54:05 [end_date_ymd] => 2024-12-25 07:54:05 [RateCDR] => 1 ) [2024-12-25 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-25 04:54:05' and `end` < '2024-12-25 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-25 07:54:17] Production.INFO: count ==19 [2024-12-25 07:54:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:54:05 - End Time 2024-12-25 07:54:05 [2024-12-25 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098121', 'tblTempUsageDetail_20' ) start [2024-12-25 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098121', 'tblTempUsageDetail_20' ) end [2024-12-25 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098121', 'tblTempVendorCDR_20' ) start [2024-12-25 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098121', 'tblTempVendorCDR_20' ) end [2024-12-25 07:54:17] Production.INFO: ProcessCDR(1,14098121,1,1,2) [2024-12-25 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098121', 'tblTempUsageDetail_20' ) start [2024-12-25 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098121', 'tblTempUsageDetail_20' ) end [2024-12-25 07:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:54:20] Production.INFO: ==25040== Releasing lock... [2024-12-25 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:54:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:55:04 [end_date_ymd] => 2024-12-25 07:55:04 [RateCDR] => 1 ) [2024-12-25 07: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-25 04:55:04' and `end` < '2024-12-25 07: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-25 07:55:17] Production.INFO: count ==19 [2024-12-25 07:55:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:55:04 - End Time 2024-12-25 07:55:04 [2024-12-25 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098126', 'tblTempUsageDetail_20' ) start [2024-12-25 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098126', 'tblTempUsageDetail_20' ) end [2024-12-25 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098126', 'tblTempVendorCDR_20' ) start [2024-12-25 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098126', 'tblTempVendorCDR_20' ) end [2024-12-25 07:55:17] Production.INFO: ProcessCDR(1,14098126,1,1,2) [2024-12-25 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098126', 'tblTempUsageDetail_20' ) start [2024-12-25 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098126', 'tblTempUsageDetail_20' ) end [2024-12-25 07:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:55:20] Production.INFO: ==25157== Releasing lock... [2024-12-25 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:55:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:56:05 [end_date_ymd] => 2024-12-25 07:56:05 [RateCDR] => 1 ) [2024-12-25 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:56:05' and `end` < '2024-12-25 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:56:17] Production.INFO: count ==19 [2024-12-25 07:56:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:56:05 - End Time 2024-12-25 07:56:05 [2024-12-25 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098131', 'tblTempUsageDetail_20' ) start [2024-12-25 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098131', 'tblTempUsageDetail_20' ) end [2024-12-25 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098131', 'tblTempVendorCDR_20' ) start [2024-12-25 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098131', 'tblTempVendorCDR_20' ) end [2024-12-25 07:56:17] Production.INFO: ProcessCDR(1,14098131,1,1,2) [2024-12-25 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098131', 'tblTempUsageDetail_20' ) start [2024-12-25 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098131', 'tblTempUsageDetail_20' ) end [2024-12-25 07:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:56:20] Production.INFO: ==25244== Releasing lock... [2024-12-25 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:56:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:57:04 [end_date_ymd] => 2024-12-25 07:57:04 [RateCDR] => 1 ) [2024-12-25 07: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-25 04:57:04' and `end` < '2024-12-25 07: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-25 07:57:16] Production.INFO: count ==19 [2024-12-25 07:57:16] Production.ERROR: pbx CDR StartTime 2024-12-25 04:57:04 - End Time 2024-12-25 07:57:04 [2024-12-25 07:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098136', 'tblTempUsageDetail_20' ) start [2024-12-25 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098136', 'tblTempUsageDetail_20' ) end [2024-12-25 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098136', 'tblTempVendorCDR_20' ) start [2024-12-25 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098136', 'tblTempVendorCDR_20' ) end [2024-12-25 07:57:16] Production.INFO: ProcessCDR(1,14098136,1,1,2) [2024-12-25 07:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098136', 'tblTempUsageDetail_20' ) start [2024-12-25 07:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098136', 'tblTempUsageDetail_20' ) end [2024-12-25 07:57:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:57:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:57:19] Production.INFO: ==25321== Releasing lock... [2024-12-25 07:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:57:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:58:05 [end_date_ymd] => 2024-12-25 07:58:05 [RateCDR] => 1 ) [2024-12-25 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:58:05' and `end` < '2024-12-25 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:58:17] Production.INFO: count ==19 [2024-12-25 07:58:17] Production.ERROR: pbx CDR StartTime 2024-12-25 04:58:05 - End Time 2024-12-25 07:58:05 [2024-12-25 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098141', 'tblTempUsageDetail_20' ) start [2024-12-25 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098141', 'tblTempUsageDetail_20' ) end [2024-12-25 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098141', 'tblTempVendorCDR_20' ) start [2024-12-25 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098141', 'tblTempVendorCDR_20' ) end [2024-12-25 07:58:17] Production.INFO: ProcessCDR(1,14098141,1,1,2) [2024-12-25 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098141', 'tblTempUsageDetail_20' ) start [2024-12-25 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098141', 'tblTempUsageDetail_20' ) end [2024-12-25 07:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:58:20] Production.INFO: ==25406== Releasing lock... [2024-12-25 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:58:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 04:59:06 [end_date_ymd] => 2024-12-25 07:59:06 [RateCDR] => 1 ) [2024-12-25 07:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 04:59:06' and `end` < '2024-12-25 07:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 07:59:18] Production.INFO: count ==19 [2024-12-25 07:59:18] Production.ERROR: pbx CDR StartTime 2024-12-25 04:59:06 - End Time 2024-12-25 07:59:06 [2024-12-25 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098146', 'tblTempUsageDetail_20' ) start [2024-12-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098146', 'tblTempUsageDetail_20' ) end [2024-12-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098146', 'tblTempVendorCDR_20' ) start [2024-12-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098146', 'tblTempVendorCDR_20' ) end [2024-12-25 07:59:18] Production.INFO: ProcessCDR(1,14098146,1,1,2) [2024-12-25 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098146', 'tblTempUsageDetail_20' ) start [2024-12-25 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098146', 'tblTempUsageDetail_20' ) end [2024-12-25 07:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 07:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 07:59:21] Production.INFO: ==25488== Releasing lock... [2024-12-25 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 07:59:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:00:05 [end_date_ymd] => 2024-12-25 08:00:05 [RateCDR] => 1 ) [2024-12-25 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:00:05' and `end` < '2024-12-25 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:00:18] Production.INFO: count ==19 [2024-12-25 08:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:00:05 - End Time 2024-12-25 08:00:05 [2024-12-25 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098152', 'tblTempUsageDetail_20' ) start [2024-12-25 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098152', 'tblTempUsageDetail_20' ) end [2024-12-25 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098152', 'tblTempVendorCDR_20' ) start [2024-12-25 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098152', 'tblTempVendorCDR_20' ) end [2024-12-25 08:00:18] Production.INFO: ProcessCDR(1,14098152,1,1,2) [2024-12-25 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098152', 'tblTempUsageDetail_20' ) start [2024-12-25 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098152', 'tblTempUsageDetail_20' ) end [2024-12-25 08:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:00:21] Production.INFO: ==25569== Releasing lock... [2024-12-25 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:00:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:01:05 [end_date_ymd] => 2024-12-25 08:01:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:01:05' and `end` < '2024-12-25 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-25 08:01:18] Production.INFO: count ==19 [2024-12-25 08:01:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:01:05 - End Time 2024-12-25 08:01:05 [2024-12-25 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098157', 'tblTempUsageDetail_20' ) start [2024-12-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098157', 'tblTempUsageDetail_20' ) end [2024-12-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098157', 'tblTempVendorCDR_20' ) start [2024-12-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098157', 'tblTempVendorCDR_20' ) end [2024-12-25 08:01:18] Production.INFO: ProcessCDR(1,14098157,1,1,2) [2024-12-25 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098157', 'tblTempUsageDetail_20' ) start [2024-12-25 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098157', 'tblTempUsageDetail_20' ) end [2024-12-25 08:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:01:21] Production.INFO: ==25669== Releasing lock... [2024-12-25 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:01:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:02:04 [end_date_ymd] => 2024-12-25 08:02:04 [RateCDR] => 1 ) [2024-12-25 08: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-25 05:02:04' and `end` < '2024-12-25 08: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-25 08:02:17] Production.INFO: count ==19 [2024-12-25 08:02:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:02:04 - End Time 2024-12-25 08:02:04 [2024-12-25 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098162', 'tblTempUsageDetail_20' ) start [2024-12-25 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098162', 'tblTempUsageDetail_20' ) end [2024-12-25 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098162', 'tblTempVendorCDR_20' ) start [2024-12-25 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098162', 'tblTempVendorCDR_20' ) end [2024-12-25 08:02:17] Production.INFO: ProcessCDR(1,14098162,1,1,2) [2024-12-25 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098162', 'tblTempUsageDetail_20' ) start [2024-12-25 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098162', 'tblTempUsageDetail_20' ) end [2024-12-25 08:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:02:20] Production.INFO: ==25749== Releasing lock... [2024-12-25 08:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:02:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:03:05 [end_date_ymd] => 2024-12-25 08:03:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:03:05' and `end` < '2024-12-25 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-25 08:03:18] Production.INFO: count ==19 [2024-12-25 08:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:03:05 - End Time 2024-12-25 08:03:05 [2024-12-25 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098167', 'tblTempUsageDetail_20' ) start [2024-12-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098167', 'tblTempUsageDetail_20' ) end [2024-12-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098167', 'tblTempVendorCDR_20' ) start [2024-12-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098167', 'tblTempVendorCDR_20' ) end [2024-12-25 08:03:18] Production.INFO: ProcessCDR(1,14098167,1,1,2) [2024-12-25 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098167', 'tblTempUsageDetail_20' ) start [2024-12-25 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098167', 'tblTempUsageDetail_20' ) end [2024-12-25 08:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:03:21] Production.INFO: ==25831== Releasing lock... [2024-12-25 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:03:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:04:05 [end_date_ymd] => 2024-12-25 08:04:05 [RateCDR] => 1 ) [2024-12-25 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:04:05' and `end` < '2024-12-25 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:04:17] Production.INFO: count ==19 [2024-12-25 08:04:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:04:05 - End Time 2024-12-25 08:04:05 [2024-12-25 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098172', 'tblTempUsageDetail_20' ) start [2024-12-25 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098172', 'tblTempUsageDetail_20' ) end [2024-12-25 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098172', 'tblTempVendorCDR_20' ) start [2024-12-25 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098172', 'tblTempVendorCDR_20' ) end [2024-12-25 08:04:17] Production.INFO: ProcessCDR(1,14098172,1,1,2) [2024-12-25 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098172', 'tblTempUsageDetail_20' ) start [2024-12-25 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098172', 'tblTempUsageDetail_20' ) end [2024-12-25 08:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:04:20] Production.INFO: ==25912== Releasing lock... [2024-12-25 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:04:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:05:05 [end_date_ymd] => 2024-12-25 08:05:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:05:05' and `end` < '2024-12-25 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-25 08:05:17] Production.INFO: count ==19 [2024-12-25 08:05:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:05:05 - End Time 2024-12-25 08:05:05 [2024-12-25 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098177', 'tblTempUsageDetail_20' ) start [2024-12-25 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098177', 'tblTempUsageDetail_20' ) end [2024-12-25 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098177', 'tblTempVendorCDR_20' ) start [2024-12-25 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098177', 'tblTempVendorCDR_20' ) end [2024-12-25 08:05:17] Production.INFO: ProcessCDR(1,14098177,1,1,2) [2024-12-25 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098177', 'tblTempUsageDetail_20' ) start [2024-12-25 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098177', 'tblTempUsageDetail_20' ) end [2024-12-25 08:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:05:20] Production.INFO: ==25993== Releasing lock... [2024-12-25 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:05:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:06:05 [end_date_ymd] => 2024-12-25 08:06:05 [RateCDR] => 1 ) [2024-12-25 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:06:05' and `end` < '2024-12-25 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:06:18] Production.INFO: count ==19 [2024-12-25 08:06:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:06:05 - End Time 2024-12-25 08:06:05 [2024-12-25 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098182', 'tblTempUsageDetail_20' ) start [2024-12-25 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098182', 'tblTempUsageDetail_20' ) end [2024-12-25 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098182', 'tblTempVendorCDR_20' ) start [2024-12-25 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098182', 'tblTempVendorCDR_20' ) end [2024-12-25 08:06:18] Production.INFO: ProcessCDR(1,14098182,1,1,2) [2024-12-25 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098182', 'tblTempUsageDetail_20' ) start [2024-12-25 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098182', 'tblTempUsageDetail_20' ) end [2024-12-25 08:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:06:21] Production.INFO: ==26070== Releasing lock... [2024-12-25 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:06:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:07:04 [end_date_ymd] => 2024-12-25 08:07:04 [RateCDR] => 1 ) [2024-12-25 08:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:07:04' and `end` < '2024-12-25 08:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:07:17] Production.INFO: count ==19 [2024-12-25 08:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:07:04 - End Time 2024-12-25 08:07:04 [2024-12-25 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098187', 'tblTempUsageDetail_20' ) start [2024-12-25 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098187', 'tblTempUsageDetail_20' ) end [2024-12-25 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098187', 'tblTempVendorCDR_20' ) start [2024-12-25 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098187', 'tblTempVendorCDR_20' ) end [2024-12-25 08:07:17] Production.INFO: ProcessCDR(1,14098187,1,1,2) [2024-12-25 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098187', 'tblTempUsageDetail_20' ) start [2024-12-25 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098187', 'tblTempUsageDetail_20' ) end [2024-12-25 08:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:07:20] Production.INFO: ==26155== Releasing lock... [2024-12-25 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:07:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:08:05 [end_date_ymd] => 2024-12-25 08:08:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:08:05' and `end` < '2024-12-25 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-25 08:08:17] Production.INFO: count ==19 [2024-12-25 08:08:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:08:05 - End Time 2024-12-25 08:08:05 [2024-12-25 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098192', 'tblTempUsageDetail_20' ) start [2024-12-25 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098192', 'tblTempUsageDetail_20' ) end [2024-12-25 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098192', 'tblTempVendorCDR_20' ) start [2024-12-25 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098192', 'tblTempVendorCDR_20' ) end [2024-12-25 08:08:17] Production.INFO: ProcessCDR(1,14098192,1,1,2) [2024-12-25 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098192', 'tblTempUsageDetail_20' ) start [2024-12-25 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098192', 'tblTempUsageDetail_20' ) end [2024-12-25 08:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:08:20] Production.INFO: ==26233== Releasing lock... [2024-12-25 08:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:08:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:09:05 [end_date_ymd] => 2024-12-25 08:09:05 [RateCDR] => 1 ) [2024-12-25 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:09:05' and `end` < '2024-12-25 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:09:17] Production.INFO: count ==19 [2024-12-25 08:09:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:09:05 - End Time 2024-12-25 08:09:05 [2024-12-25 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098197', 'tblTempUsageDetail_20' ) start [2024-12-25 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098197', 'tblTempUsageDetail_20' ) end [2024-12-25 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098197', 'tblTempVendorCDR_20' ) start [2024-12-25 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098197', 'tblTempVendorCDR_20' ) end [2024-12-25 08:09:17] Production.INFO: ProcessCDR(1,14098197,1,1,2) [2024-12-25 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098197', 'tblTempUsageDetail_20' ) start [2024-12-25 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098197', 'tblTempUsageDetail_20' ) end [2024-12-25 08:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:09:20] Production.INFO: ==26317== Releasing lock... [2024-12-25 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:09:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:10:05 [end_date_ymd] => 2024-12-25 08:10:05 [RateCDR] => 1 ) [2024-12-25 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:10:05' and `end` < '2024-12-25 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:10:18] Production.INFO: count ==19 [2024-12-25 08:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:10:05 - End Time 2024-12-25 08:10:05 [2024-12-25 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098203', 'tblTempUsageDetail_20' ) start [2024-12-25 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098203', 'tblTempUsageDetail_20' ) end [2024-12-25 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098203', 'tblTempVendorCDR_20' ) start [2024-12-25 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098203', 'tblTempVendorCDR_20' ) end [2024-12-25 08:10:18] Production.INFO: ProcessCDR(1,14098203,1,1,2) [2024-12-25 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098203', 'tblTempUsageDetail_20' ) start [2024-12-25 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098203', 'tblTempUsageDetail_20' ) end [2024-12-25 08:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:10:21] Production.INFO: ==26398== Releasing lock... [2024-12-25 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:10:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:11:04 [end_date_ymd] => 2024-12-25 08:11:04 [RateCDR] => 1 ) [2024-12-25 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-25 05:11:04' and `end` < '2024-12-25 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-25 08:11:17] Production.INFO: count ==19 [2024-12-25 08:11:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:11:04 - End Time 2024-12-25 08:11:04 [2024-12-25 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098208', 'tblTempUsageDetail_20' ) start [2024-12-25 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098208', 'tblTempUsageDetail_20' ) end [2024-12-25 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098208', 'tblTempVendorCDR_20' ) start [2024-12-25 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098208', 'tblTempVendorCDR_20' ) end [2024-12-25 08:11:17] Production.INFO: ProcessCDR(1,14098208,1,1,2) [2024-12-25 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098208', 'tblTempUsageDetail_20' ) start [2024-12-25 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098208', 'tblTempUsageDetail_20' ) end [2024-12-25 08:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:11:20] Production.INFO: ==26517== Releasing lock... [2024-12-25 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:11:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:12:05 [end_date_ymd] => 2024-12-25 08:12:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:12:05' and `end` < '2024-12-25 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-25 08:12:17] Production.INFO: count ==19 [2024-12-25 08:12:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:12:05 - End Time 2024-12-25 08:12:05 [2024-12-25 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098213', 'tblTempUsageDetail_20' ) start [2024-12-25 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098213', 'tblTempUsageDetail_20' ) end [2024-12-25 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098213', 'tblTempVendorCDR_20' ) start [2024-12-25 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098213', 'tblTempVendorCDR_20' ) end [2024-12-25 08:12:17] Production.INFO: ProcessCDR(1,14098213,1,1,2) [2024-12-25 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098213', 'tblTempUsageDetail_20' ) start [2024-12-25 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098213', 'tblTempUsageDetail_20' ) end [2024-12-25 08:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:12:21] Production.INFO: ==26599== Releasing lock... [2024-12-25 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:13:04 [end_date_ymd] => 2024-12-25 08:13:04 [RateCDR] => 1 ) [2024-12-25 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-25 05:13:04' and `end` < '2024-12-25 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-25 08:13:17] Production.INFO: count ==19 [2024-12-25 08:13:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:13:04 - End Time 2024-12-25 08:13:04 [2024-12-25 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098218', 'tblTempUsageDetail_20' ) start [2024-12-25 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098218', 'tblTempUsageDetail_20' ) end [2024-12-25 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098218', 'tblTempVendorCDR_20' ) start [2024-12-25 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098218', 'tblTempVendorCDR_20' ) end [2024-12-25 08:13:17] Production.INFO: ProcessCDR(1,14098218,1,1,2) [2024-12-25 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098218', 'tblTempUsageDetail_20' ) start [2024-12-25 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098218', 'tblTempUsageDetail_20' ) end [2024-12-25 08:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:13:20] Production.INFO: ==26688== Releasing lock... [2024-12-25 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:13:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:14:05 [end_date_ymd] => 2024-12-25 08:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:14:05' and `end` < '2024-12-25 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-25 08:14:17] Production.INFO: count ==19 [2024-12-25 08:14:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:14:05 - End Time 2024-12-25 08:14:05 [2024-12-25 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098223', 'tblTempUsageDetail_20' ) start [2024-12-25 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098223', 'tblTempUsageDetail_20' ) end [2024-12-25 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098223', 'tblTempVendorCDR_20' ) start [2024-12-25 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098223', 'tblTempVendorCDR_20' ) end [2024-12-25 08:14:17] Production.INFO: ProcessCDR(1,14098223,1,1,2) [2024-12-25 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098223', 'tblTempUsageDetail_20' ) start [2024-12-25 08:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098223', 'tblTempUsageDetail_20' ) end [2024-12-25 08:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:14:20] Production.INFO: ==26763== Releasing lock... [2024-12-25 08:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:14:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:15:04 [end_date_ymd] => 2024-12-25 08:15:04 [RateCDR] => 1 ) [2024-12-25 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-25 05:15:04' and `end` < '2024-12-25 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-25 08:15:16] Production.INFO: count ==19 [2024-12-25 08:15:16] Production.ERROR: pbx CDR StartTime 2024-12-25 05:15:04 - End Time 2024-12-25 08:15:04 [2024-12-25 08:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098228', 'tblTempUsageDetail_20' ) start [2024-12-25 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098228', 'tblTempUsageDetail_20' ) end [2024-12-25 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098228', 'tblTempVendorCDR_20' ) start [2024-12-25 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098228', 'tblTempVendorCDR_20' ) end [2024-12-25 08:15:16] Production.INFO: ProcessCDR(1,14098228,1,1,2) [2024-12-25 08:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098228', 'tblTempUsageDetail_20' ) start [2024-12-25 08:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098228', 'tblTempUsageDetail_20' ) end [2024-12-25 08:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:15:19] Production.INFO: ==26843== Releasing lock... [2024-12-25 08:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:15:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:16:05 [end_date_ymd] => 2024-12-25 08:16:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:16:05' and `end` < '2024-12-25 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-25 08:16:18] Production.INFO: count ==19 [2024-12-25 08:16:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:16:05 - End Time 2024-12-25 08:16:05 [2024-12-25 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098233', 'tblTempUsageDetail_20' ) start [2024-12-25 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098233', 'tblTempUsageDetail_20' ) end [2024-12-25 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098233', 'tblTempVendorCDR_20' ) start [2024-12-25 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098233', 'tblTempVendorCDR_20' ) end [2024-12-25 08:16:18] Production.INFO: ProcessCDR(1,14098233,1,1,2) [2024-12-25 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098233', 'tblTempUsageDetail_20' ) start [2024-12-25 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098233', 'tblTempUsageDetail_20' ) end [2024-12-25 08:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:16:21] Production.INFO: ==26925== Releasing lock... [2024-12-25 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:16:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:17:05 [end_date_ymd] => 2024-12-25 08:17:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:17:05' and `end` < '2024-12-25 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-25 08:17:18] Production.INFO: count ==19 [2024-12-25 08:17:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:17:05 - End Time 2024-12-25 08:17:05 [2024-12-25 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098238', 'tblTempUsageDetail_20' ) start [2024-12-25 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098238', 'tblTempUsageDetail_20' ) end [2024-12-25 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098238', 'tblTempVendorCDR_20' ) start [2024-12-25 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098238', 'tblTempVendorCDR_20' ) end [2024-12-25 08:17:18] Production.INFO: ProcessCDR(1,14098238,1,1,2) [2024-12-25 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098238', 'tblTempUsageDetail_20' ) start [2024-12-25 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098238', 'tblTempUsageDetail_20' ) end [2024-12-25 08:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:17:21] Production.INFO: ==27015== Releasing lock... [2024-12-25 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:17:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:18:04 [end_date_ymd] => 2024-12-25 08:18:04 [RateCDR] => 1 ) [2024-12-25 08: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-25 05:18:04' and `end` < '2024-12-25 08: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-25 08:18:17] Production.INFO: count ==19 [2024-12-25 08:18:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:18:04 - End Time 2024-12-25 08:18:04 [2024-12-25 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098243', 'tblTempUsageDetail_20' ) start [2024-12-25 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098243', 'tblTempUsageDetail_20' ) end [2024-12-25 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098243', 'tblTempVendorCDR_20' ) start [2024-12-25 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098243', 'tblTempVendorCDR_20' ) end [2024-12-25 08:18:17] Production.INFO: ProcessCDR(1,14098243,1,1,2) [2024-12-25 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098243', 'tblTempUsageDetail_20' ) start [2024-12-25 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098243', 'tblTempUsageDetail_20' ) end [2024-12-25 08:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:18:21] Production.INFO: ==27091== Releasing lock... [2024-12-25 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:18:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:19:05 [end_date_ymd] => 2024-12-25 08:19:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:19:05' and `end` < '2024-12-25 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-25 08:19:17] Production.INFO: count ==19 [2024-12-25 08:19:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:19:05 - End Time 2024-12-25 08:19:05 [2024-12-25 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098248', 'tblTempUsageDetail_20' ) start [2024-12-25 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098248', 'tblTempUsageDetail_20' ) end [2024-12-25 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098248', 'tblTempVendorCDR_20' ) start [2024-12-25 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098248', 'tblTempVendorCDR_20' ) end [2024-12-25 08:19:17] Production.INFO: ProcessCDR(1,14098248,1,1,2) [2024-12-25 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098248', 'tblTempUsageDetail_20' ) start [2024-12-25 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098248', 'tblTempUsageDetail_20' ) end [2024-12-25 08:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:19:20] Production.INFO: ==27172== Releasing lock... [2024-12-25 08:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:19:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:20:05 [end_date_ymd] => 2024-12-25 08:20:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:20:05' and `end` < '2024-12-25 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-25 08:20:17] Production.INFO: count ==19 [2024-12-25 08:20:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:20:05 - End Time 2024-12-25 08:20:05 [2024-12-25 08:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098254', 'tblTempUsageDetail_20' ) start [2024-12-25 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098254', 'tblTempUsageDetail_20' ) end [2024-12-25 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098254', 'tblTempVendorCDR_20' ) start [2024-12-25 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098254', 'tblTempVendorCDR_20' ) end [2024-12-25 08:20:17] Production.INFO: ProcessCDR(1,14098254,1,1,2) [2024-12-25 08:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098254', 'tblTempUsageDetail_20' ) start [2024-12-25 08:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098254', 'tblTempUsageDetail_20' ) end [2024-12-25 08:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:20:20] Production.INFO: ==27252== Releasing lock... [2024-12-25 08:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:20:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:21:05 [end_date_ymd] => 2024-12-25 08:21:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:21:05' and `end` < '2024-12-25 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-25 08:21:17] Production.INFO: count ==19 [2024-12-25 08:21:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:21:05 - End Time 2024-12-25 08:21:05 [2024-12-25 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098259', 'tblTempUsageDetail_20' ) start [2024-12-25 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098259', 'tblTempUsageDetail_20' ) end [2024-12-25 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098259', 'tblTempVendorCDR_20' ) start [2024-12-25 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098259', 'tblTempVendorCDR_20' ) end [2024-12-25 08:21:17] Production.INFO: ProcessCDR(1,14098259,1,1,2) [2024-12-25 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098259', 'tblTempUsageDetail_20' ) start [2024-12-25 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098259', 'tblTempUsageDetail_20' ) end [2024-12-25 08:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:21:20] Production.INFO: ==27339== Releasing lock... [2024-12-25 08:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:21:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:22:05 [end_date_ymd] => 2024-12-25 08:22:05 [RateCDR] => 1 ) [2024-12-25 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:22:05' and `end` < '2024-12-25 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:22:17] Production.INFO: count ==19 [2024-12-25 08:22:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:22:05 - End Time 2024-12-25 08:22:05 [2024-12-25 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098264', 'tblTempUsageDetail_20' ) start [2024-12-25 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098264', 'tblTempUsageDetail_20' ) end [2024-12-25 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098264', 'tblTempVendorCDR_20' ) start [2024-12-25 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098264', 'tblTempVendorCDR_20' ) end [2024-12-25 08:22:17] Production.INFO: ProcessCDR(1,14098264,1,1,2) [2024-12-25 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098264', 'tblTempUsageDetail_20' ) start [2024-12-25 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098264', 'tblTempUsageDetail_20' ) end [2024-12-25 08:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:22:20] Production.INFO: ==27417== Releasing lock... [2024-12-25 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:22:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:23:04 [end_date_ymd] => 2024-12-25 08:23:04 [RateCDR] => 1 ) [2024-12-25 08: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-25 05:23:04' and `end` < '2024-12-25 08: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-25 08:23:17] Production.INFO: count ==19 [2024-12-25 08:23:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:23:04 - End Time 2024-12-25 08:23:04 [2024-12-25 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098269', 'tblTempUsageDetail_20' ) start [2024-12-25 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098269', 'tblTempUsageDetail_20' ) end [2024-12-25 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098269', 'tblTempVendorCDR_20' ) start [2024-12-25 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098269', 'tblTempVendorCDR_20' ) end [2024-12-25 08:23:17] Production.INFO: ProcessCDR(1,14098269,1,1,2) [2024-12-25 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098269', 'tblTempUsageDetail_20' ) start [2024-12-25 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098269', 'tblTempUsageDetail_20' ) end [2024-12-25 08:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:23:20] Production.INFO: ==27495== Releasing lock... [2024-12-25 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:23:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:24:05 [end_date_ymd] => 2024-12-25 08:24:05 [RateCDR] => 1 ) [2024-12-25 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:24:05' and `end` < '2024-12-25 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:24:18] Production.INFO: count ==19 [2024-12-25 08:24:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:24:05 - End Time 2024-12-25 08:24:05 [2024-12-25 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098274', 'tblTempUsageDetail_20' ) start [2024-12-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098274', 'tblTempUsageDetail_20' ) end [2024-12-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098274', 'tblTempVendorCDR_20' ) start [2024-12-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098274', 'tblTempVendorCDR_20' ) end [2024-12-25 08:24:18] Production.INFO: ProcessCDR(1,14098274,1,1,2) [2024-12-25 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098274', 'tblTempUsageDetail_20' ) start [2024-12-25 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098274', 'tblTempUsageDetail_20' ) end [2024-12-25 08:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:24:21] Production.INFO: ==27583== Releasing lock... [2024-12-25 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:24:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:25:04 [end_date_ymd] => 2024-12-25 08:25:04 [RateCDR] => 1 ) [2024-12-25 08:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:25:04' and `end` < '2024-12-25 08:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:25:17] Production.INFO: count ==19 [2024-12-25 08:25:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:25:04 - End Time 2024-12-25 08:25:04 [2024-12-25 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098279', 'tblTempUsageDetail_20' ) start [2024-12-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098279', 'tblTempUsageDetail_20' ) end [2024-12-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098279', 'tblTempVendorCDR_20' ) start [2024-12-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098279', 'tblTempVendorCDR_20' ) end [2024-12-25 08:25:17] Production.INFO: ProcessCDR(1,14098279,1,1,2) [2024-12-25 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098279', 'tblTempUsageDetail_20' ) start [2024-12-25 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098279', 'tblTempUsageDetail_20' ) end [2024-12-25 08:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:25:20] Production.INFO: ==27662== Releasing lock... [2024-12-25 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:25:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:26:04 [end_date_ymd] => 2024-12-25 08:26:04 [RateCDR] => 1 ) [2024-12-25 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-25 05:26:04' and `end` < '2024-12-25 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-25 08:26:17] Production.INFO: count ==19 [2024-12-25 08:26:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:26:04 - End Time 2024-12-25 08:26:04 [2024-12-25 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098284', 'tblTempUsageDetail_20' ) start [2024-12-25 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098284', 'tblTempUsageDetail_20' ) end [2024-12-25 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098284', 'tblTempVendorCDR_20' ) start [2024-12-25 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098284', 'tblTempVendorCDR_20' ) end [2024-12-25 08:26:17] Production.INFO: ProcessCDR(1,14098284,1,1,2) [2024-12-25 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098284', 'tblTempUsageDetail_20' ) start [2024-12-25 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098284', 'tblTempUsageDetail_20' ) end [2024-12-25 08:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:26:21] Production.INFO: ==27782== Releasing lock... [2024-12-25 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:26:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:27:04 [end_date_ymd] => 2024-12-25 08:27:04 [RateCDR] => 1 ) [2024-12-25 08: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-25 05:27:04' and `end` < '2024-12-25 08: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-25 08:27:17] Production.INFO: count ==19 [2024-12-25 08:27:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:27:04 - End Time 2024-12-25 08:27:04 [2024-12-25 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098289', 'tblTempUsageDetail_20' ) start [2024-12-25 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098289', 'tblTempUsageDetail_20' ) end [2024-12-25 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098289', 'tblTempVendorCDR_20' ) start [2024-12-25 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098289', 'tblTempVendorCDR_20' ) end [2024-12-25 08:27:17] Production.INFO: ProcessCDR(1,14098289,1,1,2) [2024-12-25 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098289', 'tblTempUsageDetail_20' ) start [2024-12-25 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098289', 'tblTempUsageDetail_20' ) end [2024-12-25 08:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:27:20] Production.INFO: ==27858== Releasing lock... [2024-12-25 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:28:05 [end_date_ymd] => 2024-12-25 08:28:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:28:05' and `end` < '2024-12-25 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-25 08:28:18] Production.INFO: count ==19 [2024-12-25 08:28:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:28:05 - End Time 2024-12-25 08:28:05 [2024-12-25 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098294', 'tblTempUsageDetail_20' ) start [2024-12-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098294', 'tblTempUsageDetail_20' ) end [2024-12-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098294', 'tblTempVendorCDR_20' ) start [2024-12-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098294', 'tblTempVendorCDR_20' ) end [2024-12-25 08:28:18] Production.INFO: ProcessCDR(1,14098294,1,1,2) [2024-12-25 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098294', 'tblTempUsageDetail_20' ) start [2024-12-25 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098294', 'tblTempUsageDetail_20' ) end [2024-12-25 08:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:28:21] Production.INFO: ==27936== Releasing lock... [2024-12-25 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:29:05 [end_date_ymd] => 2024-12-25 08:29:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:29:05' and `end` < '2024-12-25 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-25 08:29:17] Production.INFO: count ==19 [2024-12-25 08:29:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:29:05 - End Time 2024-12-25 08:29:05 [2024-12-25 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098299', 'tblTempUsageDetail_20' ) start [2024-12-25 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098299', 'tblTempUsageDetail_20' ) end [2024-12-25 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098299', 'tblTempVendorCDR_20' ) start [2024-12-25 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098299', 'tblTempVendorCDR_20' ) end [2024-12-25 08:29:17] Production.INFO: ProcessCDR(1,14098299,1,1,2) [2024-12-25 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098299', 'tblTempUsageDetail_20' ) start [2024-12-25 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098299', 'tblTempUsageDetail_20' ) end [2024-12-25 08:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:29:20] Production.INFO: ==28020== Releasing lock... [2024-12-25 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:29:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:30:05 [end_date_ymd] => 2024-12-25 08:30:05 [RateCDR] => 1 ) [2024-12-25 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:30:05' and `end` < '2024-12-25 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:30:17] Production.INFO: count ==21 [2024-12-25 08:30:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:30:05 - End Time 2024-12-25 08:30:05 [2024-12-25 08:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098305', 'tblTempUsageDetail_20' ) start [2024-12-25 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098305', 'tblTempUsageDetail_20' ) end [2024-12-25 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098305', 'tblTempVendorCDR_20' ) start [2024-12-25 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098305', 'tblTempVendorCDR_20' ) end [2024-12-25 08:30:17] Production.INFO: ProcessCDR(1,14098305,1,1,2) [2024-12-25 08:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098305', 'tblTempUsageDetail_20' ) start [2024-12-25 08:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098305', 'tblTempUsageDetail_20' ) end [2024-12-25 08:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:30:20] Production.INFO: ==28100== Releasing lock... [2024-12-25 08:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:30:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:31:06 [end_date_ymd] => 2024-12-25 08:31:06 [RateCDR] => 1 ) [2024-12-25 08:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:31:06' and `end` < '2024-12-25 08:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:31:20] Production.INFO: count ==22 [2024-12-25 08:31:20] Production.ERROR: pbx CDR StartTime 2024-12-25 05:31:06 - End Time 2024-12-25 08:31:06 [2024-12-25 08:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098310', 'tblTempUsageDetail_20' ) start [2024-12-25 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098310', 'tblTempUsageDetail_20' ) end [2024-12-25 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098310', 'tblTempVendorCDR_20' ) start [2024-12-25 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098310', 'tblTempVendorCDR_20' ) end [2024-12-25 08:31:20] Production.INFO: ProcessCDR(1,14098310,1,1,2) [2024-12-25 08:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098310', 'tblTempUsageDetail_20' ) start [2024-12-25 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098310', 'tblTempUsageDetail_20' ) end [2024-12-25 08:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:31:23] Production.INFO: ==28182== Releasing lock... [2024-12-25 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:31:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:32:04 [end_date_ymd] => 2024-12-25 08:32:04 [RateCDR] => 1 ) [2024-12-25 08: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-25 05:32:04' and `end` < '2024-12-25 08: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-25 08:32:17] Production.INFO: count ==22 [2024-12-25 08:32:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:32:04 - End Time 2024-12-25 08:32:04 [2024-12-25 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098315', 'tblTempUsageDetail_20' ) start [2024-12-25 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098315', 'tblTempUsageDetail_20' ) end [2024-12-25 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098315', 'tblTempVendorCDR_20' ) start [2024-12-25 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098315', 'tblTempVendorCDR_20' ) end [2024-12-25 08:32:17] Production.INFO: ProcessCDR(1,14098315,1,1,2) [2024-12-25 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098315', 'tblTempUsageDetail_20' ) start [2024-12-25 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098315', 'tblTempUsageDetail_20' ) end [2024-12-25 08:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:32:20] Production.INFO: ==28257== Releasing lock... [2024-12-25 08:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:32:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:33:05 [end_date_ymd] => 2024-12-25 08:33:05 [RateCDR] => 1 ) [2024-12-25 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:33:05' and `end` < '2024-12-25 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:33:17] Production.INFO: count ==22 [2024-12-25 08:33:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:33:05 - End Time 2024-12-25 08:33:05 [2024-12-25 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098320', 'tblTempUsageDetail_20' ) start [2024-12-25 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098320', 'tblTempUsageDetail_20' ) end [2024-12-25 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098320', 'tblTempVendorCDR_20' ) start [2024-12-25 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098320', 'tblTempVendorCDR_20' ) end [2024-12-25 08:33:17] Production.INFO: ProcessCDR(1,14098320,1,1,2) [2024-12-25 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098320', 'tblTempUsageDetail_20' ) start [2024-12-25 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098320', 'tblTempUsageDetail_20' ) end [2024-12-25 08:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:33:20] Production.INFO: ==28336== Releasing lock... [2024-12-25 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:33:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:34:04 [end_date_ymd] => 2024-12-25 08:34:04 [RateCDR] => 1 ) [2024-12-25 08:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:34:04' and `end` < '2024-12-25 08:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:34:19] Production.INFO: count ==22 [2024-12-25 08:34:19] Production.ERROR: pbx CDR StartTime 2024-12-25 05:34:04 - End Time 2024-12-25 08:34:04 [2024-12-25 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098325', 'tblTempUsageDetail_20' ) start [2024-12-25 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098325', 'tblTempUsageDetail_20' ) end [2024-12-25 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098325', 'tblTempVendorCDR_20' ) start [2024-12-25 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098325', 'tblTempVendorCDR_20' ) end [2024-12-25 08:34:19] Production.INFO: ProcessCDR(1,14098325,1,1,2) [2024-12-25 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098325', 'tblTempUsageDetail_20' ) start [2024-12-25 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098325', 'tblTempUsageDetail_20' ) end [2024-12-25 08:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:34:22] Production.INFO: ==28409== Releasing lock... [2024-12-25 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:34:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:35:05 [end_date_ymd] => 2024-12-25 08:35:05 [RateCDR] => 1 ) [2024-12-25 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:35:05' and `end` < '2024-12-25 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:35:17] Production.INFO: count ==22 [2024-12-25 08:35:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:35:05 - End Time 2024-12-25 08:35:05 [2024-12-25 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098330', 'tblTempUsageDetail_20' ) start [2024-12-25 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098330', 'tblTempUsageDetail_20' ) end [2024-12-25 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098330', 'tblTempVendorCDR_20' ) start [2024-12-25 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098330', 'tblTempVendorCDR_20' ) end [2024-12-25 08:35:17] Production.INFO: ProcessCDR(1,14098330,1,1,2) [2024-12-25 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098330', 'tblTempUsageDetail_20' ) start [2024-12-25 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098330', 'tblTempUsageDetail_20' ) end [2024-12-25 08:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:35:20] Production.INFO: ==28493== Releasing lock... [2024-12-25 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:35:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:36:05 [end_date_ymd] => 2024-12-25 08:36:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:36:05' and `end` < '2024-12-25 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-25 08:36:17] Production.INFO: count ==23 [2024-12-25 08:36:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:36:05 - End Time 2024-12-25 08:36:05 [2024-12-25 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098335', 'tblTempUsageDetail_20' ) start [2024-12-25 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098335', 'tblTempUsageDetail_20' ) end [2024-12-25 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098335', 'tblTempVendorCDR_20' ) start [2024-12-25 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098335', 'tblTempVendorCDR_20' ) end [2024-12-25 08:36:17] Production.INFO: ProcessCDR(1,14098335,1,1,2) [2024-12-25 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098335', 'tblTempUsageDetail_20' ) start [2024-12-25 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098335', 'tblTempUsageDetail_20' ) end [2024-12-25 08:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:36:21] Production.INFO: ==28571== Releasing lock... [2024-12-25 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:36:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:37:05 [end_date_ymd] => 2024-12-25 08:37:05 [RateCDR] => 1 ) [2024-12-25 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:37:05' and `end` < '2024-12-25 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:37:17] Production.INFO: count ==23 [2024-12-25 08:37:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:37:05 - End Time 2024-12-25 08:37:05 [2024-12-25 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098340', 'tblTempUsageDetail_20' ) start [2024-12-25 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098340', 'tblTempUsageDetail_20' ) end [2024-12-25 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098340', 'tblTempVendorCDR_20' ) start [2024-12-25 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098340', 'tblTempVendorCDR_20' ) end [2024-12-25 08:37:17] Production.INFO: ProcessCDR(1,14098340,1,1,2) [2024-12-25 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098340', 'tblTempUsageDetail_20' ) start [2024-12-25 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098340', 'tblTempUsageDetail_20' ) end [2024-12-25 08:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:37:20] Production.INFO: ==28649== Releasing lock... [2024-12-25 08:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:37:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:38:05 [end_date_ymd] => 2024-12-25 08:38:05 [RateCDR] => 1 ) [2024-12-25 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:38:05' and `end` < '2024-12-25 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:38:18] Production.INFO: count ==23 [2024-12-25 08:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:38:05 - End Time 2024-12-25 08:38:05 [2024-12-25 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098345', 'tblTempUsageDetail_20' ) start [2024-12-25 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098345', 'tblTempUsageDetail_20' ) end [2024-12-25 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098345', 'tblTempVendorCDR_20' ) start [2024-12-25 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098345', 'tblTempVendorCDR_20' ) end [2024-12-25 08:38:18] Production.INFO: ProcessCDR(1,14098345,1,1,2) [2024-12-25 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098345', 'tblTempUsageDetail_20' ) start [2024-12-25 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098345', 'tblTempUsageDetail_20' ) end [2024-12-25 08:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:38:21] Production.INFO: ==28727== Releasing lock... [2024-12-25 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:38:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:39:05 [end_date_ymd] => 2024-12-25 08:39:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:39:05' and `end` < '2024-12-25 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-25 08:39:18] Production.INFO: count ==23 [2024-12-25 08:39:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:39:05 - End Time 2024-12-25 08:39:05 [2024-12-25 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098350', 'tblTempUsageDetail_20' ) start [2024-12-25 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098350', 'tblTempUsageDetail_20' ) end [2024-12-25 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098350', 'tblTempVendorCDR_20' ) start [2024-12-25 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098350', 'tblTempVendorCDR_20' ) end [2024-12-25 08:39:18] Production.INFO: ProcessCDR(1,14098350,1,1,2) [2024-12-25 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098350', 'tblTempUsageDetail_20' ) start [2024-12-25 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098350', 'tblTempUsageDetail_20' ) end [2024-12-25 08:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:39:21] Production.INFO: ==28810== Releasing lock... [2024-12-25 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:39:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:40:06 [end_date_ymd] => 2024-12-25 08:40:06 [RateCDR] => 1 ) [2024-12-25 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:40:06' and `end` < '2024-12-25 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:40:18] Production.INFO: count ==25 [2024-12-25 08:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:40:06 - End Time 2024-12-25 08:40:06 [2024-12-25 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098355', 'tblTempUsageDetail_20' ) start [2024-12-25 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098355', 'tblTempUsageDetail_20' ) end [2024-12-25 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098355', 'tblTempVendorCDR_20' ) start [2024-12-25 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098355', 'tblTempVendorCDR_20' ) end [2024-12-25 08:40:18] Production.INFO: ProcessCDR(1,14098355,1,1,2) [2024-12-25 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098355', 'tblTempUsageDetail_20' ) start [2024-12-25 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098355', 'tblTempUsageDetail_20' ) end [2024-12-25 08:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:40:21] Production.INFO: ==28926== Releasing lock... [2024-12-25 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:40:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:41:05 [end_date_ymd] => 2024-12-25 08:41:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:41:05' and `end` < '2024-12-25 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-25 08:41:17] Production.INFO: count ==26 [2024-12-25 08:41:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:41:05 - End Time 2024-12-25 08:41:05 [2024-12-25 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098361', 'tblTempUsageDetail_20' ) start [2024-12-25 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098361', 'tblTempUsageDetail_20' ) end [2024-12-25 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098361', 'tblTempVendorCDR_20' ) start [2024-12-25 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098361', 'tblTempVendorCDR_20' ) end [2024-12-25 08:41:17] Production.INFO: ProcessCDR(1,14098361,1,1,2) [2024-12-25 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098361', 'tblTempUsageDetail_20' ) start [2024-12-25 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098361', 'tblTempUsageDetail_20' ) end [2024-12-25 08:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:41:20] Production.INFO: ==29062== Releasing lock... [2024-12-25 08:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:41:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:42:05 [end_date_ymd] => 2024-12-25 08:42:05 [RateCDR] => 1 ) [2024-12-25 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:42:05' and `end` < '2024-12-25 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:42:18] Production.INFO: count ==26 [2024-12-25 08:42:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:42:05 - End Time 2024-12-25 08:42:05 [2024-12-25 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098366', 'tblTempUsageDetail_20' ) start [2024-12-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098366', 'tblTempUsageDetail_20' ) end [2024-12-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098366', 'tblTempVendorCDR_20' ) start [2024-12-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098366', 'tblTempVendorCDR_20' ) end [2024-12-25 08:42:18] Production.INFO: ProcessCDR(1,14098366,1,1,2) [2024-12-25 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098366', 'tblTempUsageDetail_20' ) start [2024-12-25 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098366', 'tblTempUsageDetail_20' ) end [2024-12-25 08:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:42:21] Production.INFO: ==29233== Releasing lock... [2024-12-25 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:42:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:43:05 [end_date_ymd] => 2024-12-25 08:43:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:43:05' and `end` < '2024-12-25 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-25 08:43:17] Production.INFO: count ==26 [2024-12-25 08:43:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:43:05 - End Time 2024-12-25 08:43:05 [2024-12-25 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098371', 'tblTempUsageDetail_20' ) start [2024-12-25 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098371', 'tblTempUsageDetail_20' ) end [2024-12-25 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098371', 'tblTempVendorCDR_20' ) start [2024-12-25 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098371', 'tblTempVendorCDR_20' ) end [2024-12-25 08:43:17] Production.INFO: ProcessCDR(1,14098371,1,1,2) [2024-12-25 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098371', 'tblTempUsageDetail_20' ) start [2024-12-25 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098371', 'tblTempUsageDetail_20' ) end [2024-12-25 08:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:43:20] Production.INFO: ==29375== Releasing lock... [2024-12-25 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:43:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:44:05 [end_date_ymd] => 2024-12-25 08:44:05 [RateCDR] => 1 ) [2024-12-25 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:44:05' and `end` < '2024-12-25 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:44:18] Production.INFO: count ==26 [2024-12-25 08:44:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:44:05 - End Time 2024-12-25 08:44:05 [2024-12-25 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098376', 'tblTempUsageDetail_20' ) start [2024-12-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098376', 'tblTempUsageDetail_20' ) end [2024-12-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098376', 'tblTempVendorCDR_20' ) start [2024-12-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098376', 'tblTempVendorCDR_20' ) end [2024-12-25 08:44:18] Production.INFO: ProcessCDR(1,14098376,1,1,2) [2024-12-25 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098376', 'tblTempUsageDetail_20' ) start [2024-12-25 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098376', 'tblTempUsageDetail_20' ) end [2024-12-25 08:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:44:21] Production.INFO: ==29515== Releasing lock... [2024-12-25 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:44:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:45:04 [end_date_ymd] => 2024-12-25 08:45:04 [RateCDR] => 1 ) [2024-12-25 08:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:45:04' and `end` < '2024-12-25 08:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:45:17] Production.INFO: count ==26 [2024-12-25 08:45:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:45:04 - End Time 2024-12-25 08:45:04 [2024-12-25 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098381', 'tblTempUsageDetail_20' ) start [2024-12-25 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098381', 'tblTempUsageDetail_20' ) end [2024-12-25 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098381', 'tblTempVendorCDR_20' ) start [2024-12-25 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098381', 'tblTempVendorCDR_20' ) end [2024-12-25 08:45:17] Production.INFO: ProcessCDR(1,14098381,1,1,2) [2024-12-25 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098381', 'tblTempUsageDetail_20' ) start [2024-12-25 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098381', 'tblTempUsageDetail_20' ) end [2024-12-25 08:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:45:20] Production.INFO: ==29643== Releasing lock... [2024-12-25 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:45:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:46:05 [end_date_ymd] => 2024-12-25 08:46:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:46:05' and `end` < '2024-12-25 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-25 08:46:18] Production.INFO: count ==26 [2024-12-25 08:46:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:46:05 - End Time 2024-12-25 08:46:05 [2024-12-25 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098386', 'tblTempUsageDetail_20' ) start [2024-12-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098386', 'tblTempUsageDetail_20' ) end [2024-12-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098386', 'tblTempVendorCDR_20' ) start [2024-12-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098386', 'tblTempVendorCDR_20' ) end [2024-12-25 08:46:18] Production.INFO: ProcessCDR(1,14098386,1,1,2) [2024-12-25 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098386', 'tblTempUsageDetail_20' ) start [2024-12-25 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098386', 'tblTempUsageDetail_20' ) end [2024-12-25 08:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:46:22] Production.INFO: ==29753== Releasing lock... [2024-12-25 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:46:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:47:04 [end_date_ymd] => 2024-12-25 08:47:04 [RateCDR] => 1 ) [2024-12-25 08:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:47:04' and `end` < '2024-12-25 08:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:47:16] Production.INFO: count ==26 [2024-12-25 08:47:16] Production.ERROR: pbx CDR StartTime 2024-12-25 05:47:04 - End Time 2024-12-25 08:47:04 [2024-12-25 08:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098391', 'tblTempUsageDetail_20' ) start [2024-12-25 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098391', 'tblTempUsageDetail_20' ) end [2024-12-25 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098391', 'tblTempVendorCDR_20' ) start [2024-12-25 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098391', 'tblTempVendorCDR_20' ) end [2024-12-25 08:47:16] Production.INFO: ProcessCDR(1,14098391,1,1,2) [2024-12-25 08:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098391', 'tblTempUsageDetail_20' ) start [2024-12-25 08:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098391', 'tblTempUsageDetail_20' ) end [2024-12-25 08:47:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:47:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:47:19] Production.INFO: ==29863== Releasing lock... [2024-12-25 08:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:47:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:48:05 [end_date_ymd] => 2024-12-25 08:48:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:48:05' and `end` < '2024-12-25 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-25 08:48:18] Production.INFO: count ==26 [2024-12-25 08:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:48:05 - End Time 2024-12-25 08:48:05 [2024-12-25 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098396', 'tblTempUsageDetail_20' ) start [2024-12-25 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098396', 'tblTempUsageDetail_20' ) end [2024-12-25 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098396', 'tblTempVendorCDR_20' ) start [2024-12-25 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098396', 'tblTempVendorCDR_20' ) end [2024-12-25 08:48:18] Production.INFO: ProcessCDR(1,14098396,1,1,2) [2024-12-25 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098396', 'tblTempUsageDetail_20' ) start [2024-12-25 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098396', 'tblTempUsageDetail_20' ) end [2024-12-25 08:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:48:21] Production.INFO: ==29966== Releasing lock... [2024-12-25 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:48:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:49:04 [end_date_ymd] => 2024-12-25 08:49:04 [RateCDR] => 1 ) [2024-12-25 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-25 05:49:04' and `end` < '2024-12-25 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-25 08:49:16] Production.INFO: count ==26 [2024-12-25 08:49:16] Production.ERROR: pbx CDR StartTime 2024-12-25 05:49:04 - End Time 2024-12-25 08:49:04 [2024-12-25 08:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098401', 'tblTempUsageDetail_20' ) start [2024-12-25 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098401', 'tblTempUsageDetail_20' ) end [2024-12-25 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098401', 'tblTempVendorCDR_20' ) start [2024-12-25 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098401', 'tblTempVendorCDR_20' ) end [2024-12-25 08:49:16] Production.INFO: ProcessCDR(1,14098401,1,1,2) [2024-12-25 08:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098401', 'tblTempUsageDetail_20' ) start [2024-12-25 08:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098401', 'tblTempUsageDetail_20' ) end [2024-12-25 08:49:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:49:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:49:19] Production.INFO: ==30072== Releasing lock... [2024-12-25 08:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:49:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:50:05 [end_date_ymd] => 2024-12-25 08:50:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:50:05' and `end` < '2024-12-25 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-25 08:50:17] Production.INFO: count ==26 [2024-12-25 08:50:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:50:05 - End Time 2024-12-25 08:50:05 [2024-12-25 08:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098406', 'tblTempUsageDetail_20' ) start [2024-12-25 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098406', 'tblTempUsageDetail_20' ) end [2024-12-25 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098406', 'tblTempVendorCDR_20' ) start [2024-12-25 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098406', 'tblTempVendorCDR_20' ) end [2024-12-25 08:50:17] Production.INFO: ProcessCDR(1,14098406,1,1,2) [2024-12-25 08:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098406', 'tblTempUsageDetail_20' ) start [2024-12-25 08:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098406', 'tblTempUsageDetail_20' ) end [2024-12-25 08:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:50:20] Production.INFO: ==30177== Releasing lock... [2024-12-25 08:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:50:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:51:05 [end_date_ymd] => 2024-12-25 08:51:05 [RateCDR] => 1 ) [2024-12-25 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:51:05' and `end` < '2024-12-25 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:51:17] Production.INFO: count ==26 [2024-12-25 08:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:51:05 - End Time 2024-12-25 08:51:05 [2024-12-25 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098412', 'tblTempUsageDetail_20' ) start [2024-12-25 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098412', 'tblTempUsageDetail_20' ) end [2024-12-25 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098412', 'tblTempVendorCDR_20' ) start [2024-12-25 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098412', 'tblTempVendorCDR_20' ) end [2024-12-25 08:51:17] Production.INFO: ProcessCDR(1,14098412,1,1,2) [2024-12-25 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098412', 'tblTempUsageDetail_20' ) start [2024-12-25 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098412', 'tblTempUsageDetail_20' ) end [2024-12-25 08:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:51:20] Production.INFO: ==30285== Releasing lock... [2024-12-25 08:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:51:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:52:05 [end_date_ymd] => 2024-12-25 08:52:05 [RateCDR] => 1 ) [2024-12-25 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:52:05' and `end` < '2024-12-25 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:52:18] Production.INFO: count ==26 [2024-12-25 08:52:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:52:05 - End Time 2024-12-25 08:52:05 [2024-12-25 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098417', 'tblTempUsageDetail_20' ) start [2024-12-25 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098417', 'tblTempUsageDetail_20' ) end [2024-12-25 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098417', 'tblTempVendorCDR_20' ) start [2024-12-25 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098417', 'tblTempVendorCDR_20' ) end [2024-12-25 08:52:18] Production.INFO: ProcessCDR(1,14098417,1,1,2) [2024-12-25 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098417', 'tblTempUsageDetail_20' ) start [2024-12-25 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098417', 'tblTempUsageDetail_20' ) end [2024-12-25 08:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:52:21] Production.INFO: ==30393== Releasing lock... [2024-12-25 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:53:05 [end_date_ymd] => 2024-12-25 08:53:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:53:05' and `end` < '2024-12-25 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-25 08:53:18] Production.INFO: count ==26 [2024-12-25 08:53:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:53:05 - End Time 2024-12-25 08:53:05 [2024-12-25 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098422', 'tblTempUsageDetail_20' ) start [2024-12-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098422', 'tblTempUsageDetail_20' ) end [2024-12-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098422', 'tblTempVendorCDR_20' ) start [2024-12-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098422', 'tblTempVendorCDR_20' ) end [2024-12-25 08:53:18] Production.INFO: ProcessCDR(1,14098422,1,1,2) [2024-12-25 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098422', 'tblTempUsageDetail_20' ) start [2024-12-25 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098422', 'tblTempUsageDetail_20' ) end [2024-12-25 08:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:53:21] Production.INFO: ==30500== Releasing lock... [2024-12-25 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:53:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:54:04 [end_date_ymd] => 2024-12-25 08:54:04 [RateCDR] => 1 ) [2024-12-25 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-25 05:54:04' and `end` < '2024-12-25 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-25 08:54:17] Production.INFO: count ==26 [2024-12-25 08:54:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:54:04 - End Time 2024-12-25 08:54:04 [2024-12-25 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098427', 'tblTempUsageDetail_20' ) start [2024-12-25 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098427', 'tblTempUsageDetail_20' ) end [2024-12-25 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098427', 'tblTempVendorCDR_20' ) start [2024-12-25 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098427', 'tblTempVendorCDR_20' ) end [2024-12-25 08:54:17] Production.INFO: ProcessCDR(1,14098427,1,1,2) [2024-12-25 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098427', 'tblTempUsageDetail_20' ) start [2024-12-25 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098427', 'tblTempUsageDetail_20' ) end [2024-12-25 08:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:54:20] Production.INFO: ==30606== Releasing lock... [2024-12-25 08:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:54:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:55:05 [end_date_ymd] => 2024-12-25 08:55:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:55:05' and `end` < '2024-12-25 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-25 08:55:18] Production.INFO: count ==26 [2024-12-25 08:55:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:55:05 - End Time 2024-12-25 08:55:05 [2024-12-25 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098432', 'tblTempUsageDetail_20' ) start [2024-12-25 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098432', 'tblTempUsageDetail_20' ) end [2024-12-25 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098432', 'tblTempVendorCDR_20' ) start [2024-12-25 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098432', 'tblTempVendorCDR_20' ) end [2024-12-25 08:55:18] Production.INFO: ProcessCDR(1,14098432,1,1,2) [2024-12-25 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098432', 'tblTempUsageDetail_20' ) start [2024-12-25 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098432', 'tblTempUsageDetail_20' ) end [2024-12-25 08:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:55:21] Production.INFO: ==30683== Releasing lock... [2024-12-25 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:55:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:56:05 [end_date_ymd] => 2024-12-25 08:56:05 [RateCDR] => 1 ) [2024-12-25 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 05:56:05' and `end` < '2024-12-25 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 08:56:17] Production.INFO: count ==26 [2024-12-25 08:56:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:56:05 - End Time 2024-12-25 08:56:05 [2024-12-25 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098437', 'tblTempUsageDetail_20' ) start [2024-12-25 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098437', 'tblTempUsageDetail_20' ) end [2024-12-25 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098437', 'tblTempVendorCDR_20' ) start [2024-12-25 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098437', 'tblTempVendorCDR_20' ) end [2024-12-25 08:56:17] Production.INFO: ProcessCDR(1,14098437,1,1,2) [2024-12-25 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098437', 'tblTempUsageDetail_20' ) start [2024-12-25 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098437', 'tblTempUsageDetail_20' ) end [2024-12-25 08:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:56:20] Production.INFO: ==30762== Releasing lock... [2024-12-25 08:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:56:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:57:05 [end_date_ymd] => 2024-12-25 08:57:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:57:05' and `end` < '2024-12-25 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-25 08:57:18] Production.INFO: count ==26 [2024-12-25 08:57:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:57:05 - End Time 2024-12-25 08:57:05 [2024-12-25 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098442', 'tblTempUsageDetail_20' ) start [2024-12-25 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098442', 'tblTempUsageDetail_20' ) end [2024-12-25 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098442', 'tblTempVendorCDR_20' ) start [2024-12-25 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098442', 'tblTempVendorCDR_20' ) end [2024-12-25 08:57:18] Production.INFO: ProcessCDR(1,14098442,1,1,2) [2024-12-25 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098442', 'tblTempUsageDetail_20' ) start [2024-12-25 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098442', 'tblTempUsageDetail_20' ) end [2024-12-25 08:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:57:21] Production.INFO: ==30837== Releasing lock... [2024-12-25 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:57:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:58:05 [end_date_ymd] => 2024-12-25 08:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:58:05' and `end` < '2024-12-25 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-25 08:58:18] Production.INFO: count ==26 [2024-12-25 08:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 05:58:05 - End Time 2024-12-25 08:58:05 [2024-12-25 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098447', 'tblTempUsageDetail_20' ) start [2024-12-25 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098447', 'tblTempUsageDetail_20' ) end [2024-12-25 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098447', 'tblTempVendorCDR_20' ) start [2024-12-25 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098447', 'tblTempVendorCDR_20' ) end [2024-12-25 08:58:18] Production.INFO: ProcessCDR(1,14098447,1,1,2) [2024-12-25 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098447', 'tblTempUsageDetail_20' ) start [2024-12-25 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098447', 'tblTempUsageDetail_20' ) end [2024-12-25 08:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:58:21] Production.INFO: ==30962== Releasing lock... [2024-12-25 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:58:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 05:59:05 [end_date_ymd] => 2024-12-25 08:59:05 [RateCDR] => 1 ) [2024-12-25 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-25 05:59:05' and `end` < '2024-12-25 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-25 08:59:17] Production.INFO: count ==26 [2024-12-25 08:59:17] Production.ERROR: pbx CDR StartTime 2024-12-25 05:59:05 - End Time 2024-12-25 08:59:05 [2024-12-25 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098452', 'tblTempUsageDetail_20' ) start [2024-12-25 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098452', 'tblTempUsageDetail_20' ) end [2024-12-25 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098452', 'tblTempVendorCDR_20' ) start [2024-12-25 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098452', 'tblTempVendorCDR_20' ) end [2024-12-25 08:59:17] Production.INFO: ProcessCDR(1,14098452,1,1,2) [2024-12-25 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098452', 'tblTempUsageDetail_20' ) start [2024-12-25 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098452', 'tblTempUsageDetail_20' ) end [2024-12-25 08:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 08:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 08:59:20] Production.INFO: ==31041== Releasing lock... [2024-12-25 08:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 08:59:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:00:06 [end_date_ymd] => 2024-12-25 09:00:06 [RateCDR] => 1 ) [2024-12-25 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-25 06:00:06' and `end` < '2024-12-25 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-25 09:00:18] Production.INFO: count ==26 [2024-12-25 09:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:00:06 - End Time 2024-12-25 09:00:06 [2024-12-25 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098457', 'tblTempUsageDetail_20' ) start [2024-12-25 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098457', 'tblTempUsageDetail_20' ) end [2024-12-25 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098457', 'tblTempVendorCDR_20' ) start [2024-12-25 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098457', 'tblTempVendorCDR_20' ) end [2024-12-25 09:00:18] Production.INFO: ProcessCDR(1,14098457,1,1,2) [2024-12-25 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098457', 'tblTempUsageDetail_20' ) start [2024-12-25 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098457', 'tblTempUsageDetail_20' ) end [2024-12-25 09:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:00:21] Production.INFO: ==31121== Releasing lock... [2024-12-25 09:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:00:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:01:05 [end_date_ymd] => 2024-12-25 09:01:05 [RateCDR] => 1 ) [2024-12-25 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:01:05' and `end` < '2024-12-25 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:01:18] Production.INFO: count ==26 [2024-12-25 09:01:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:01:05 - End Time 2024-12-25 09:01:05 [2024-12-25 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098463', 'tblTempUsageDetail_20' ) start [2024-12-25 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098463', 'tblTempUsageDetail_20' ) end [2024-12-25 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098463', 'tblTempVendorCDR_20' ) start [2024-12-25 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098463', 'tblTempVendorCDR_20' ) end [2024-12-25 09:01:18] Production.INFO: ProcessCDR(1,14098463,1,1,2) [2024-12-25 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098463', 'tblTempUsageDetail_20' ) start [2024-12-25 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098463', 'tblTempUsageDetail_20' ) end [2024-12-25 09:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:01:21] Production.INFO: ==31209== Releasing lock... [2024-12-25 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:01:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:02:05 [end_date_ymd] => 2024-12-25 09:02:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:02:05' and `end` < '2024-12-25 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-25 09:02:18] Production.INFO: count ==26 [2024-12-25 09:02:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:02:05 - End Time 2024-12-25 09:02:05 [2024-12-25 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098468', 'tblTempUsageDetail_20' ) start [2024-12-25 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098468', 'tblTempUsageDetail_20' ) end [2024-12-25 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098468', 'tblTempVendorCDR_20' ) start [2024-12-25 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098468', 'tblTempVendorCDR_20' ) end [2024-12-25 09:02:18] Production.INFO: ProcessCDR(1,14098468,1,1,2) [2024-12-25 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098468', 'tblTempUsageDetail_20' ) start [2024-12-25 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098468', 'tblTempUsageDetail_20' ) end [2024-12-25 09:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:02:21] Production.INFO: ==31283== Releasing lock... [2024-12-25 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:02:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 09:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:03:04 [end_date_ymd] => 2024-12-25 09:03:04 [RateCDR] => 1 ) [2024-12-25 09: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-25 06:03:04' and `end` < '2024-12-25 09: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-25 09:03:17] Production.INFO: count ==26 [2024-12-25 09:03:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:03:04 - End Time 2024-12-25 09:03:04 [2024-12-25 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098473', 'tblTempUsageDetail_20' ) start [2024-12-25 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098473', 'tblTempUsageDetail_20' ) end [2024-12-25 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098473', 'tblTempVendorCDR_20' ) start [2024-12-25 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098473', 'tblTempVendorCDR_20' ) end [2024-12-25 09:03:17] Production.INFO: ProcessCDR(1,14098473,1,1,2) [2024-12-25 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098473', 'tblTempUsageDetail_20' ) start [2024-12-25 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098473', 'tblTempUsageDetail_20' ) end [2024-12-25 09:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:03:20] Production.INFO: ==31362== Releasing lock... [2024-12-25 09:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:03:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-25 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:04:05 [end_date_ymd] => 2024-12-25 09:04:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:04:05' and `end` < '2024-12-25 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-25 09:04:17] Production.INFO: count ==33 [2024-12-25 09:04:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:04:05 - End Time 2024-12-25 09:04:05 [2024-12-25 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098478', 'tblTempUsageDetail_20' ) start [2024-12-25 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098478', 'tblTempUsageDetail_20' ) end [2024-12-25 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098478', 'tblTempVendorCDR_20' ) start [2024-12-25 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098478', 'tblTempVendorCDR_20' ) end [2024-12-25 09:04:17] Production.INFO: ProcessCDR(1,14098478,1,1,2) [2024-12-25 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098478', 'tblTempUsageDetail_20' ) start [2024-12-25 09:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098478', 'tblTempUsageDetail_20' ) end [2024-12-25 09:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:04:20] Production.INFO: ==31437== Releasing lock... [2024-12-25 09:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:04:20] Production.INFO: 28 MB #Memory Used# [2024-12-25 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:05:04 [end_date_ymd] => 2024-12-25 09:05:04 [RateCDR] => 1 ) [2024-12-25 09: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-25 06:05:04' and `end` < '2024-12-25 09: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-25 09:05:16] Production.INFO: count ==40 [2024-12-25 09:05:16] Production.ERROR: pbx CDR StartTime 2024-12-25 06:05:04 - End Time 2024-12-25 09:05:04 [2024-12-25 09:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098483', 'tblTempUsageDetail_20' ) start [2024-12-25 09:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098483', 'tblTempUsageDetail_20' ) end [2024-12-25 09:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098483', 'tblTempVendorCDR_20' ) start [2024-12-25 09:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098483', 'tblTempVendorCDR_20' ) end [2024-12-25 09:05:16] Production.INFO: ProcessCDR(1,14098483,1,1,2) [2024-12-25 09:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098483', 'tblTempUsageDetail_20' ) start [2024-12-25 09:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098483', 'tblTempUsageDetail_20' ) end [2024-12-25 09:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:05:19] Production.INFO: ==31516== Releasing lock... [2024-12-25 09:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:05:19] Production.INFO: 28 MB #Memory Used# [2024-12-25 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:06:05 [end_date_ymd] => 2024-12-25 09:06:05 [RateCDR] => 1 ) [2024-12-25 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:06:05' and `end` < '2024-12-25 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:06:17] Production.INFO: count ==40 [2024-12-25 09:06:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:06:05 - End Time 2024-12-25 09:06:05 [2024-12-25 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098488', 'tblTempUsageDetail_20' ) start [2024-12-25 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098488', 'tblTempUsageDetail_20' ) end [2024-12-25 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098488', 'tblTempVendorCDR_20' ) start [2024-12-25 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098488', 'tblTempVendorCDR_20' ) end [2024-12-25 09:06:17] Production.INFO: ProcessCDR(1,14098488,1,1,2) [2024-12-25 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098488', 'tblTempUsageDetail_20' ) start [2024-12-25 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098488', 'tblTempUsageDetail_20' ) end [2024-12-25 09:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:06:20] Production.INFO: ==31592== Releasing lock... [2024-12-25 09:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:06:20] Production.INFO: 28 MB #Memory Used# [2024-12-25 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:07:04 [end_date_ymd] => 2024-12-25 09:07:04 [RateCDR] => 1 ) [2024-12-25 09:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:07:04' and `end` < '2024-12-25 09:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:07:16] Production.INFO: count ==40 [2024-12-25 09:07:16] Production.ERROR: pbx CDR StartTime 2024-12-25 06:07:04 - End Time 2024-12-25 09:07:04 [2024-12-25 09:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098493', 'tblTempUsageDetail_20' ) start [2024-12-25 09:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098493', 'tblTempUsageDetail_20' ) end [2024-12-25 09:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098493', 'tblTempVendorCDR_20' ) start [2024-12-25 09:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098493', 'tblTempVendorCDR_20' ) end [2024-12-25 09:07:16] Production.INFO: ProcessCDR(1,14098493,1,1,2) [2024-12-25 09:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098493', 'tblTempUsageDetail_20' ) start [2024-12-25 09:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098493', 'tblTempUsageDetail_20' ) end [2024-12-25 09:07:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:07:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:07:19] Production.INFO: ==31666== Releasing lock... [2024-12-25 09:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:07:19] Production.INFO: 28 MB #Memory Used# [2024-12-25 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:08:05 [end_date_ymd] => 2024-12-25 09:08:05 [RateCDR] => 1 ) [2024-12-25 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:08:05' and `end` < '2024-12-25 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:08:17] Production.INFO: count ==40 [2024-12-25 09:08:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:08:05 - End Time 2024-12-25 09:08:05 [2024-12-25 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098498', 'tblTempUsageDetail_20' ) start [2024-12-25 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098498', 'tblTempUsageDetail_20' ) end [2024-12-25 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098498', 'tblTempVendorCDR_20' ) start [2024-12-25 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098498', 'tblTempVendorCDR_20' ) end [2024-12-25 09:08:17] Production.INFO: ProcessCDR(1,14098498,1,1,2) [2024-12-25 09:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098498', 'tblTempUsageDetail_20' ) start [2024-12-25 09:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098498', 'tblTempUsageDetail_20' ) end [2024-12-25 09:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:08:20] Production.INFO: ==31742== Releasing lock... [2024-12-25 09:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:08:20] Production.INFO: 28 MB #Memory Used# [2024-12-25 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:09:05 [end_date_ymd] => 2024-12-25 09:09:05 [RateCDR] => 1 ) [2024-12-25 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:09:05' and `end` < '2024-12-25 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:09:17] Production.INFO: count ==40 [2024-12-25 09:09:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:09:05 - End Time 2024-12-25 09:09:05 [2024-12-25 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098503', 'tblTempUsageDetail_20' ) start [2024-12-25 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098503', 'tblTempUsageDetail_20' ) end [2024-12-25 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098503', 'tblTempVendorCDR_20' ) start [2024-12-25 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098503', 'tblTempVendorCDR_20' ) end [2024-12-25 09:09:17] Production.INFO: ProcessCDR(1,14098503,1,1,2) [2024-12-25 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098503', 'tblTempUsageDetail_20' ) start [2024-12-25 09:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098503', 'tblTempUsageDetail_20' ) end [2024-12-25 09:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:09:20] Production.INFO: ==31820== Releasing lock... [2024-12-25 09:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:09:20] Production.INFO: 28 MB #Memory Used# [2024-12-25 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:10:06 [end_date_ymd] => 2024-12-25 09:10:06 [RateCDR] => 1 ) [2024-12-25 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-25 06:10:06' and `end` < '2024-12-25 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-25 09:10:19] Production.INFO: count ==40 [2024-12-25 09:10:19] Production.ERROR: pbx CDR StartTime 2024-12-25 06:10:06 - End Time 2024-12-25 09:10:06 [2024-12-25 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098509', 'tblTempUsageDetail_20' ) start [2024-12-25 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098509', 'tblTempUsageDetail_20' ) end [2024-12-25 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098509', 'tblTempVendorCDR_20' ) start [2024-12-25 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098509', 'tblTempVendorCDR_20' ) end [2024-12-25 09:10:19] Production.INFO: ProcessCDR(1,14098509,1,1,2) [2024-12-25 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098509', 'tblTempUsageDetail_20' ) start [2024-12-25 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098509', 'tblTempUsageDetail_20' ) end [2024-12-25 09:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:10:22] Production.INFO: ==31896== Releasing lock... [2024-12-25 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:10:22] Production.INFO: 28 MB #Memory Used# [2024-12-25 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:11:05 [end_date_ymd] => 2024-12-25 09:11:05 [RateCDR] => 1 ) [2024-12-25 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:11:05' and `end` < '2024-12-25 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:11:18] Production.INFO: count ==40 [2024-12-25 09:11:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:11:05 - End Time 2024-12-25 09:11:05 [2024-12-25 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098514', 'tblTempUsageDetail_20' ) start [2024-12-25 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098514', 'tblTempUsageDetail_20' ) end [2024-12-25 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098514', 'tblTempVendorCDR_20' ) start [2024-12-25 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098514', 'tblTempVendorCDR_20' ) end [2024-12-25 09:11:18] Production.INFO: ProcessCDR(1,14098514,1,1,2) [2024-12-25 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098514', 'tblTempUsageDetail_20' ) start [2024-12-25 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098514', 'tblTempUsageDetail_20' ) end [2024-12-25 09:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:11:21] Production.INFO: ==31974== Releasing lock... [2024-12-25 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:11:21] Production.INFO: 28 MB #Memory Used# [2024-12-25 09:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:12:04 [end_date_ymd] => 2024-12-25 09:12:04 [RateCDR] => 1 ) [2024-12-25 09: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-25 06:12:04' and `end` < '2024-12-25 09: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-25 09:12:17] Production.INFO: count ==40 [2024-12-25 09:12:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:12:04 - End Time 2024-12-25 09:12:04 [2024-12-25 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098519', 'tblTempUsageDetail_20' ) start [2024-12-25 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098519', 'tblTempUsageDetail_20' ) end [2024-12-25 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098519', 'tblTempVendorCDR_20' ) start [2024-12-25 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098519', 'tblTempVendorCDR_20' ) end [2024-12-25 09:12:17] Production.INFO: ProcessCDR(1,14098519,1,1,2) [2024-12-25 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098519', 'tblTempUsageDetail_20' ) start [2024-12-25 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098519', 'tblTempUsageDetail_20' ) end [2024-12-25 09:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:12:20] Production.INFO: ==32048== Releasing lock... [2024-12-25 09:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:12:20] Production.INFO: 28 MB #Memory Used# [2024-12-25 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:13:05 [end_date_ymd] => 2024-12-25 09:13:05 [RateCDR] => 1 ) [2024-12-25 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:13:05' and `end` < '2024-12-25 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:13:17] Production.INFO: count ==55 [2024-12-25 09:13:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:13:05 - End Time 2024-12-25 09:13:05 [2024-12-25 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098524', 'tblTempUsageDetail_20' ) start [2024-12-25 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098524', 'tblTempUsageDetail_20' ) end [2024-12-25 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098524', 'tblTempVendorCDR_20' ) start [2024-12-25 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098524', 'tblTempVendorCDR_20' ) end [2024-12-25 09:13:17] Production.INFO: ProcessCDR(1,14098524,1,1,2) [2024-12-25 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098524', 'tblTempUsageDetail_20' ) start [2024-12-25 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098524', 'tblTempUsageDetail_20' ) end [2024-12-25 09:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:13:22] Production.INFO: ==32165== Releasing lock... [2024-12-25 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:13:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:14:05 [end_date_ymd] => 2024-12-25 09:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:14:05' and `end` < '2024-12-25 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-25 09:14:18] Production.INFO: count ==67 [2024-12-25 09:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:14:05 - End Time 2024-12-25 09:14:05 [2024-12-25 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098529', 'tblTempUsageDetail_20' ) start [2024-12-25 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098529', 'tblTempUsageDetail_20' ) end [2024-12-25 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098529', 'tblTempVendorCDR_20' ) start [2024-12-25 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098529', 'tblTempVendorCDR_20' ) end [2024-12-25 09:14:18] Production.INFO: ProcessCDR(1,14098529,1,1,2) [2024-12-25 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098529', 'tblTempUsageDetail_20' ) start [2024-12-25 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098529', 'tblTempUsageDetail_20' ) end [2024-12-25 09:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:14:21] Production.INFO: ==32276== Releasing lock... [2024-12-25 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:14:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:15:05 [end_date_ymd] => 2024-12-25 09:15:05 [RateCDR] => 1 ) [2024-12-25 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:15:05' and `end` < '2024-12-25 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:15:17] Production.INFO: count ==67 [2024-12-25 09:15:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:15:05 - End Time 2024-12-25 09:15:05 [2024-12-25 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098534', 'tblTempUsageDetail_20' ) start [2024-12-25 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098534', 'tblTempUsageDetail_20' ) end [2024-12-25 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098534', 'tblTempVendorCDR_20' ) start [2024-12-25 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098534', 'tblTempVendorCDR_20' ) end [2024-12-25 09:15:17] Production.INFO: ProcessCDR(1,14098534,1,1,2) [2024-12-25 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098534', 'tblTempUsageDetail_20' ) start [2024-12-25 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098534', 'tblTempUsageDetail_20' ) end [2024-12-25 09:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:15:20] Production.INFO: ==32379== Releasing lock... [2024-12-25 09:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:15:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 09:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:16:04 [end_date_ymd] => 2024-12-25 09:16:04 [RateCDR] => 1 ) [2024-12-25 09: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-25 06:16:04' and `end` < '2024-12-25 09: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-25 09:16:16] Production.INFO: count ==67 [2024-12-25 09:16:16] Production.ERROR: pbx CDR StartTime 2024-12-25 06:16:04 - End Time 2024-12-25 09:16:04 [2024-12-25 09:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098539', 'tblTempUsageDetail_20' ) start [2024-12-25 09:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098539', 'tblTempUsageDetail_20' ) end [2024-12-25 09:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098539', 'tblTempVendorCDR_20' ) start [2024-12-25 09:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098539', 'tblTempVendorCDR_20' ) end [2024-12-25 09:16:16] Production.INFO: ProcessCDR(1,14098539,1,1,2) [2024-12-25 09:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:16:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098539', 'tblTempUsageDetail_20' ) start [2024-12-25 09:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098539', 'tblTempUsageDetail_20' ) end [2024-12-25 09:16:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:16:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:16:19] Production.INFO: ==32470== Releasing lock... [2024-12-25 09:16:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:16:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:17:05 [end_date_ymd] => 2024-12-25 09:17:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:17:05' and `end` < '2024-12-25 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-25 09:17:17] Production.INFO: count ==67 [2024-12-25 09:17:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:17:05 - End Time 2024-12-25 09:17:05 [2024-12-25 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098544', 'tblTempUsageDetail_20' ) start [2024-12-25 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098544', 'tblTempUsageDetail_20' ) end [2024-12-25 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098544', 'tblTempVendorCDR_20' ) start [2024-12-25 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098544', 'tblTempVendorCDR_20' ) end [2024-12-25 09:17:17] Production.INFO: ProcessCDR(1,14098544,1,1,2) [2024-12-25 09:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098544', 'tblTempUsageDetail_20' ) start [2024-12-25 09:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098544', 'tblTempUsageDetail_20' ) end [2024-12-25 09:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:17:20] Production.INFO: ==32544== Releasing lock... [2024-12-25 09:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:17:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:18:05 [end_date_ymd] => 2024-12-25 09:18:05 [RateCDR] => 1 ) [2024-12-25 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:18:05' and `end` < '2024-12-25 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:18:18] Production.INFO: count ==67 [2024-12-25 09:18:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:18:05 - End Time 2024-12-25 09:18:05 [2024-12-25 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098549', 'tblTempUsageDetail_20' ) start [2024-12-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098549', 'tblTempUsageDetail_20' ) end [2024-12-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098549', 'tblTempVendorCDR_20' ) start [2024-12-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098549', 'tblTempVendorCDR_20' ) end [2024-12-25 09:18:18] Production.INFO: ProcessCDR(1,14098549,1,1,2) [2024-12-25 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098549', 'tblTempUsageDetail_20' ) start [2024-12-25 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098549', 'tblTempUsageDetail_20' ) end [2024-12-25 09:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:18:21] Production.INFO: ==32623== Releasing lock... [2024-12-25 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:18:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:19:05 [end_date_ymd] => 2024-12-25 09:19:05 [RateCDR] => 1 ) [2024-12-25 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:19:05' and `end` < '2024-12-25 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:19:19] Production.INFO: count ==68 [2024-12-25 09:19:19] Production.ERROR: pbx CDR StartTime 2024-12-25 06:19:05 - End Time 2024-12-25 09:19:05 [2024-12-25 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098554', 'tblTempUsageDetail_20' ) start [2024-12-25 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098554', 'tblTempUsageDetail_20' ) end [2024-12-25 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098554', 'tblTempVendorCDR_20' ) start [2024-12-25 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098554', 'tblTempVendorCDR_20' ) end [2024-12-25 09:19:19] Production.INFO: ProcessCDR(1,14098554,1,1,2) [2024-12-25 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098554', 'tblTempUsageDetail_20' ) start [2024-12-25 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098554', 'tblTempUsageDetail_20' ) end [2024-12-25 09:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:19:23] Production.INFO: ==32697== Releasing lock... [2024-12-25 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:19:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:20:05 [end_date_ymd] => 2024-12-25 09:20:05 [RateCDR] => 1 ) [2024-12-25 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:20:05' and `end` < '2024-12-25 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:20:17] Production.INFO: count ==74 [2024-12-25 09:20:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:20:05 - End Time 2024-12-25 09:20:05 [2024-12-25 09:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098560', 'tblTempUsageDetail_20' ) start [2024-12-25 09:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098560', 'tblTempUsageDetail_20' ) end [2024-12-25 09:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098560', 'tblTempVendorCDR_20' ) start [2024-12-25 09:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098560', 'tblTempVendorCDR_20' ) end [2024-12-25 09:20:17] Production.INFO: ProcessCDR(1,14098560,1,1,2) [2024-12-25 09:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098560', 'tblTempUsageDetail_20' ) start [2024-12-25 09:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098560', 'tblTempUsageDetail_20' ) end [2024-12-25 09:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:20:20] Production.INFO: ==317== Releasing lock... [2024-12-25 09:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:20:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-25 09:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:21:04 [end_date_ymd] => 2024-12-25 09:21:04 [RateCDR] => 1 ) [2024-12-25 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-25 06:21:04' and `end` < '2024-12-25 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-25 09:21:17] Production.INFO: count ==81 [2024-12-25 09:21:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:21:04 - End Time 2024-12-25 09:21:04 [2024-12-25 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098565', 'tblTempUsageDetail_20' ) start [2024-12-25 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098565', 'tblTempUsageDetail_20' ) end [2024-12-25 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098565', 'tblTempVendorCDR_20' ) start [2024-12-25 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098565', 'tblTempVendorCDR_20' ) end [2024-12-25 09:21:17] Production.INFO: ProcessCDR(1,14098565,1,1,2) [2024-12-25 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098565', 'tblTempUsageDetail_20' ) start [2024-12-25 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098565', 'tblTempUsageDetail_20' ) end [2024-12-25 09:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:21:20] Production.INFO: ==405== Releasing lock... [2024-12-25 09:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:21:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:22:05 [end_date_ymd] => 2024-12-25 09:22:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:22:05' and `end` < '2024-12-25 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-25 09:22:18] Production.INFO: count ==81 [2024-12-25 09:22:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:22:05 - End Time 2024-12-25 09:22:05 [2024-12-25 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098570', 'tblTempUsageDetail_20' ) start [2024-12-25 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098570', 'tblTempUsageDetail_20' ) end [2024-12-25 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098570', 'tblTempVendorCDR_20' ) start [2024-12-25 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098570', 'tblTempVendorCDR_20' ) end [2024-12-25 09:22:18] Production.INFO: ProcessCDR(1,14098570,1,1,2) [2024-12-25 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098570', 'tblTempUsageDetail_20' ) start [2024-12-25 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098570', 'tblTempUsageDetail_20' ) end [2024-12-25 09:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:22:21] Production.INFO: ==487== Releasing lock... [2024-12-25 09:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:22:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:23:04 [end_date_ymd] => 2024-12-25 09:23:04 [RateCDR] => 1 ) [2024-12-25 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-25 06:23:04' and `end` < '2024-12-25 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-25 09:23:17] Production.INFO: count ==81 [2024-12-25 09:23:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:23:04 - End Time 2024-12-25 09:23:04 [2024-12-25 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098575', 'tblTempUsageDetail_20' ) start [2024-12-25 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098575', 'tblTempUsageDetail_20' ) end [2024-12-25 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098575', 'tblTempVendorCDR_20' ) start [2024-12-25 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098575', 'tblTempVendorCDR_20' ) end [2024-12-25 09:23:17] Production.INFO: ProcessCDR(1,14098575,1,1,2) [2024-12-25 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098575', 'tblTempUsageDetail_20' ) start [2024-12-25 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098575', 'tblTempUsageDetail_20' ) end [2024-12-25 09:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:23:20] Production.INFO: ==570== Releasing lock... [2024-12-25 09:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:23:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:24:04 [end_date_ymd] => 2024-12-25 09:24:04 [RateCDR] => 1 ) [2024-12-25 09: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-25 06:24:04' and `end` < '2024-12-25 09: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-25 09:24:18] Production.INFO: count ==81 [2024-12-25 09:24:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:24:04 - End Time 2024-12-25 09:24:04 [2024-12-25 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098580', 'tblTempUsageDetail_20' ) start [2024-12-25 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098580', 'tblTempUsageDetail_20' ) end [2024-12-25 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098580', 'tblTempVendorCDR_20' ) start [2024-12-25 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098580', 'tblTempVendorCDR_20' ) end [2024-12-25 09:24:18] Production.INFO: ProcessCDR(1,14098580,1,1,2) [2024-12-25 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098580', 'tblTempUsageDetail_20' ) start [2024-12-25 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098580', 'tblTempUsageDetail_20' ) end [2024-12-25 09:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:24:21] Production.INFO: ==664== Releasing lock... [2024-12-25 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:24:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:25:05 [end_date_ymd] => 2024-12-25 09:25:05 [RateCDR] => 1 ) [2024-12-25 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:25:05' and `end` < '2024-12-25 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:25:18] Production.INFO: count ==81 [2024-12-25 09:25:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:25:05 - End Time 2024-12-25 09:25:05 [2024-12-25 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098585', 'tblTempUsageDetail_20' ) start [2024-12-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098585', 'tblTempUsageDetail_20' ) end [2024-12-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098585', 'tblTempVendorCDR_20' ) start [2024-12-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098585', 'tblTempVendorCDR_20' ) end [2024-12-25 09:25:18] Production.INFO: ProcessCDR(1,14098585,1,1,2) [2024-12-25 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098585', 'tblTempUsageDetail_20' ) start [2024-12-25 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098585', 'tblTempUsageDetail_20' ) end [2024-12-25 09:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:25:21] Production.INFO: ==776== Releasing lock... [2024-12-25 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:25:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:26:05 [end_date_ymd] => 2024-12-25 09:26:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:26:05' and `end` < '2024-12-25 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-25 09:26:17] Production.INFO: count ==81 [2024-12-25 09:26:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:26:05 - End Time 2024-12-25 09:26:05 [2024-12-25 09:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098590', 'tblTempUsageDetail_20' ) start [2024-12-25 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098590', 'tblTempUsageDetail_20' ) end [2024-12-25 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098590', 'tblTempVendorCDR_20' ) start [2024-12-25 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098590', 'tblTempVendorCDR_20' ) end [2024-12-25 09:26:17] Production.INFO: ProcessCDR(1,14098590,1,1,2) [2024-12-25 09:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098590', 'tblTempUsageDetail_20' ) start [2024-12-25 09:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098590', 'tblTempUsageDetail_20' ) end [2024-12-25 09:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:26:20] Production.INFO: ==856== Releasing lock... [2024-12-25 09:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:26:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:27:05 [end_date_ymd] => 2024-12-25 09:27:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:27:05' and `end` < '2024-12-25 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-25 09:27:18] Production.INFO: count ==81 [2024-12-25 09:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:27:05 - End Time 2024-12-25 09:27:05 [2024-12-25 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098595', 'tblTempUsageDetail_20' ) start [2024-12-25 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098595', 'tblTempUsageDetail_20' ) end [2024-12-25 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098595', 'tblTempVendorCDR_20' ) start [2024-12-25 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098595', 'tblTempVendorCDR_20' ) end [2024-12-25 09:27:18] Production.INFO: ProcessCDR(1,14098595,1,1,2) [2024-12-25 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098595', 'tblTempUsageDetail_20' ) start [2024-12-25 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098595', 'tblTempUsageDetail_20' ) end [2024-12-25 09:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:27:21] Production.INFO: ==941== Releasing lock... [2024-12-25 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:27:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:28:05 [end_date_ymd] => 2024-12-25 09:28:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:28:05' and `end` < '2024-12-25 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-25 09:28:17] Production.INFO: count ==81 [2024-12-25 09:28:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:28:05 - End Time 2024-12-25 09:28:05 [2024-12-25 09:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098600', 'tblTempUsageDetail_20' ) start [2024-12-25 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098600', 'tblTempUsageDetail_20' ) end [2024-12-25 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098600', 'tblTempVendorCDR_20' ) start [2024-12-25 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098600', 'tblTempVendorCDR_20' ) end [2024-12-25 09:28:17] Production.INFO: ProcessCDR(1,14098600,1,1,2) [2024-12-25 09:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098600', 'tblTempUsageDetail_20' ) start [2024-12-25 09:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098600', 'tblTempUsageDetail_20' ) end [2024-12-25 09:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:28:20] Production.INFO: ==1026== Releasing lock... [2024-12-25 09:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:28:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:29:05 [end_date_ymd] => 2024-12-25 09:29:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:29:05' and `end` < '2024-12-25 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-25 09:29:18] Production.INFO: count ==81 [2024-12-25 09:29:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:29:05 - End Time 2024-12-25 09:29:05 [2024-12-25 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098605', 'tblTempUsageDetail_20' ) start [2024-12-25 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098605', 'tblTempUsageDetail_20' ) end [2024-12-25 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098605', 'tblTempVendorCDR_20' ) start [2024-12-25 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098605', 'tblTempVendorCDR_20' ) end [2024-12-25 09:29:18] Production.INFO: ProcessCDR(1,14098605,1,1,2) [2024-12-25 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098605', 'tblTempUsageDetail_20' ) start [2024-12-25 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098605', 'tblTempUsageDetail_20' ) end [2024-12-25 09:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:29:21] Production.INFO: ==1161== Releasing lock... [2024-12-25 09:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:29:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:30:05 [end_date_ymd] => 2024-12-25 09:30:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:30:05' and `end` < '2024-12-25 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-25 09:30:17] Production.INFO: count ==78 [2024-12-25 09:30:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:30:05 - End Time 2024-12-25 09:30:05 [2024-12-25 09:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098610', 'tblTempUsageDetail_20' ) start [2024-12-25 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098610', 'tblTempUsageDetail_20' ) end [2024-12-25 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098610', 'tblTempVendorCDR_20' ) start [2024-12-25 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098610', 'tblTempVendorCDR_20' ) end [2024-12-25 09:30:17] Production.INFO: ProcessCDR(1,14098610,1,1,2) [2024-12-25 09:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098610', 'tblTempUsageDetail_20' ) start [2024-12-25 09:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098610', 'tblTempUsageDetail_20' ) end [2024-12-25 09:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:30:20] Production.INFO: ==1261== Releasing lock... [2024-12-25 09:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:30:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:31:05 [end_date_ymd] => 2024-12-25 09:31:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:31:05' and `end` < '2024-12-25 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-25 09:31:18] Production.INFO: count ==78 [2024-12-25 09:31:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:31:05 - End Time 2024-12-25 09:31:05 [2024-12-25 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098616', 'tblTempUsageDetail_20' ) start [2024-12-25 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098616', 'tblTempUsageDetail_20' ) end [2024-12-25 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098616', 'tblTempVendorCDR_20' ) start [2024-12-25 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098616', 'tblTempVendorCDR_20' ) end [2024-12-25 09:31:18] Production.INFO: ProcessCDR(1,14098616,1,1,2) [2024-12-25 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098616', 'tblTempUsageDetail_20' ) start [2024-12-25 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098616', 'tblTempUsageDetail_20' ) end [2024-12-25 09:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:31:21] Production.INFO: ==1347== Releasing lock... [2024-12-25 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:31:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:32:05 [end_date_ymd] => 2024-12-25 09:32:05 [RateCDR] => 1 ) [2024-12-25 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:32:05' and `end` < '2024-12-25 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:32:17] Production.INFO: count ==78 [2024-12-25 09:32:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:32:05 - End Time 2024-12-25 09:32:05 [2024-12-25 09:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098621', 'tblTempUsageDetail_20' ) start [2024-12-25 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098621', 'tblTempUsageDetail_20' ) end [2024-12-25 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098621', 'tblTempVendorCDR_20' ) start [2024-12-25 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098621', 'tblTempVendorCDR_20' ) end [2024-12-25 09:32:17] Production.INFO: ProcessCDR(1,14098621,1,1,2) [2024-12-25 09:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098621', 'tblTempUsageDetail_20' ) start [2024-12-25 09:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098621', 'tblTempUsageDetail_20' ) end [2024-12-25 09:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:32:20] Production.INFO: ==1435== Releasing lock... [2024-12-25 09:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:32:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:33:04 [end_date_ymd] => 2024-12-25 09:33:04 [RateCDR] => 1 ) [2024-12-25 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-25 06:33:04' and `end` < '2024-12-25 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-25 09:33:17] Production.INFO: count ==78 [2024-12-25 09:33:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:33:04 - End Time 2024-12-25 09:33:04 [2024-12-25 09:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098626', 'tblTempUsageDetail_20' ) start [2024-12-25 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098626', 'tblTempUsageDetail_20' ) end [2024-12-25 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098626', 'tblTempVendorCDR_20' ) start [2024-12-25 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098626', 'tblTempVendorCDR_20' ) end [2024-12-25 09:33:17] Production.INFO: ProcessCDR(1,14098626,1,1,2) [2024-12-25 09:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098626', 'tblTempUsageDetail_20' ) start [2024-12-25 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098626', 'tblTempUsageDetail_20' ) end [2024-12-25 09:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:33:20] Production.INFO: ==1549== Releasing lock... [2024-12-25 09:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:33:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:34:05 [end_date_ymd] => 2024-12-25 09:34:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:34:05' and `end` < '2024-12-25 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-25 09:34:18] Production.INFO: count ==78 [2024-12-25 09:34:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:34:05 - End Time 2024-12-25 09:34:05 [2024-12-25 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098631', 'tblTempUsageDetail_20' ) start [2024-12-25 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098631', 'tblTempUsageDetail_20' ) end [2024-12-25 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098631', 'tblTempVendorCDR_20' ) start [2024-12-25 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098631', 'tblTempVendorCDR_20' ) end [2024-12-25 09:34:18] Production.INFO: ProcessCDR(1,14098631,1,1,2) [2024-12-25 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098631', 'tblTempUsageDetail_20' ) start [2024-12-25 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098631', 'tblTempUsageDetail_20' ) end [2024-12-25 09:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:34:21] Production.INFO: ==1637== Releasing lock... [2024-12-25 09:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:34:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:35:05 [end_date_ymd] => 2024-12-25 09:35:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:35:05' and `end` < '2024-12-25 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:35:17] Production.INFO: count ==78 [2024-12-25 09:35:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:35:05 - End Time 2024-12-25 09:35:05 [2024-12-25 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098636', 'tblTempUsageDetail_20' ) start [2024-12-25 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098636', 'tblTempUsageDetail_20' ) end [2024-12-25 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098636', 'tblTempVendorCDR_20' ) start [2024-12-25 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098636', 'tblTempVendorCDR_20' ) end [2024-12-25 09:35:17] Production.INFO: ProcessCDR(1,14098636,1,1,2) [2024-12-25 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098636', 'tblTempUsageDetail_20' ) start [2024-12-25 09:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098636', 'tblTempUsageDetail_20' ) end [2024-12-25 09:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:35:20] Production.INFO: ==1719== Releasing lock... [2024-12-25 09:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:35:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:36:05 [end_date_ymd] => 2024-12-25 09:36:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:36:05' and `end` < '2024-12-25 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-25 09:36:17] Production.INFO: count ==78 [2024-12-25 09:36:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:36:05 - End Time 2024-12-25 09:36:05 [2024-12-25 09:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098641', 'tblTempUsageDetail_20' ) start [2024-12-25 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098641', 'tblTempUsageDetail_20' ) end [2024-12-25 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098641', 'tblTempVendorCDR_20' ) start [2024-12-25 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098641', 'tblTempVendorCDR_20' ) end [2024-12-25 09:36:17] Production.INFO: ProcessCDR(1,14098641,1,1,2) [2024-12-25 09:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098641', 'tblTempUsageDetail_20' ) start [2024-12-25 09:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098641', 'tblTempUsageDetail_20' ) end [2024-12-25 09:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:36:20] Production.INFO: ==1814== Releasing lock... [2024-12-25 09:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:36:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:37:05 [end_date_ymd] => 2024-12-25 09:37:05 [RateCDR] => 1 ) [2024-12-25 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:37:05' and `end` < '2024-12-25 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:37:17] Production.INFO: count ==79 [2024-12-25 09:37:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:37:05 - End Time 2024-12-25 09:37:05 [2024-12-25 09:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098646', 'tblTempUsageDetail_20' ) start [2024-12-25 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098646', 'tblTempUsageDetail_20' ) end [2024-12-25 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098646', 'tblTempVendorCDR_20' ) start [2024-12-25 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098646', 'tblTempVendorCDR_20' ) end [2024-12-25 09:37:17] Production.INFO: ProcessCDR(1,14098646,1,1,2) [2024-12-25 09:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098646', 'tblTempUsageDetail_20' ) start [2024-12-25 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098646', 'tblTempUsageDetail_20' ) end [2024-12-25 09:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:37:21] Production.INFO: ==1893== Releasing lock... [2024-12-25 09:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:37:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:38:05 [end_date_ymd] => 2024-12-25 09:38:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:38:05' and `end` < '2024-12-25 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-25 09:38:18] Production.INFO: count ==79 [2024-12-25 09:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:38:05 - End Time 2024-12-25 09:38:05 [2024-12-25 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098651', 'tblTempUsageDetail_20' ) start [2024-12-25 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098651', 'tblTempUsageDetail_20' ) end [2024-12-25 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098651', 'tblTempVendorCDR_20' ) start [2024-12-25 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098651', 'tblTempVendorCDR_20' ) end [2024-12-25 09:38:18] Production.INFO: ProcessCDR(1,14098651,1,1,2) [2024-12-25 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098651', 'tblTempUsageDetail_20' ) start [2024-12-25 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098651', 'tblTempUsageDetail_20' ) end [2024-12-25 09:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:38:21] Production.INFO: ==1982== Releasing lock... [2024-12-25 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:38:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:39:05 [end_date_ymd] => 2024-12-25 09:39:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:39:05' and `end` < '2024-12-25 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-25 09:39:18] Production.INFO: count ==79 [2024-12-25 09:39:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:39:05 - End Time 2024-12-25 09:39:05 [2024-12-25 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098656', 'tblTempUsageDetail_20' ) start [2024-12-25 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098656', 'tblTempUsageDetail_20' ) end [2024-12-25 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098656', 'tblTempVendorCDR_20' ) start [2024-12-25 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098656', 'tblTempVendorCDR_20' ) end [2024-12-25 09:39:18] Production.INFO: ProcessCDR(1,14098656,1,1,2) [2024-12-25 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098656', 'tblTempUsageDetail_20' ) start [2024-12-25 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098656', 'tblTempUsageDetail_20' ) end [2024-12-25 09:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:39:21] Production.INFO: ==2061== Releasing lock... [2024-12-25 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:39:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:40:06 [end_date_ymd] => 2024-12-25 09:40:06 [RateCDR] => 1 ) [2024-12-25 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-25 06:40:06' and `end` < '2024-12-25 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-25 09:40:18] Production.INFO: count ==79 [2024-12-25 09:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:40:06 - End Time 2024-12-25 09:40:06 [2024-12-25 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098662', 'tblTempUsageDetail_20' ) start [2024-12-25 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098662', 'tblTempUsageDetail_20' ) end [2024-12-25 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098662', 'tblTempVendorCDR_20' ) start [2024-12-25 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098662', 'tblTempVendorCDR_20' ) end [2024-12-25 09:40:18] Production.INFO: ProcessCDR(1,14098662,1,1,2) [2024-12-25 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098662', 'tblTempUsageDetail_20' ) start [2024-12-25 09:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098662', 'tblTempUsageDetail_20' ) end [2024-12-25 09:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:40:21] Production.INFO: ==2151== Releasing lock... [2024-12-25 09:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:40:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:41:05 [end_date_ymd] => 2024-12-25 09:41:05 [RateCDR] => 1 ) [2024-12-25 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:41:05' and `end` < '2024-12-25 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:41:17] Production.INFO: count ==79 [2024-12-25 09:41:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:41:05 - End Time 2024-12-25 09:41:05 [2024-12-25 09:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098667', 'tblTempUsageDetail_20' ) start [2024-12-25 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098667', 'tblTempUsageDetail_20' ) end [2024-12-25 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098667', 'tblTempVendorCDR_20' ) start [2024-12-25 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098667', 'tblTempVendorCDR_20' ) end [2024-12-25 09:41:17] Production.INFO: ProcessCDR(1,14098667,1,1,2) [2024-12-25 09:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098667', 'tblTempUsageDetail_20' ) start [2024-12-25 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098667', 'tblTempUsageDetail_20' ) end [2024-12-25 09:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:41:21] Production.INFO: ==2239== Releasing lock... [2024-12-25 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:41:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-25 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:42:05 [end_date_ymd] => 2024-12-25 09:42:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:42:05' and `end` < '2024-12-25 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-25 09:42:20] Production.INFO: count ==89 [2024-12-25 09:42:20] Production.ERROR: pbx CDR StartTime 2024-12-25 06:42:05 - End Time 2024-12-25 09:42:05 [2024-12-25 09:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098672', 'tblTempUsageDetail_20' ) start [2024-12-25 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098672', 'tblTempUsageDetail_20' ) end [2024-12-25 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098672', 'tblTempVendorCDR_20' ) start [2024-12-25 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098672', 'tblTempVendorCDR_20' ) end [2024-12-25 09:42:20] Production.INFO: ProcessCDR(1,14098672,1,1,2) [2024-12-25 09:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098672', 'tblTempUsageDetail_20' ) start [2024-12-25 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098672', 'tblTempUsageDetail_20' ) end [2024-12-25 09:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:42:23] Production.INFO: ==2319== Releasing lock... [2024-12-25 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:42:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-25 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:43:05 [end_date_ymd] => 2024-12-25 09:43:05 [RateCDR] => 1 ) [2024-12-25 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:43:05' and `end` < '2024-12-25 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:43:20] Production.INFO: count ==103 [2024-12-25 09:43:20] Production.ERROR: pbx CDR StartTime 2024-12-25 06:43:05 - End Time 2024-12-25 09:43:05 [2024-12-25 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098677', 'tblTempUsageDetail_20' ) start [2024-12-25 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098677', 'tblTempUsageDetail_20' ) end [2024-12-25 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098677', 'tblTempVendorCDR_20' ) start [2024-12-25 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098677', 'tblTempVendorCDR_20' ) end [2024-12-25 09:43:20] Production.INFO: ProcessCDR(1,14098677,1,1,2) [2024-12-25 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098677', 'tblTempUsageDetail_20' ) start [2024-12-25 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098677', 'tblTempUsageDetail_20' ) end [2024-12-25 09:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:43:23] Production.INFO: ==2409== Releasing lock... [2024-12-25 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:43:23] Production.INFO: 29 MB #Memory Used# [2024-12-25 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:44:05 [end_date_ymd] => 2024-12-25 09:44:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:44:05' and `end` < '2024-12-25 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-25 09:44:17] Production.INFO: count ==109 [2024-12-25 09:44:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:44:05 - End Time 2024-12-25 09:44:05 [2024-12-25 09:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098682', 'tblTempUsageDetail_20' ) start [2024-12-25 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098682', 'tblTempUsageDetail_20' ) end [2024-12-25 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098682', 'tblTempVendorCDR_20' ) start [2024-12-25 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098682', 'tblTempVendorCDR_20' ) end [2024-12-25 09:44:17] Production.INFO: ProcessCDR(1,14098682,1,1,2) [2024-12-25 09:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098682', 'tblTempUsageDetail_20' ) start [2024-12-25 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098682', 'tblTempUsageDetail_20' ) end [2024-12-25 09:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:44:22] Production.INFO: ==2490== Releasing lock... [2024-12-25 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:44:22] Production.INFO: 29 MB #Memory Used# [2024-12-25 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:45:05 [end_date_ymd] => 2024-12-25 09:45:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:45:05' and `end` < '2024-12-25 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-25 09:45:17] Production.INFO: count ==123 [2024-12-25 09:45:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:45:05 - End Time 2024-12-25 09:45:05 [2024-12-25 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098687', 'tblTempUsageDetail_20' ) start [2024-12-25 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098687', 'tblTempUsageDetail_20' ) end [2024-12-25 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098687', 'tblTempVendorCDR_20' ) start [2024-12-25 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098687', 'tblTempVendorCDR_20' ) end [2024-12-25 09:45:18] Production.INFO: ProcessCDR(1,14098687,1,1,2) [2024-12-25 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098687', 'tblTempUsageDetail_20' ) start [2024-12-25 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098687', 'tblTempUsageDetail_20' ) end [2024-12-25 09:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:45:20] Production.INFO: ==2615== Releasing lock... [2024-12-25 09:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:45:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-25 09:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:46:04 [end_date_ymd] => 2024-12-25 09:46:04 [RateCDR] => 1 ) [2024-12-25 09: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-25 06:46:04' and `end` < '2024-12-25 09: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-25 09:46:17] Production.INFO: count ==133 [2024-12-25 09:46:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:46:04 - End Time 2024-12-25 09:46:04 [2024-12-25 09:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098692', 'tblTempUsageDetail_20' ) start [2024-12-25 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098692', 'tblTempUsageDetail_20' ) end [2024-12-25 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098692', 'tblTempVendorCDR_20' ) start [2024-12-25 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098692', 'tblTempVendorCDR_20' ) end [2024-12-25 09:46:17] Production.INFO: ProcessCDR(1,14098692,1,1,2) [2024-12-25 09:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098692', 'tblTempUsageDetail_20' ) start [2024-12-25 09:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098692', 'tblTempUsageDetail_20' ) end [2024-12-25 09:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:46:20] Production.INFO: ==2700== Releasing lock... [2024-12-25 09:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:46:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-25 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:47:05 [end_date_ymd] => 2024-12-25 09:47:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:47:05' and `end` < '2024-12-25 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-25 09:47:17] Production.INFO: count ==147 [2024-12-25 09:47:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:47:05 - End Time 2024-12-25 09:47:05 [2024-12-25 09:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098697', 'tblTempUsageDetail_20' ) start [2024-12-25 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098697', 'tblTempUsageDetail_20' ) end [2024-12-25 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098697', 'tblTempVendorCDR_20' ) start [2024-12-25 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098697', 'tblTempVendorCDR_20' ) end [2024-12-25 09:47:17] Production.INFO: ProcessCDR(1,14098697,1,1,2) [2024-12-25 09:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098697', 'tblTempUsageDetail_20' ) start [2024-12-25 09:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098697', 'tblTempUsageDetail_20' ) end [2024-12-25 09:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:47:20] Production.INFO: ==2783== Releasing lock... [2024-12-25 09:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:47:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-25 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:48:04 [end_date_ymd] => 2024-12-25 09:48:04 [RateCDR] => 1 ) [2024-12-25 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-25 06:48:04' and `end` < '2024-12-25 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-25 09:48:18] Production.INFO: count ==164 [2024-12-25 09:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:48:04 - End Time 2024-12-25 09:48:04 [2024-12-25 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098702', 'tblTempUsageDetail_20' ) start [2024-12-25 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098702', 'tblTempUsageDetail_20' ) end [2024-12-25 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098702', 'tblTempVendorCDR_20' ) start [2024-12-25 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098702', 'tblTempVendorCDR_20' ) end [2024-12-25 09:48:18] Production.INFO: ProcessCDR(1,14098702,1,1,2) [2024-12-25 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098702', 'tblTempUsageDetail_20' ) start [2024-12-25 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098702', 'tblTempUsageDetail_20' ) end [2024-12-25 09:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:48:21] Production.INFO: ==2868== Releasing lock... [2024-12-25 09:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:48:21] Production.INFO: 30 MB #Memory Used# [2024-12-25 09:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:49:04 [end_date_ymd] => 2024-12-25 09:49:04 [RateCDR] => 1 ) [2024-12-25 09: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-25 06:49:04' and `end` < '2024-12-25 09: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-25 09:49:17] Production.INFO: count ==164 [2024-12-25 09:49:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:49:04 - End Time 2024-12-25 09:49:04 [2024-12-25 09:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098707', 'tblTempUsageDetail_20' ) start [2024-12-25 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098707', 'tblTempUsageDetail_20' ) end [2024-12-25 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098707', 'tblTempVendorCDR_20' ) start [2024-12-25 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098707', 'tblTempVendorCDR_20' ) end [2024-12-25 09:49:17] Production.INFO: ProcessCDR(1,14098707,1,1,2) [2024-12-25 09:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098707', 'tblTempUsageDetail_20' ) start [2024-12-25 09:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098707', 'tblTempUsageDetail_20' ) end [2024-12-25 09:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:49:20] Production.INFO: ==2953== Releasing lock... [2024-12-25 09:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:49:20] Production.INFO: 30 MB #Memory Used# [2024-12-25 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:50:06 [end_date_ymd] => 2024-12-25 09:50:06 [RateCDR] => 1 ) [2024-12-25 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:50:06' and `end` < '2024-12-25 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:50:18] Production.INFO: count ==163 [2024-12-25 09:50:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:50:06 - End Time 2024-12-25 09:50:06 [2024-12-25 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098712', 'tblTempUsageDetail_20' ) start [2024-12-25 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098712', 'tblTempUsageDetail_20' ) end [2024-12-25 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098712', 'tblTempVendorCDR_20' ) start [2024-12-25 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098712', 'tblTempVendorCDR_20' ) end [2024-12-25 09:50:18] Production.INFO: ProcessCDR(1,14098712,1,1,2) [2024-12-25 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098712', 'tblTempUsageDetail_20' ) start [2024-12-25 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098712', 'tblTempUsageDetail_20' ) end [2024-12-25 09:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:50:23] Production.INFO: ==3039== Releasing lock... [2024-12-25 09:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:50:23] Production.INFO: 29.5 MB #Memory Used# [2024-12-25 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:51:05 [end_date_ymd] => 2024-12-25 09:51:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:51:05' and `end` < '2024-12-25 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-25 09:51:17] Production.INFO: count ==173 [2024-12-25 09:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:51:05 - End Time 2024-12-25 09:51:05 [2024-12-25 09:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098718', 'tblTempUsageDetail_20' ) start [2024-12-25 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098718', 'tblTempUsageDetail_20' ) end [2024-12-25 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098718', 'tblTempVendorCDR_20' ) start [2024-12-25 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098718', 'tblTempVendorCDR_20' ) end [2024-12-25 09:51:17] Production.INFO: ProcessCDR(1,14098718,1,1,2) [2024-12-25 09:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098718', 'tblTempUsageDetail_20' ) start [2024-12-25 09:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098718', 'tblTempUsageDetail_20' ) end [2024-12-25 09:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:51:20] Production.INFO: ==3125== Releasing lock... [2024-12-25 09:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:51:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:52:05 [end_date_ymd] => 2024-12-25 09:52:05 [RateCDR] => 1 ) [2024-12-25 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:52:05' and `end` < '2024-12-25 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:52:18] Production.INFO: count ==177 [2024-12-25 09:52:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:52:05 - End Time 2024-12-25 09:52:05 [2024-12-25 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098723', 'tblTempUsageDetail_20' ) start [2024-12-25 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098723', 'tblTempUsageDetail_20' ) end [2024-12-25 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098723', 'tblTempVendorCDR_20' ) start [2024-12-25 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098723', 'tblTempVendorCDR_20' ) end [2024-12-25 09:52:18] Production.INFO: ProcessCDR(1,14098723,1,1,2) [2024-12-25 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098723', 'tblTempUsageDetail_20' ) start [2024-12-25 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098723', 'tblTempUsageDetail_20' ) end [2024-12-25 09:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:52:21] Production.INFO: ==3206== Releasing lock... [2024-12-25 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:52:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-25 09:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:53:04 [end_date_ymd] => 2024-12-25 09:53:04 [RateCDR] => 1 ) [2024-12-25 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-25 06:53:04' and `end` < '2024-12-25 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-25 09:53:17] Production.INFO: count ==190 [2024-12-25 09:53:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:53:04 - End Time 2024-12-25 09:53:04 [2024-12-25 09:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098728', 'tblTempUsageDetail_20' ) start [2024-12-25 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098728', 'tblTempUsageDetail_20' ) end [2024-12-25 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098728', 'tblTempVendorCDR_20' ) start [2024-12-25 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098728', 'tblTempVendorCDR_20' ) end [2024-12-25 09:53:17] Production.INFO: ProcessCDR(1,14098728,1,1,2) [2024-12-25 09:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098728', 'tblTempUsageDetail_20' ) start [2024-12-25 09:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098728', 'tblTempUsageDetail_20' ) end [2024-12-25 09:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:53:20] Production.INFO: ==3287== Releasing lock... [2024-12-25 09:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:53:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-25 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:54:05 [end_date_ymd] => 2024-12-25 09:54:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:54:05' and `end` < '2024-12-25 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-25 09:54:18] Production.INFO: count ==192 [2024-12-25 09:54:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:54:05 - End Time 2024-12-25 09:54:05 [2024-12-25 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098733', 'tblTempUsageDetail_20' ) start [2024-12-25 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098733', 'tblTempUsageDetail_20' ) end [2024-12-25 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098733', 'tblTempVendorCDR_20' ) start [2024-12-25 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098733', 'tblTempVendorCDR_20' ) end [2024-12-25 09:54:18] Production.INFO: ProcessCDR(1,14098733,1,1,2) [2024-12-25 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098733', 'tblTempUsageDetail_20' ) start [2024-12-25 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098733', 'tblTempUsageDetail_20' ) end [2024-12-25 09:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:54:21] Production.INFO: ==3373== Releasing lock... [2024-12-25 09:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:54:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-25 09:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:55:04 [end_date_ymd] => 2024-12-25 09:55:04 [RateCDR] => 1 ) [2024-12-25 09: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-25 06:55:04' and `end` < '2024-12-25 09: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-25 09:55:17] Production.INFO: count ==192 [2024-12-25 09:55:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:55:04 - End Time 2024-12-25 09:55:04 [2024-12-25 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098738', 'tblTempUsageDetail_20' ) start [2024-12-25 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098738', 'tblTempUsageDetail_20' ) end [2024-12-25 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098738', 'tblTempVendorCDR_20' ) start [2024-12-25 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098738', 'tblTempVendorCDR_20' ) end [2024-12-25 09:55:17] Production.INFO: ProcessCDR(1,14098738,1,1,2) [2024-12-25 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098738', 'tblTempUsageDetail_20' ) start [2024-12-25 09:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098738', 'tblTempUsageDetail_20' ) end [2024-12-25 09:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:55:20] Production.INFO: ==3456== Releasing lock... [2024-12-25 09:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:55:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-25 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:56:05 [end_date_ymd] => 2024-12-25 09:56:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:56:05' and `end` < '2024-12-25 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-25 09:56:17] Production.INFO: count ==197 [2024-12-25 09:56:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:56:05 - End Time 2024-12-25 09:56:05 [2024-12-25 09:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098743', 'tblTempUsageDetail_20' ) start [2024-12-25 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098743', 'tblTempUsageDetail_20' ) end [2024-12-25 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098743', 'tblTempVendorCDR_20' ) start [2024-12-25 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098743', 'tblTempVendorCDR_20' ) end [2024-12-25 09:56:17] Production.INFO: ProcessCDR(1,14098743,1,1,2) [2024-12-25 09:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098743', 'tblTempUsageDetail_20' ) start [2024-12-25 09:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098743', 'tblTempUsageDetail_20' ) end [2024-12-25 09:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:56:20] Production.INFO: ==3547== Releasing lock... [2024-12-25 09:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:56:20] Production.INFO: 30 MB #Memory Used# [2024-12-25 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:57:04 [end_date_ymd] => 2024-12-25 09:57:04 [RateCDR] => 1 ) [2024-12-25 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-25 06:57:04' and `end` < '2024-12-25 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-25 09:57:16] Production.INFO: count ==197 [2024-12-25 09:57:17] Production.ERROR: pbx CDR StartTime 2024-12-25 06:57:04 - End Time 2024-12-25 09:57:04 [2024-12-25 09:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098748', 'tblTempUsageDetail_20' ) start [2024-12-25 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098748', 'tblTempUsageDetail_20' ) end [2024-12-25 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098748', 'tblTempVendorCDR_20' ) start [2024-12-25 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098748', 'tblTempVendorCDR_20' ) end [2024-12-25 09:57:17] Production.INFO: ProcessCDR(1,14098748,1,1,2) [2024-12-25 09:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098748', 'tblTempUsageDetail_20' ) start [2024-12-25 09:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098748', 'tblTempUsageDetail_20' ) end [2024-12-25 09:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:57:20] Production.INFO: ==3626== Releasing lock... [2024-12-25 09:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:57:20] Production.INFO: 30 MB #Memory Used# [2024-12-25 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:58:05 [end_date_ymd] => 2024-12-25 09:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 06:58:05' and `end` < '2024-12-25 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-25 09:58:18] Production.INFO: count ==203 [2024-12-25 09:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:58:05 - End Time 2024-12-25 09:58:05 [2024-12-25 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098753', 'tblTempUsageDetail_20' ) start [2024-12-25 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098753', 'tblTempUsageDetail_20' ) end [2024-12-25 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098753', 'tblTempVendorCDR_20' ) start [2024-12-25 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098753', 'tblTempVendorCDR_20' ) end [2024-12-25 09:58:18] Production.INFO: ProcessCDR(1,14098753,1,1,2) [2024-12-25 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098753', 'tblTempUsageDetail_20' ) start [2024-12-25 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098753', 'tblTempUsageDetail_20' ) end [2024-12-25 09:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:58:21] Production.INFO: ==3714== Releasing lock... [2024-12-25 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:58:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 09:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 06:59:04 [end_date_ymd] => 2024-12-25 09:59:04 [RateCDR] => 1 ) [2024-12-25 09:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 06:59:04' and `end` < '2024-12-25 09:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 09:59:18] Production.INFO: count ==209 [2024-12-25 09:59:18] Production.ERROR: pbx CDR StartTime 2024-12-25 06:59:04 - End Time 2024-12-25 09:59:04 [2024-12-25 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098758', 'tblTempUsageDetail_20' ) start [2024-12-25 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098758', 'tblTempUsageDetail_20' ) end [2024-12-25 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098758', 'tblTempVendorCDR_20' ) start [2024-12-25 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098758', 'tblTempVendorCDR_20' ) end [2024-12-25 09:59:18] Production.INFO: ProcessCDR(1,14098758,1,1,2) [2024-12-25 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 09:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098758', 'tblTempUsageDetail_20' ) start [2024-12-25 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098758', 'tblTempUsageDetail_20' ) end [2024-12-25 09:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 09:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 09:59:21] Production.INFO: ==3798== Releasing lock... [2024-12-25 09:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 09:59:21] Production.INFO: 30 MB #Memory Used# [2024-12-25 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:00:06 [end_date_ymd] => 2024-12-25 10:00:06 [RateCDR] => 1 ) [2024-12-25 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-25 07:00:06' and `end` < '2024-12-25 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-25 10:00:18] Production.INFO: count ==215 [2024-12-25 10:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:00:06 - End Time 2024-12-25 10:00:06 [2024-12-25 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098764', 'tblTempUsageDetail_20' ) start [2024-12-25 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098764', 'tblTempUsageDetail_20' ) end [2024-12-25 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098764', 'tblTempVendorCDR_20' ) start [2024-12-25 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098764', 'tblTempVendorCDR_20' ) end [2024-12-25 10:00:18] Production.INFO: ProcessCDR(1,14098764,1,1,2) [2024-12-25 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098764', 'tblTempUsageDetail_20' ) start [2024-12-25 10:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098764', 'tblTempUsageDetail_20' ) end [2024-12-25 10:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:00:21] Production.INFO: ==3922== Releasing lock... [2024-12-25 10:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:00:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:01:05 [end_date_ymd] => 2024-12-25 10:01:05 [RateCDR] => 1 ) [2024-12-25 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:01:05' and `end` < '2024-12-25 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:01:17] Production.INFO: count ==215 [2024-12-25 10:01:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:01:05 - End Time 2024-12-25 10:01:05 [2024-12-25 10:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098769', 'tblTempUsageDetail_20' ) start [2024-12-25 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098769', 'tblTempUsageDetail_20' ) end [2024-12-25 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098769', 'tblTempVendorCDR_20' ) start [2024-12-25 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098769', 'tblTempVendorCDR_20' ) end [2024-12-25 10:01:17] Production.INFO: ProcessCDR(1,14098769,1,1,2) [2024-12-25 10:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098769', 'tblTempUsageDetail_20' ) start [2024-12-25 10:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098769', 'tblTempUsageDetail_20' ) end [2024-12-25 10:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:01:20] Production.INFO: ==4029== Releasing lock... [2024-12-25 10:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:01:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:02:05 [end_date_ymd] => 2024-12-25 10:02:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:02:05' and `end` < '2024-12-25 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-25 10:02:18] Production.INFO: count ==215 [2024-12-25 10:02:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:02:05 - End Time 2024-12-25 10:02:05 [2024-12-25 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098774', 'tblTempUsageDetail_20' ) start [2024-12-25 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098774', 'tblTempUsageDetail_20' ) end [2024-12-25 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098774', 'tblTempVendorCDR_20' ) start [2024-12-25 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098774', 'tblTempVendorCDR_20' ) end [2024-12-25 10:02:18] Production.INFO: ProcessCDR(1,14098774,1,1,2) [2024-12-25 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098774', 'tblTempUsageDetail_20' ) start [2024-12-25 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098774', 'tblTempUsageDetail_20' ) end [2024-12-25 10:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:02:21] Production.INFO: ==4105== Releasing lock... [2024-12-25 10:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:02:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:03:05 [end_date_ymd] => 2024-12-25 10:03:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:03:05' and `end` < '2024-12-25 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-25 10:03:18] Production.INFO: count ==215 [2024-12-25 10:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:03:05 - End Time 2024-12-25 10:03:05 [2024-12-25 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098779', 'tblTempUsageDetail_20' ) start [2024-12-25 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098779', 'tblTempUsageDetail_20' ) end [2024-12-25 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098779', 'tblTempVendorCDR_20' ) start [2024-12-25 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098779', 'tblTempVendorCDR_20' ) end [2024-12-25 10:03:18] Production.INFO: ProcessCDR(1,14098779,1,1,2) [2024-12-25 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098779', 'tblTempUsageDetail_20' ) start [2024-12-25 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098779', 'tblTempUsageDetail_20' ) end [2024-12-25 10:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:03:21] Production.INFO: ==4192== Releasing lock... [2024-12-25 10:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:03:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:04:05 [end_date_ymd] => 2024-12-25 10:04:05 [RateCDR] => 1 ) [2024-12-25 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:04:05' and `end` < '2024-12-25 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:04:17] Production.INFO: count ==215 [2024-12-25 10:04:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:04:05 - End Time 2024-12-25 10:04:05 [2024-12-25 10:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098784', 'tblTempUsageDetail_20' ) start [2024-12-25 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098784', 'tblTempUsageDetail_20' ) end [2024-12-25 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098784', 'tblTempVendorCDR_20' ) start [2024-12-25 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098784', 'tblTempVendorCDR_20' ) end [2024-12-25 10:04:17] Production.INFO: ProcessCDR(1,14098784,1,1,2) [2024-12-25 10:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098784', 'tblTempUsageDetail_20' ) start [2024-12-25 10:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098784', 'tblTempUsageDetail_20' ) end [2024-12-25 10:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:04:20] Production.INFO: ==4272== Releasing lock... [2024-12-25 10:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:04:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:05:06 [end_date_ymd] => 2024-12-25 10:05:06 [RateCDR] => 1 ) [2024-12-25 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:05:06' and `end` < '2024-12-25 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:05:18] Production.INFO: count ==215 [2024-12-25 10:05:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:05:06 - End Time 2024-12-25 10:05:06 [2024-12-25 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098789', 'tblTempUsageDetail_20' ) start [2024-12-25 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098789', 'tblTempUsageDetail_20' ) end [2024-12-25 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098789', 'tblTempVendorCDR_20' ) start [2024-12-25 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098789', 'tblTempVendorCDR_20' ) end [2024-12-25 10:05:18] Production.INFO: ProcessCDR(1,14098789,1,1,2) [2024-12-25 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098789', 'tblTempUsageDetail_20' ) start [2024-12-25 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098789', 'tblTempUsageDetail_20' ) end [2024-12-25 10:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:05:21] Production.INFO: ==4361== Releasing lock... [2024-12-25 10:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:05:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:06:04 [end_date_ymd] => 2024-12-25 10:06:04 [RateCDR] => 1 ) [2024-12-25 10: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-25 07:06:04' and `end` < '2024-12-25 10: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-25 10:06:17] Production.INFO: count ==215 [2024-12-25 10:06:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:06:04 - End Time 2024-12-25 10:06:04 [2024-12-25 10:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098794', 'tblTempUsageDetail_20' ) start [2024-12-25 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098794', 'tblTempUsageDetail_20' ) end [2024-12-25 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098794', 'tblTempVendorCDR_20' ) start [2024-12-25 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098794', 'tblTempVendorCDR_20' ) end [2024-12-25 10:06:17] Production.INFO: ProcessCDR(1,14098794,1,1,2) [2024-12-25 10:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098794', 'tblTempUsageDetail_20' ) start [2024-12-25 10:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098794', 'tblTempUsageDetail_20' ) end [2024-12-25 10:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:06:20] Production.INFO: ==4442== Releasing lock... [2024-12-25 10:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:06:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:07:05 [end_date_ymd] => 2024-12-25 10:07:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:07:05' and `end` < '2024-12-25 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-25 10:07:17] Production.INFO: count ==215 [2024-12-25 10:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:07:05 - End Time 2024-12-25 10:07:05 [2024-12-25 10:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098799', 'tblTempUsageDetail_20' ) start [2024-12-25 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098799', 'tblTempUsageDetail_20' ) end [2024-12-25 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098799', 'tblTempVendorCDR_20' ) start [2024-12-25 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098799', 'tblTempVendorCDR_20' ) end [2024-12-25 10:07:17] Production.INFO: ProcessCDR(1,14098799,1,1,2) [2024-12-25 10:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098799', 'tblTempUsageDetail_20' ) start [2024-12-25 10:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098799', 'tblTempUsageDetail_20' ) end [2024-12-25 10:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:07:20] Production.INFO: ==4523== Releasing lock... [2024-12-25 10:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:07:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:08:05 [end_date_ymd] => 2024-12-25 10:08:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:08:05' and `end` < '2024-12-25 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-25 10:08:17] Production.INFO: count ==215 [2024-12-25 10:08:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:08:05 - End Time 2024-12-25 10:08:05 [2024-12-25 10:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098804', 'tblTempUsageDetail_20' ) start [2024-12-25 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098804', 'tblTempUsageDetail_20' ) end [2024-12-25 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098804', 'tblTempVendorCDR_20' ) start [2024-12-25 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098804', 'tblTempVendorCDR_20' ) end [2024-12-25 10:08:17] Production.INFO: ProcessCDR(1,14098804,1,1,2) [2024-12-25 10:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098804', 'tblTempUsageDetail_20' ) start [2024-12-25 10:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098804', 'tblTempUsageDetail_20' ) end [2024-12-25 10:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:08:20] Production.INFO: ==4617== Releasing lock... [2024-12-25 10:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:08:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:09:05 [end_date_ymd] => 2024-12-25 10:09:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:09:05' and `end` < '2024-12-25 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-25 10:09:18] Production.INFO: count ==217 [2024-12-25 10:09:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:09:05 - End Time 2024-12-25 10:09:05 [2024-12-25 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098809', 'tblTempUsageDetail_20' ) start [2024-12-25 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098809', 'tblTempUsageDetail_20' ) end [2024-12-25 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098809', 'tblTempVendorCDR_20' ) start [2024-12-25 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098809', 'tblTempVendorCDR_20' ) end [2024-12-25 10:09:18] Production.INFO: ProcessCDR(1,14098809,1,1,2) [2024-12-25 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098809', 'tblTempUsageDetail_20' ) start [2024-12-25 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098809', 'tblTempUsageDetail_20' ) end [2024-12-25 10:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:09:22] Production.INFO: ==4700== Releasing lock... [2024-12-25 10:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:09:22] Production.INFO: 30 MB #Memory Used# [2024-12-25 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:10:05 [end_date_ymd] => 2024-12-25 10:10:05 [RateCDR] => 1 ) [2024-12-25 10:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:10:05' and `end` < '2024-12-25 10:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:10:17] Production.INFO: count ==223 [2024-12-25 10:10:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:10:05 - End Time 2024-12-25 10:10:05 [2024-12-25 10:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098814', 'tblTempUsageDetail_20' ) start [2024-12-25 10:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098814', 'tblTempUsageDetail_20' ) end [2024-12-25 10:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098814', 'tblTempVendorCDR_20' ) start [2024-12-25 10:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098814', 'tblTempVendorCDR_20' ) end [2024-12-25 10:10:17] Production.INFO: ProcessCDR(1,14098814,1,1,2) [2024-12-25 10:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098814', 'tblTempUsageDetail_20' ) start [2024-12-25 10:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098814', 'tblTempUsageDetail_20' ) end [2024-12-25 10:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:10:20] Production.INFO: ==4790== Releasing lock... [2024-12-25 10:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:10:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:11:05 [end_date_ymd] => 2024-12-25 10:11:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:11:05' and `end` < '2024-12-25 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-25 10:11:17] Production.INFO: count ==229 [2024-12-25 10:11:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:11:05 - End Time 2024-12-25 10:11:05 [2024-12-25 10:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098820', 'tblTempUsageDetail_20' ) start [2024-12-25 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098820', 'tblTempUsageDetail_20' ) end [2024-12-25 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098820', 'tblTempVendorCDR_20' ) start [2024-12-25 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098820', 'tblTempVendorCDR_20' ) end [2024-12-25 10:11:17] Production.INFO: ProcessCDR(1,14098820,1,1,2) [2024-12-25 10:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098820', 'tblTempUsageDetail_20' ) start [2024-12-25 10:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098820', 'tblTempUsageDetail_20' ) end [2024-12-25 10:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:11:20] Production.INFO: ==4876== Releasing lock... [2024-12-25 10:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:11:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:12:05 [end_date_ymd] => 2024-12-25 10:12:05 [RateCDR] => 1 ) [2024-12-25 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:12:05' and `end` < '2024-12-25 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:12:19] Production.INFO: count ==229 [2024-12-25 10:12:19] Production.ERROR: pbx CDR StartTime 2024-12-25 07:12:05 - End Time 2024-12-25 10:12:05 [2024-12-25 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098825', 'tblTempUsageDetail_20' ) start [2024-12-25 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098825', 'tblTempUsageDetail_20' ) end [2024-12-25 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098825', 'tblTempVendorCDR_20' ) start [2024-12-25 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098825', 'tblTempVendorCDR_20' ) end [2024-12-25 10:12:19] Production.INFO: ProcessCDR(1,14098825,1,1,2) [2024-12-25 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098825', 'tblTempUsageDetail_20' ) start [2024-12-25 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098825', 'tblTempUsageDetail_20' ) end [2024-12-25 10:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:12:22] Production.INFO: ==4952== Releasing lock... [2024-12-25 10:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:12:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:13:05 [end_date_ymd] => 2024-12-25 10:13:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:13:05' and `end` < '2024-12-25 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-25 10:13:17] Production.INFO: count ==229 [2024-12-25 10:13:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:13:05 - End Time 2024-12-25 10:13:05 [2024-12-25 10:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098830', 'tblTempUsageDetail_20' ) start [2024-12-25 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098830', 'tblTempUsageDetail_20' ) end [2024-12-25 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098830', 'tblTempVendorCDR_20' ) start [2024-12-25 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098830', 'tblTempVendorCDR_20' ) end [2024-12-25 10:13:17] Production.INFO: ProcessCDR(1,14098830,1,1,2) [2024-12-25 10:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098830', 'tblTempUsageDetail_20' ) start [2024-12-25 10:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098830', 'tblTempUsageDetail_20' ) end [2024-12-25 10:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:13:20] Production.INFO: ==5044== Releasing lock... [2024-12-25 10:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:13:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:14:05 [end_date_ymd] => 2024-12-25 10:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:14:05' and `end` < '2024-12-25 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-25 10:14:18] Production.INFO: count ==229 [2024-12-25 10:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:14:05 - End Time 2024-12-25 10:14:05 [2024-12-25 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098835', 'tblTempUsageDetail_20' ) start [2024-12-25 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098835', 'tblTempUsageDetail_20' ) end [2024-12-25 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098835', 'tblTempVendorCDR_20' ) start [2024-12-25 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098835', 'tblTempVendorCDR_20' ) end [2024-12-25 10:14:18] Production.INFO: ProcessCDR(1,14098835,1,1,2) [2024-12-25 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098835', 'tblTempUsageDetail_20' ) start [2024-12-25 10:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098835', 'tblTempUsageDetail_20' ) end [2024-12-25 10:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:14:21] Production.INFO: ==5132== Releasing lock... [2024-12-25 10:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:14:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:15:04 [end_date_ymd] => 2024-12-25 10:15:04 [RateCDR] => 1 ) [2024-12-25 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-25 07:15:04' and `end` < '2024-12-25 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-25 10:15:17] Production.INFO: count ==229 [2024-12-25 10:15:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:15:04 - End Time 2024-12-25 10:15:04 [2024-12-25 10:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098840', 'tblTempUsageDetail_20' ) start [2024-12-25 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098840', 'tblTempUsageDetail_20' ) end [2024-12-25 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098840', 'tblTempVendorCDR_20' ) start [2024-12-25 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098840', 'tblTempVendorCDR_20' ) end [2024-12-25 10:15:17] Production.INFO: ProcessCDR(1,14098840,1,1,2) [2024-12-25 10:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098840', 'tblTempUsageDetail_20' ) start [2024-12-25 10:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098840', 'tblTempUsageDetail_20' ) end [2024-12-25 10:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:15:20] Production.INFO: ==5218== Releasing lock... [2024-12-25 10:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:15:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:16:05 [end_date_ymd] => 2024-12-25 10:16:05 [RateCDR] => 1 ) [2024-12-25 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:16:05' and `end` < '2024-12-25 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:16:18] Production.INFO: count ==229 [2024-12-25 10:16:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:16:05 - End Time 2024-12-25 10:16:05 [2024-12-25 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098845', 'tblTempUsageDetail_20' ) start [2024-12-25 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098845', 'tblTempUsageDetail_20' ) end [2024-12-25 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098845', 'tblTempVendorCDR_20' ) start [2024-12-25 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098845', 'tblTempVendorCDR_20' ) end [2024-12-25 10:16:18] Production.INFO: ProcessCDR(1,14098845,1,1,2) [2024-12-25 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098845', 'tblTempUsageDetail_20' ) start [2024-12-25 10:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098845', 'tblTempUsageDetail_20' ) end [2024-12-25 10:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:16:21] Production.INFO: ==5348== Releasing lock... [2024-12-25 10:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:16:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:17:04 [end_date_ymd] => 2024-12-25 10:17:04 [RateCDR] => 1 ) [2024-12-25 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-25 07:17:04' and `end` < '2024-12-25 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-25 10:17:16] Production.INFO: count ==229 [2024-12-25 10:17:16] Production.ERROR: pbx CDR StartTime 2024-12-25 07:17:04 - End Time 2024-12-25 10:17:04 [2024-12-25 10:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098850', 'tblTempUsageDetail_20' ) start [2024-12-25 10:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098850', 'tblTempUsageDetail_20' ) end [2024-12-25 10:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098850', 'tblTempVendorCDR_20' ) start [2024-12-25 10:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098850', 'tblTempVendorCDR_20' ) end [2024-12-25 10:17:16] Production.INFO: ProcessCDR(1,14098850,1,1,2) [2024-12-25 10:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098850', 'tblTempUsageDetail_20' ) start [2024-12-25 10:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098850', 'tblTempUsageDetail_20' ) end [2024-12-25 10:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:17:20] Production.INFO: ==5431== Releasing lock... [2024-12-25 10:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:17:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:18:05 [end_date_ymd] => 2024-12-25 10:18:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:18:05' and `end` < '2024-12-25 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-25 10:18:18] Production.INFO: count ==229 [2024-12-25 10:18:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:18:05 - End Time 2024-12-25 10:18:05 [2024-12-25 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098855', 'tblTempUsageDetail_20' ) start [2024-12-25 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098855', 'tblTempUsageDetail_20' ) end [2024-12-25 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098855', 'tblTempVendorCDR_20' ) start [2024-12-25 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098855', 'tblTempVendorCDR_20' ) end [2024-12-25 10:18:18] Production.INFO: ProcessCDR(1,14098855,1,1,2) [2024-12-25 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098855', 'tblTempUsageDetail_20' ) start [2024-12-25 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098855', 'tblTempUsageDetail_20' ) end [2024-12-25 10:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:18:21] Production.INFO: ==5515== Releasing lock... [2024-12-25 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:18:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:19:06 [end_date_ymd] => 2024-12-25 10:19:06 [RateCDR] => 1 ) [2024-12-25 10:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:19:06' and `end` < '2024-12-25 10:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:19:18] Production.INFO: count ==229 [2024-12-25 10:19:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:19:06 - End Time 2024-12-25 10:19:06 [2024-12-25 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098860', 'tblTempUsageDetail_20' ) start [2024-12-25 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098860', 'tblTempUsageDetail_20' ) end [2024-12-25 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098860', 'tblTempVendorCDR_20' ) start [2024-12-25 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098860', 'tblTempVendorCDR_20' ) end [2024-12-25 10:19:18] Production.INFO: ProcessCDR(1,14098860,1,1,2) [2024-12-25 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098860', 'tblTempUsageDetail_20' ) start [2024-12-25 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098860', 'tblTempUsageDetail_20' ) end [2024-12-25 10:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:19:21] Production.INFO: ==5599== Releasing lock... [2024-12-25 10:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:19:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:20:05 [end_date_ymd] => 2024-12-25 10:20:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:20:05' and `end` < '2024-12-25 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-25 10:20:17] Production.INFO: count ==230 [2024-12-25 10:20:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:20:05 - End Time 2024-12-25 10:20:05 [2024-12-25 10:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098866', 'tblTempUsageDetail_20' ) start [2024-12-25 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098866', 'tblTempUsageDetail_20' ) end [2024-12-25 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098866', 'tblTempVendorCDR_20' ) start [2024-12-25 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098866', 'tblTempVendorCDR_20' ) end [2024-12-25 10:20:17] Production.INFO: ProcessCDR(1,14098866,1,1,2) [2024-12-25 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098866', 'tblTempUsageDetail_20' ) start [2024-12-25 10:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098866', 'tblTempUsageDetail_20' ) end [2024-12-25 10:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:20:21] Production.INFO: ==5686== Releasing lock... [2024-12-25 10:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:20:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:21:05 [end_date_ymd] => 2024-12-25 10:21:05 [RateCDR] => 1 ) [2024-12-25 10: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-25 07:21:05' and `end` < '2024-12-25 10: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-25 10:21:18] Production.INFO: count ==230 [2024-12-25 10:21:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:21:05 - End Time 2024-12-25 10:21:05 [2024-12-25 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098871', 'tblTempUsageDetail_20' ) start [2024-12-25 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098871', 'tblTempUsageDetail_20' ) end [2024-12-25 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098871', 'tblTempVendorCDR_20' ) start [2024-12-25 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098871', 'tblTempVendorCDR_20' ) end [2024-12-25 10:21:18] Production.INFO: ProcessCDR(1,14098871,1,1,2) [2024-12-25 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098871', 'tblTempUsageDetail_20' ) start [2024-12-25 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098871', 'tblTempUsageDetail_20' ) end [2024-12-25 10:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:21:22] Production.INFO: ==5771== Releasing lock... [2024-12-25 10:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:21:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:22:05 [end_date_ymd] => 2024-12-25 10:22:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:22:05' and `end` < '2024-12-25 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-25 10:22:18] Production.INFO: count ==230 [2024-12-25 10:22:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:22:05 - End Time 2024-12-25 10:22:05 [2024-12-25 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098876', 'tblTempUsageDetail_20' ) start [2024-12-25 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098876', 'tblTempUsageDetail_20' ) end [2024-12-25 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098876', 'tblTempVendorCDR_20' ) start [2024-12-25 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098876', 'tblTempVendorCDR_20' ) end [2024-12-25 10:22:18] Production.INFO: ProcessCDR(1,14098876,1,1,2) [2024-12-25 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098876', 'tblTempUsageDetail_20' ) start [2024-12-25 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098876', 'tblTempUsageDetail_20' ) end [2024-12-25 10:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:22:22] Production.INFO: ==5852== Releasing lock... [2024-12-25 10:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:22:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:23:05 [end_date_ymd] => 2024-12-25 10:23:05 [RateCDR] => 1 ) [2024-12-25 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:23:05' and `end` < '2024-12-25 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:23:18] Production.INFO: count ==230 [2024-12-25 10:23:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:23:05 - End Time 2024-12-25 10:23:05 [2024-12-25 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098881', 'tblTempUsageDetail_20' ) start [2024-12-25 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098881', 'tblTempUsageDetail_20' ) end [2024-12-25 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098881', 'tblTempVendorCDR_20' ) start [2024-12-25 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098881', 'tblTempVendorCDR_20' ) end [2024-12-25 10:23:18] Production.INFO: ProcessCDR(1,14098881,1,1,2) [2024-12-25 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098881', 'tblTempUsageDetail_20' ) start [2024-12-25 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098881', 'tblTempUsageDetail_20' ) end [2024-12-25 10:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:23:21] Production.INFO: ==5942== Releasing lock... [2024-12-25 10:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:23:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:24:05 [end_date_ymd] => 2024-12-25 10:24:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:24:05' and `end` < '2024-12-25 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-25 10:24:19] Production.INFO: count ==230 [2024-12-25 10:24:19] Production.ERROR: pbx CDR StartTime 2024-12-25 07:24:05 - End Time 2024-12-25 10:24:05 [2024-12-25 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098886', 'tblTempUsageDetail_20' ) start [2024-12-25 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098886', 'tblTempUsageDetail_20' ) end [2024-12-25 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098886', 'tblTempVendorCDR_20' ) start [2024-12-25 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098886', 'tblTempVendorCDR_20' ) end [2024-12-25 10:24:19] Production.INFO: ProcessCDR(1,14098886,1,1,2) [2024-12-25 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098886', 'tblTempUsageDetail_20' ) start [2024-12-25 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098886', 'tblTempUsageDetail_20' ) end [2024-12-25 10:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:24:22] Production.INFO: ==6024== Releasing lock... [2024-12-25 10:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:24:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:25:05 [end_date_ymd] => 2024-12-25 10:25:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:25:05' and `end` < '2024-12-25 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-25 10:25:17] Production.INFO: count ==230 [2024-12-25 10:25:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:25:05 - End Time 2024-12-25 10:25:05 [2024-12-25 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098891', 'tblTempUsageDetail_20' ) start [2024-12-25 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098891', 'tblTempUsageDetail_20' ) end [2024-12-25 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098891', 'tblTempVendorCDR_20' ) start [2024-12-25 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098891', 'tblTempVendorCDR_20' ) end [2024-12-25 10:25:17] Production.INFO: ProcessCDR(1,14098891,1,1,2) [2024-12-25 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098891', 'tblTempUsageDetail_20' ) start [2024-12-25 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098891', 'tblTempUsageDetail_20' ) end [2024-12-25 10:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:25:20] Production.INFO: ==6111== Releasing lock... [2024-12-25 10:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:25:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:26:04 [end_date_ymd] => 2024-12-25 10:26:04 [RateCDR] => 1 ) [2024-12-25 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-25 07:26:04' and `end` < '2024-12-25 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-25 10:26:17] Production.INFO: count ==230 [2024-12-25 10:26:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:26:04 - End Time 2024-12-25 10:26:04 [2024-12-25 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098896', 'tblTempUsageDetail_20' ) start [2024-12-25 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098896', 'tblTempUsageDetail_20' ) end [2024-12-25 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098896', 'tblTempVendorCDR_20' ) start [2024-12-25 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098896', 'tblTempVendorCDR_20' ) end [2024-12-25 10:26:17] Production.INFO: ProcessCDR(1,14098896,1,1,2) [2024-12-25 10:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098896', 'tblTempUsageDetail_20' ) start [2024-12-25 10:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098896', 'tblTempUsageDetail_20' ) end [2024-12-25 10:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:26:20] Production.INFO: ==6200== Releasing lock... [2024-12-25 10:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:26:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:27:05 [end_date_ymd] => 2024-12-25 10:27:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:27:05' and `end` < '2024-12-25 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-25 10:27:17] Production.INFO: count ==230 [2024-12-25 10:27:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:27:05 - End Time 2024-12-25 10:27:05 [2024-12-25 10:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098901', 'tblTempUsageDetail_20' ) start [2024-12-25 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098901', 'tblTempUsageDetail_20' ) end [2024-12-25 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098901', 'tblTempVendorCDR_20' ) start [2024-12-25 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098901', 'tblTempVendorCDR_20' ) end [2024-12-25 10:27:17] Production.INFO: ProcessCDR(1,14098901,1,1,2) [2024-12-25 10:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098901', 'tblTempUsageDetail_20' ) start [2024-12-25 10:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098901', 'tblTempUsageDetail_20' ) end [2024-12-25 10:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:27:20] Production.INFO: ==6281== Releasing lock... [2024-12-25 10:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:27:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:28:05 [end_date_ymd] => 2024-12-25 10:28:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:28:05' and `end` < '2024-12-25 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-25 10:28:20] Production.INFO: count ==230 [2024-12-25 10:28:20] Production.ERROR: pbx CDR StartTime 2024-12-25 07:28:05 - End Time 2024-12-25 10:28:05 [2024-12-25 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098906', 'tblTempUsageDetail_20' ) start [2024-12-25 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098906', 'tblTempUsageDetail_20' ) end [2024-12-25 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098906', 'tblTempVendorCDR_20' ) start [2024-12-25 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098906', 'tblTempVendorCDR_20' ) end [2024-12-25 10:28:20] Production.INFO: ProcessCDR(1,14098906,1,1,2) [2024-12-25 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098906', 'tblTempUsageDetail_20' ) start [2024-12-25 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098906', 'tblTempUsageDetail_20' ) end [2024-12-25 10:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:28:23] Production.INFO: ==6367== Releasing lock... [2024-12-25 10:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:28:23] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:29:04 [end_date_ymd] => 2024-12-25 10:29:04 [RateCDR] => 1 ) [2024-12-25 10:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:29:04' and `end` < '2024-12-25 10:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:29:18] Production.INFO: count ==229 [2024-12-25 10:29:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:29:04 - End Time 2024-12-25 10:29:04 [2024-12-25 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098911', 'tblTempUsageDetail_20' ) start [2024-12-25 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098911', 'tblTempUsageDetail_20' ) end [2024-12-25 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098911', 'tblTempVendorCDR_20' ) start [2024-12-25 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098911', 'tblTempVendorCDR_20' ) end [2024-12-25 10:29:18] Production.INFO: ProcessCDR(1,14098911,1,1,2) [2024-12-25 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098911', 'tblTempUsageDetail_20' ) start [2024-12-25 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098911', 'tblTempUsageDetail_20' ) end [2024-12-25 10:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:29:21] Production.INFO: ==6447== Releasing lock... [2024-12-25 10:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:29:21] Production.INFO: 30 MB #Memory Used# [2024-12-25 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:30:06 [end_date_ymd] => 2024-12-25 10:30:06 [RateCDR] => 1 ) [2024-12-25 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:30:06' and `end` < '2024-12-25 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:30:18] Production.INFO: count ==232 [2024-12-25 10:30:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:30:06 - End Time 2024-12-25 10:30:06 [2024-12-25 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098917', 'tblTempUsageDetail_20' ) start [2024-12-25 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098917', 'tblTempUsageDetail_20' ) end [2024-12-25 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098917', 'tblTempVendorCDR_20' ) start [2024-12-25 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098917', 'tblTempVendorCDR_20' ) end [2024-12-25 10:30:18] Production.INFO: ProcessCDR(1,14098917,1,1,2) [2024-12-25 10:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098917', 'tblTempUsageDetail_20' ) start [2024-12-25 10:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098917', 'tblTempUsageDetail_20' ) end [2024-12-25 10:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:30:21] Production.INFO: ==6540== Releasing lock... [2024-12-25 10:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:30:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:31:04 [end_date_ymd] => 2024-12-25 10:31:04 [RateCDR] => 1 ) [2024-12-25 10: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-25 07:31:04' and `end` < '2024-12-25 10: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-25 10:31:16] Production.INFO: count ==232 [2024-12-25 10:31:16] Production.ERROR: pbx CDR StartTime 2024-12-25 07:31:04 - End Time 2024-12-25 10:31:04 [2024-12-25 10:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098922', 'tblTempUsageDetail_20' ) start [2024-12-25 10:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098922', 'tblTempUsageDetail_20' ) end [2024-12-25 10:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098922', 'tblTempVendorCDR_20' ) start [2024-12-25 10:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098922', 'tblTempVendorCDR_20' ) end [2024-12-25 10:31:16] Production.INFO: ProcessCDR(1,14098922,1,1,2) [2024-12-25 10:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098922', 'tblTempUsageDetail_20' ) start [2024-12-25 10:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098922', 'tblTempUsageDetail_20' ) end [2024-12-25 10:31:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:31:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:31:19] Production.INFO: ==6619== Releasing lock... [2024-12-25 10:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:31:19] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:32:05 [end_date_ymd] => 2024-12-25 10:32:05 [RateCDR] => 1 ) [2024-12-25 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:32:05' and `end` < '2024-12-25 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:32:19] Production.INFO: count ==231 [2024-12-25 10:32:19] Production.ERROR: pbx CDR StartTime 2024-12-25 07:32:05 - End Time 2024-12-25 10:32:05 [2024-12-25 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098927', 'tblTempUsageDetail_20' ) start [2024-12-25 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098927', 'tblTempUsageDetail_20' ) end [2024-12-25 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098927', 'tblTempVendorCDR_20' ) start [2024-12-25 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098927', 'tblTempVendorCDR_20' ) end [2024-12-25 10:32:19] Production.INFO: ProcessCDR(1,14098927,1,1,2) [2024-12-25 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098927', 'tblTempUsageDetail_20' ) start [2024-12-25 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098927', 'tblTempUsageDetail_20' ) end [2024-12-25 10:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:32:22] Production.INFO: ==6745== Releasing lock... [2024-12-25 10:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:32:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-25 10:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:33:04 [end_date_ymd] => 2024-12-25 10:33:04 [RateCDR] => 1 ) [2024-12-25 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-25 07:33:04' and `end` < '2024-12-25 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-25 10:33:16] Production.INFO: count ==232 [2024-12-25 10:33:16] Production.ERROR: pbx CDR StartTime 2024-12-25 07:33:04 - End Time 2024-12-25 10:33:04 [2024-12-25 10:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098932', 'tblTempUsageDetail_20' ) start [2024-12-25 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098932', 'tblTempUsageDetail_20' ) end [2024-12-25 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098932', 'tblTempVendorCDR_20' ) start [2024-12-25 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098932', 'tblTempVendorCDR_20' ) end [2024-12-25 10:33:17] Production.INFO: ProcessCDR(1,14098932,1,1,2) [2024-12-25 10:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098932', 'tblTempUsageDetail_20' ) start [2024-12-25 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098932', 'tblTempUsageDetail_20' ) end [2024-12-25 10:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:33:21] Production.INFO: ==6829== Releasing lock... [2024-12-25 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:33:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:34:04 [end_date_ymd] => 2024-12-25 10:34:04 [RateCDR] => 1 ) [2024-12-25 10: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-25 07:34:04' and `end` < '2024-12-25 10: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-25 10:34:17] Production.INFO: count ==232 [2024-12-25 10:34:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:34:04 - End Time 2024-12-25 10:34:04 [2024-12-25 10:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098937', 'tblTempUsageDetail_20' ) start [2024-12-25 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098937', 'tblTempUsageDetail_20' ) end [2024-12-25 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098937', 'tblTempVendorCDR_20' ) start [2024-12-25 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098937', 'tblTempVendorCDR_20' ) end [2024-12-25 10:34:17] Production.INFO: ProcessCDR(1,14098937,1,1,2) [2024-12-25 10:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098937', 'tblTempUsageDetail_20' ) start [2024-12-25 10:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098937', 'tblTempUsageDetail_20' ) end [2024-12-25 10:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:34:20] Production.INFO: ==6913== Releasing lock... [2024-12-25 10:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:34:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:35:04 [end_date_ymd] => 2024-12-25 10:35:04 [RateCDR] => 1 ) [2024-12-25 10:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:35:04' and `end` < '2024-12-25 10:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:35:16] Production.INFO: count ==232 [2024-12-25 10:35:16] Production.ERROR: pbx CDR StartTime 2024-12-25 07:35:04 - End Time 2024-12-25 10:35:04 [2024-12-25 10:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098942', 'tblTempUsageDetail_20' ) start [2024-12-25 10:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098942', 'tblTempUsageDetail_20' ) end [2024-12-25 10:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098942', 'tblTempVendorCDR_20' ) start [2024-12-25 10:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098942', 'tblTempVendorCDR_20' ) end [2024-12-25 10:35:16] Production.INFO: ProcessCDR(1,14098942,1,1,2) [2024-12-25 10:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098942', 'tblTempUsageDetail_20' ) start [2024-12-25 10:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098942', 'tblTempUsageDetail_20' ) end [2024-12-25 10:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:35:20] Production.INFO: ==6999== Releasing lock... [2024-12-25 10:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:35:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:36:05 [end_date_ymd] => 2024-12-25 10:36:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:36:05' and `end` < '2024-12-25 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-25 10:36:17] Production.INFO: count ==232 [2024-12-25 10:36:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:36:05 - End Time 2024-12-25 10:36:05 [2024-12-25 10:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098947', 'tblTempUsageDetail_20' ) start [2024-12-25 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098947', 'tblTempUsageDetail_20' ) end [2024-12-25 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098947', 'tblTempVendorCDR_20' ) start [2024-12-25 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098947', 'tblTempVendorCDR_20' ) end [2024-12-25 10:36:17] Production.INFO: ProcessCDR(1,14098947,1,1,2) [2024-12-25 10:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098947', 'tblTempUsageDetail_20' ) start [2024-12-25 10:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098947', 'tblTempUsageDetail_20' ) end [2024-12-25 10:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:36:20] Production.INFO: ==7084== Releasing lock... [2024-12-25 10:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:36:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:37:05 [end_date_ymd] => 2024-12-25 10:37:05 [RateCDR] => 1 ) [2024-12-25 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:37:05' and `end` < '2024-12-25 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:37:17] Production.INFO: count ==233 [2024-12-25 10:37:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:37:05 - End Time 2024-12-25 10:37:05 [2024-12-25 10:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098952', 'tblTempUsageDetail_20' ) start [2024-12-25 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098952', 'tblTempUsageDetail_20' ) end [2024-12-25 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098952', 'tblTempVendorCDR_20' ) start [2024-12-25 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098952', 'tblTempVendorCDR_20' ) end [2024-12-25 10:37:17] Production.INFO: ProcessCDR(1,14098952,1,1,2) [2024-12-25 10:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098952', 'tblTempUsageDetail_20' ) start [2024-12-25 10:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098952', 'tblTempUsageDetail_20' ) end [2024-12-25 10:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:37:21] Production.INFO: ==7166== Releasing lock... [2024-12-25 10:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:37:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:38:04 [end_date_ymd] => 2024-12-25 10:38:04 [RateCDR] => 1 ) [2024-12-25 10: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-25 07:38:04' and `end` < '2024-12-25 10: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-25 10:38:19] Production.INFO: count ==233 [2024-12-25 10:38:19] Production.ERROR: pbx CDR StartTime 2024-12-25 07:38:04 - End Time 2024-12-25 10:38:04 [2024-12-25 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098957', 'tblTempUsageDetail_20' ) start [2024-12-25 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098957', 'tblTempUsageDetail_20' ) end [2024-12-25 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098957', 'tblTempVendorCDR_20' ) start [2024-12-25 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098957', 'tblTempVendorCDR_20' ) end [2024-12-25 10:38:19] Production.INFO: ProcessCDR(1,14098957,1,1,2) [2024-12-25 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098957', 'tblTempUsageDetail_20' ) start [2024-12-25 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098957', 'tblTempUsageDetail_20' ) end [2024-12-25 10:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:38:22] Production.INFO: ==7251== Releasing lock... [2024-12-25 10:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:38:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:39:05 [end_date_ymd] => 2024-12-25 10:39:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:39:05' and `end` < '2024-12-25 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-25 10:39:17] Production.INFO: count ==233 [2024-12-25 10:39:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:39:05 - End Time 2024-12-25 10:39:05 [2024-12-25 10:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098962', 'tblTempUsageDetail_20' ) start [2024-12-25 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098962', 'tblTempUsageDetail_20' ) end [2024-12-25 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098962', 'tblTempVendorCDR_20' ) start [2024-12-25 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098962', 'tblTempVendorCDR_20' ) end [2024-12-25 10:39:17] Production.INFO: ProcessCDR(1,14098962,1,1,2) [2024-12-25 10:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098962', 'tblTempUsageDetail_20' ) start [2024-12-25 10:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098962', 'tblTempUsageDetail_20' ) end [2024-12-25 10:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:39:20] Production.INFO: ==7335== Releasing lock... [2024-12-25 10:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:39:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:40:05 [end_date_ymd] => 2024-12-25 10:40:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:40:05' and `end` < '2024-12-25 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-25 10:40:17] Production.INFO: count ==239 [2024-12-25 10:40:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:40:05 - End Time 2024-12-25 10:40:05 [2024-12-25 10:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098968', 'tblTempUsageDetail_20' ) start [2024-12-25 10:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098968', 'tblTempUsageDetail_20' ) end [2024-12-25 10:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098968', 'tblTempVendorCDR_20' ) start [2024-12-25 10:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098968', 'tblTempVendorCDR_20' ) end [2024-12-25 10:40:17] Production.INFO: ProcessCDR(1,14098968,1,1,2) [2024-12-25 10:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098968', 'tblTempUsageDetail_20' ) start [2024-12-25 10:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098968', 'tblTempUsageDetail_20' ) end [2024-12-25 10:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:40:20] Production.INFO: ==7422== Releasing lock... [2024-12-25 10:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:40:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:41:04 [end_date_ymd] => 2024-12-25 10:41:04 [RateCDR] => 1 ) [2024-12-25 10:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:41:04' and `end` < '2024-12-25 10:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:41:16] Production.INFO: count ==248 [2024-12-25 10:41:16] Production.ERROR: pbx CDR StartTime 2024-12-25 07:41:04 - End Time 2024-12-25 10:41:04 [2024-12-25 10:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098973', 'tblTempUsageDetail_20' ) start [2024-12-25 10:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098973', 'tblTempUsageDetail_20' ) end [2024-12-25 10:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098973', 'tblTempVendorCDR_20' ) start [2024-12-25 10:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098973', 'tblTempVendorCDR_20' ) end [2024-12-25 10:41:16] Production.INFO: ProcessCDR(1,14098973,1,1,2) [2024-12-25 10:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:41:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098973', 'tblTempUsageDetail_20' ) start [2024-12-25 10:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098973', 'tblTempUsageDetail_20' ) end [2024-12-25 10:41:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:41:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:41:19] Production.INFO: ==7508== Releasing lock... [2024-12-25 10:41:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:41:19] Production.INFO: 30.75 MB #Memory Used# [2024-12-25 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:42:05 [end_date_ymd] => 2024-12-25 10:42:05 [RateCDR] => 1 ) [2024-12-25 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:42:05' and `end` < '2024-12-25 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:42:19] Production.INFO: count ==254 [2024-12-25 10:42:19] Production.ERROR: pbx CDR StartTime 2024-12-25 07:42:05 - End Time 2024-12-25 10:42:05 [2024-12-25 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098978', 'tblTempUsageDetail_20' ) start [2024-12-25 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098978', 'tblTempUsageDetail_20' ) end [2024-12-25 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098978', 'tblTempVendorCDR_20' ) start [2024-12-25 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098978', 'tblTempVendorCDR_20' ) end [2024-12-25 10:42:19] Production.INFO: ProcessCDR(1,14098978,1,1,2) [2024-12-25 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098978', 'tblTempUsageDetail_20' ) start [2024-12-25 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098978', 'tblTempUsageDetail_20' ) end [2024-12-25 10:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:42:22] Production.INFO: ==7598== Releasing lock... [2024-12-25 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:42:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:43:04 [end_date_ymd] => 2024-12-25 10:43:04 [RateCDR] => 1 ) [2024-12-25 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-25 07:43:04' and `end` < '2024-12-25 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-25 10:43:17] Production.INFO: count ==263 [2024-12-25 10:43:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:43:04 - End Time 2024-12-25 10:43:04 [2024-12-25 10:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098983', 'tblTempUsageDetail_20' ) start [2024-12-25 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098983', 'tblTempUsageDetail_20' ) end [2024-12-25 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098983', 'tblTempVendorCDR_20' ) start [2024-12-25 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098983', 'tblTempVendorCDR_20' ) end [2024-12-25 10:43:17] Production.INFO: ProcessCDR(1,14098983,1,1,2) [2024-12-25 10:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098983', 'tblTempUsageDetail_20' ) start [2024-12-25 10:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098983', 'tblTempUsageDetail_20' ) end [2024-12-25 10:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:43:20] Production.INFO: ==7676== Releasing lock... [2024-12-25 10:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:43:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-25 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:44:05 [end_date_ymd] => 2024-12-25 10:44:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:44:05' and `end` < '2024-12-25 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-25 10:44:18] Production.INFO: count ==263 [2024-12-25 10:44:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:44:05 - End Time 2024-12-25 10:44:05 [2024-12-25 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098988', 'tblTempUsageDetail_20' ) start [2024-12-25 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098988', 'tblTempUsageDetail_20' ) end [2024-12-25 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098988', 'tblTempVendorCDR_20' ) start [2024-12-25 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098988', 'tblTempVendorCDR_20' ) end [2024-12-25 10:44:18] Production.INFO: ProcessCDR(1,14098988,1,1,2) [2024-12-25 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098988', 'tblTempUsageDetail_20' ) start [2024-12-25 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098988', 'tblTempUsageDetail_20' ) end [2024-12-25 10:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:44:21] Production.INFO: ==7764== Releasing lock... [2024-12-25 10:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:44:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-25 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:45:05 [end_date_ymd] => 2024-12-25 10:45:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:45:05' and `end` < '2024-12-25 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-25 10:45:17] Production.INFO: count ==264 [2024-12-25 10:45:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:45:05 - End Time 2024-12-25 10:45:05 [2024-12-25 10:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098993', 'tblTempUsageDetail_20' ) start [2024-12-25 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098993', 'tblTempUsageDetail_20' ) end [2024-12-25 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098993', 'tblTempVendorCDR_20' ) start [2024-12-25 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098993', 'tblTempVendorCDR_20' ) end [2024-12-25 10:45:17] Production.INFO: ProcessCDR(1,14098993,1,1,2) [2024-12-25 10:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098993', 'tblTempUsageDetail_20' ) start [2024-12-25 10:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098993', 'tblTempUsageDetail_20' ) end [2024-12-25 10:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:45:20] Production.INFO: ==7839== Releasing lock... [2024-12-25 10:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:45:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-25 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:46:05 [end_date_ymd] => 2024-12-25 10:46:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:46:05' and `end` < '2024-12-25 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-25 10:46:19] Production.INFO: count ==267 [2024-12-25 10:46:19] Production.ERROR: pbx CDR StartTime 2024-12-25 07:46:05 - End Time 2024-12-25 10:46:05 [2024-12-25 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098998', 'tblTempUsageDetail_20' ) start [2024-12-25 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14098998', 'tblTempUsageDetail_20' ) end [2024-12-25 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098998', 'tblTempVendorCDR_20' ) start [2024-12-25 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14098998', 'tblTempVendorCDR_20' ) end [2024-12-25 10:46:19] Production.INFO: ProcessCDR(1,14098998,1,1,2) [2024-12-25 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14098998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14098998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14098998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14098998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098998', 'tblTempUsageDetail_20' ) start [2024-12-25 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14098998', 'tblTempUsageDetail_20' ) end [2024-12-25 10:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:46:22] Production.INFO: ==7931== Releasing lock... [2024-12-25 10:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:46:22] Production.INFO: 31 MB #Memory Used# [2024-12-25 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:47:05 [end_date_ymd] => 2024-12-25 10:47:05 [RateCDR] => 1 ) [2024-12-25 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:47:05' and `end` < '2024-12-25 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:47:17] Production.INFO: count ==271 [2024-12-25 10:47:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:47:05 - End Time 2024-12-25 10:47:05 [2024-12-25 10:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099003', 'tblTempUsageDetail_20' ) start [2024-12-25 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099003', 'tblTempUsageDetail_20' ) end [2024-12-25 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099003', 'tblTempVendorCDR_20' ) start [2024-12-25 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099003', 'tblTempVendorCDR_20' ) end [2024-12-25 10:47:17] Production.INFO: ProcessCDR(1,14099003,1,1,2) [2024-12-25 10:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099003', 'tblTempUsageDetail_20' ) start [2024-12-25 10:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099003', 'tblTempUsageDetail_20' ) end [2024-12-25 10:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:47:20] Production.INFO: ==8050== Releasing lock... [2024-12-25 10:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:47:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:48:04 [end_date_ymd] => 2024-12-25 10:48:04 [RateCDR] => 1 ) [2024-12-25 10:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:48:04' and `end` < '2024-12-25 10:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:48:18] Production.INFO: count ==273 [2024-12-25 10:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 07:48:04 - End Time 2024-12-25 10:48:04 [2024-12-25 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099008', 'tblTempUsageDetail_20' ) start [2024-12-25 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099008', 'tblTempUsageDetail_20' ) end [2024-12-25 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099008', 'tblTempVendorCDR_20' ) start [2024-12-25 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099008', 'tblTempVendorCDR_20' ) end [2024-12-25 10:48:18] Production.INFO: ProcessCDR(1,14099008,1,1,2) [2024-12-25 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099008', 'tblTempUsageDetail_20' ) start [2024-12-25 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099008', 'tblTempUsageDetail_20' ) end [2024-12-25 10:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:48:21] Production.INFO: ==8132== Releasing lock... [2024-12-25 10:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:48:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:49:05 [end_date_ymd] => 2024-12-25 10:49:05 [RateCDR] => 1 ) [2024-12-25 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:49:05' and `end` < '2024-12-25 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:49:19] Production.INFO: count ==273 [2024-12-25 10:49:19] Production.ERROR: pbx CDR StartTime 2024-12-25 07:49:05 - End Time 2024-12-25 10:49:05 [2024-12-25 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099013', 'tblTempUsageDetail_20' ) start [2024-12-25 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099013', 'tblTempUsageDetail_20' ) end [2024-12-25 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099013', 'tblTempVendorCDR_20' ) start [2024-12-25 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099013', 'tblTempVendorCDR_20' ) end [2024-12-25 10:49:19] Production.INFO: ProcessCDR(1,14099013,1,1,2) [2024-12-25 10:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099013', 'tblTempUsageDetail_20' ) start [2024-12-25 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099013', 'tblTempUsageDetail_20' ) end [2024-12-25 10:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:49:22] Production.INFO: ==8216== Releasing lock... [2024-12-25 10:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:49:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-25 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:50:05 [end_date_ymd] => 2024-12-25 10:50:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:50:05' and `end` < '2024-12-25 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-25 10:50:17] Production.INFO: count ==281 [2024-12-25 10:50:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:50:05 - End Time 2024-12-25 10:50:05 [2024-12-25 10:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099018', 'tblTempUsageDetail_20' ) start [2024-12-25 10:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099018', 'tblTempUsageDetail_20' ) end [2024-12-25 10:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099018', 'tblTempVendorCDR_20' ) start [2024-12-25 10:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099018', 'tblTempVendorCDR_20' ) end [2024-12-25 10:50:17] Production.INFO: ProcessCDR(1,14099018,1,1,2) [2024-12-25 10:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099018', 'tblTempUsageDetail_20' ) start [2024-12-25 10:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099018', 'tblTempUsageDetail_20' ) end [2024-12-25 10:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:50:20] Production.INFO: ==8301== Releasing lock... [2024-12-25 10:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:50:20] Production.INFO: 31 MB #Memory Used# [2024-12-25 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:51:05 [end_date_ymd] => 2024-12-25 10:51:05 [RateCDR] => 1 ) [2024-12-25 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:51:05' and `end` < '2024-12-25 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:51:17] Production.INFO: count ==318 [2024-12-25 10:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:51:05 - End Time 2024-12-25 10:51:05 [2024-12-25 10:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099024', 'tblTempUsageDetail_20' ) start [2024-12-25 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099024', 'tblTempUsageDetail_20' ) end [2024-12-25 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099024', 'tblTempVendorCDR_20' ) start [2024-12-25 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099024', 'tblTempVendorCDR_20' ) end [2024-12-25 10:51:17] Production.INFO: ProcessCDR(1,14099024,1,1,2) [2024-12-25 10:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099024', 'tblTempUsageDetail_20' ) start [2024-12-25 10:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099024', 'tblTempUsageDetail_20' ) end [2024-12-25 10:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:51:20] Production.INFO: ==8388== Releasing lock... [2024-12-25 10:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:51:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:52:05 [end_date_ymd] => 2024-12-25 10:52:05 [RateCDR] => 1 ) [2024-12-25 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:52:05' and `end` < '2024-12-25 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:52:17] Production.INFO: count ==320 [2024-12-25 10:52:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:52:05 - End Time 2024-12-25 10:52:05 [2024-12-25 10:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099029', 'tblTempUsageDetail_20' ) start [2024-12-25 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099029', 'tblTempUsageDetail_20' ) end [2024-12-25 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099029', 'tblTempVendorCDR_20' ) start [2024-12-25 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099029', 'tblTempVendorCDR_20' ) end [2024-12-25 10:52:17] Production.INFO: ProcessCDR(1,14099029,1,1,2) [2024-12-25 10:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099029', 'tblTempUsageDetail_20' ) start [2024-12-25 10:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099029', 'tblTempUsageDetail_20' ) end [2024-12-25 10:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:52:20] Production.INFO: ==8473== Releasing lock... [2024-12-25 10:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:52:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:53:05 [end_date_ymd] => 2024-12-25 10:53:05 [RateCDR] => 1 ) [2024-12-25 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 07:53:05' and `end` < '2024-12-25 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 10:53:17] Production.INFO: count ==326 [2024-12-25 10:53:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:53:05 - End Time 2024-12-25 10:53:05 [2024-12-25 10:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099034', 'tblTempUsageDetail_20' ) start [2024-12-25 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099034', 'tblTempUsageDetail_20' ) end [2024-12-25 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099034', 'tblTempVendorCDR_20' ) start [2024-12-25 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099034', 'tblTempVendorCDR_20' ) end [2024-12-25 10:53:17] Production.INFO: ProcessCDR(1,14099034,1,1,2) [2024-12-25 10:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099034', 'tblTempUsageDetail_20' ) start [2024-12-25 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099034', 'tblTempUsageDetail_20' ) end [2024-12-25 10:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:53:21] Production.INFO: ==8556== Releasing lock... [2024-12-25 10:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:53:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:54:05 [end_date_ymd] => 2024-12-25 10:54:05 [RateCDR] => 1 ) [2024-12-25 10: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-25 07:54:05' and `end` < '2024-12-25 10: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-25 10:54:17] Production.INFO: count ==329 [2024-12-25 10:54:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:54:05 - End Time 2024-12-25 10:54:05 [2024-12-25 10:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099037', 'tblTempUsageDetail_20' ) start [2024-12-25 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099037', 'tblTempUsageDetail_20' ) end [2024-12-25 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099037', 'tblTempVendorCDR_20' ) start [2024-12-25 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099037', 'tblTempVendorCDR_20' ) end [2024-12-25 10:54:17] Production.INFO: ProcessCDR(1,14099037,1,1,2) [2024-12-25 10:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099037', 'tblTempUsageDetail_20' ) start [2024-12-25 10:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099037', 'tblTempUsageDetail_20' ) end [2024-12-25 10:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:54:20] Production.INFO: ==8639== Releasing lock... [2024-12-25 10:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:54:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:55:05 [end_date_ymd] => 2024-12-25 10:55:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:55:05' and `end` < '2024-12-25 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-25 10:55:17] Production.INFO: count ==335 [2024-12-25 10:55:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:55:05 - End Time 2024-12-25 10:55:05 [2024-12-25 10:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099044', 'tblTempUsageDetail_20' ) start [2024-12-25 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099044', 'tblTempUsageDetail_20' ) end [2024-12-25 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099044', 'tblTempVendorCDR_20' ) start [2024-12-25 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099044', 'tblTempVendorCDR_20' ) end [2024-12-25 10:55:17] Production.INFO: ProcessCDR(1,14099044,1,1,2) [2024-12-25 10:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099044', 'tblTempUsageDetail_20' ) start [2024-12-25 10:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099044', 'tblTempUsageDetail_20' ) end [2024-12-25 10:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:55:20] Production.INFO: ==8716== Releasing lock... [2024-12-25 10:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:55:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 10:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:56:04 [end_date_ymd] => 2024-12-25 10:56:04 [RateCDR] => 1 ) [2024-12-25 10: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-25 07:56:04' and `end` < '2024-12-25 10: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-25 10:56:17] Production.INFO: count ==338 [2024-12-25 10:56:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:56:04 - End Time 2024-12-25 10:56:04 [2024-12-25 10:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099049', 'tblTempUsageDetail_20' ) start [2024-12-25 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099049', 'tblTempUsageDetail_20' ) end [2024-12-25 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099049', 'tblTempVendorCDR_20' ) start [2024-12-25 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099049', 'tblTempVendorCDR_20' ) end [2024-12-25 10:56:17] Production.INFO: ProcessCDR(1,14099049,1,1,2) [2024-12-25 10:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099049', 'tblTempUsageDetail_20' ) start [2024-12-25 10:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099049', 'tblTempUsageDetail_20' ) end [2024-12-25 10:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:56:20] Production.INFO: ==8805== Releasing lock... [2024-12-25 10:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:56:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 10:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:57:04 [end_date_ymd] => 2024-12-25 10:57:04 [RateCDR] => 1 ) [2024-12-25 10: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-25 07:57:04' and `end` < '2024-12-25 10: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-25 10:57:17] Production.INFO: count ==340 [2024-12-25 10:57:17] Production.ERROR: pbx CDR StartTime 2024-12-25 07:57:04 - End Time 2024-12-25 10:57:04 [2024-12-25 10:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099054', 'tblTempUsageDetail_20' ) start [2024-12-25 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099054', 'tblTempUsageDetail_20' ) end [2024-12-25 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099054', 'tblTempVendorCDR_20' ) start [2024-12-25 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099054', 'tblTempVendorCDR_20' ) end [2024-12-25 10:57:17] Production.INFO: ProcessCDR(1,14099054,1,1,2) [2024-12-25 10:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099054', 'tblTempUsageDetail_20' ) start [2024-12-25 10:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099054', 'tblTempUsageDetail_20' ) end [2024-12-25 10:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:57:20] Production.INFO: ==8886== Releasing lock... [2024-12-25 10:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:57:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-25 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:58:05 [end_date_ymd] => 2024-12-25 10:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 07:58:05' and `end` < '2024-12-25 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-25 10:58:19] Production.INFO: count ==362 [2024-12-25 10:58:19] Production.ERROR: pbx CDR StartTime 2024-12-25 07:58:05 - End Time 2024-12-25 10:58:05 [2024-12-25 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099059', 'tblTempUsageDetail_20' ) start [2024-12-25 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099059', 'tblTempUsageDetail_20' ) end [2024-12-25 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099059', 'tblTempVendorCDR_20' ) start [2024-12-25 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099059', 'tblTempVendorCDR_20' ) end [2024-12-25 10:58:19] Production.INFO: ProcessCDR(1,14099059,1,1,2) [2024-12-25 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099059', 'tblTempUsageDetail_20' ) start [2024-12-25 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099059', 'tblTempUsageDetail_20' ) end [2024-12-25 10:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:58:22] Production.INFO: ==8974== Releasing lock... [2024-12-25 10:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:58:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 07:59:04 [end_date_ymd] => 2024-12-25 10:59:04 [RateCDR] => 1 ) [2024-12-25 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-25 07:59:04' and `end` < '2024-12-25 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-25 10:59:16] Production.INFO: count ==364 [2024-12-25 10:59:16] Production.ERROR: pbx CDR StartTime 2024-12-25 07:59:04 - End Time 2024-12-25 10:59:04 [2024-12-25 10:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 10:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099064', 'tblTempUsageDetail_20' ) start [2024-12-25 10:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099064', 'tblTempUsageDetail_20' ) end [2024-12-25 10:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099064', 'tblTempVendorCDR_20' ) start [2024-12-25 10:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099064', 'tblTempVendorCDR_20' ) end [2024-12-25 10:59:16] Production.INFO: ProcessCDR(1,14099064,1,1,2) [2024-12-25 10:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 10:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:59:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 10:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099064', 'tblTempUsageDetail_20' ) start [2024-12-25 10:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099064', 'tblTempUsageDetail_20' ) end [2024-12-25 10:59:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 10:59:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 10:59:19] Production.INFO: ==9057== Releasing lock... [2024-12-25 10:59:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 10:59:19] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:00:05 [end_date_ymd] => 2024-12-25 11:00:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:00:05' and `end` < '2024-12-25 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-25 11:00:18] Production.INFO: count ==370 [2024-12-25 11:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:00:05 - End Time 2024-12-25 11:00:05 [2024-12-25 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099070', 'tblTempUsageDetail_20' ) start [2024-12-25 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099070', 'tblTempUsageDetail_20' ) end [2024-12-25 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099070', 'tblTempVendorCDR_20' ) start [2024-12-25 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099070', 'tblTempVendorCDR_20' ) end [2024-12-25 11:00:18] Production.INFO: ProcessCDR(1,14099070,1,1,2) [2024-12-25 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099070', 'tblTempUsageDetail_20' ) start [2024-12-25 11:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099070', 'tblTempUsageDetail_20' ) end [2024-12-25 11:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:00:21] Production.INFO: ==9141== Releasing lock... [2024-12-25 11:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:00:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:01:05 [end_date_ymd] => 2024-12-25 11:01:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:01:05' and `end` < '2024-12-25 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-25 11:01:19] Production.INFO: count ==388 [2024-12-25 11:01:19] Production.ERROR: pbx CDR StartTime 2024-12-25 08:01:05 - End Time 2024-12-25 11:01:05 [2024-12-25 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099075', 'tblTempUsageDetail_20' ) start [2024-12-25 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099075', 'tblTempUsageDetail_20' ) end [2024-12-25 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099075', 'tblTempVendorCDR_20' ) start [2024-12-25 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099075', 'tblTempVendorCDR_20' ) end [2024-12-25 11:01:19] Production.INFO: ProcessCDR(1,14099075,1,1,2) [2024-12-25 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099075', 'tblTempUsageDetail_20' ) start [2024-12-25 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099075', 'tblTempUsageDetail_20' ) end [2024-12-25 11:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:01:23] Production.INFO: ==9314== Releasing lock... [2024-12-25 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:01:23] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 11:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:02:04 [end_date_ymd] => 2024-12-25 11:02:04 [RateCDR] => 1 ) [2024-12-25 11:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:02:04' and `end` < '2024-12-25 11:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:02:17] Production.INFO: count ==388 [2024-12-25 11:02:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:02:04 - End Time 2024-12-25 11:02:04 [2024-12-25 11:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099080', 'tblTempUsageDetail_20' ) start [2024-12-25 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099080', 'tblTempUsageDetail_20' ) end [2024-12-25 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099080', 'tblTempVendorCDR_20' ) start [2024-12-25 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099080', 'tblTempVendorCDR_20' ) end [2024-12-25 11:02:17] Production.INFO: ProcessCDR(1,14099080,1,1,2) [2024-12-25 11:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099080', 'tblTempUsageDetail_20' ) start [2024-12-25 11:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099080', 'tblTempUsageDetail_20' ) end [2024-12-25 11:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:02:20] Production.INFO: ==9397== Releasing lock... [2024-12-25 11:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:02:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 11:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:03:04 [end_date_ymd] => 2024-12-25 11:03:04 [RateCDR] => 1 ) [2024-12-25 11:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:03:04' and `end` < '2024-12-25 11:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:03:18] Production.INFO: count ==388 [2024-12-25 11:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:03:04 - End Time 2024-12-25 11:03:04 [2024-12-25 11:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099085', 'tblTempUsageDetail_20' ) start [2024-12-25 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099085', 'tblTempUsageDetail_20' ) end [2024-12-25 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099085', 'tblTempVendorCDR_20' ) start [2024-12-25 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099085', 'tblTempVendorCDR_20' ) end [2024-12-25 11:03:18] Production.INFO: ProcessCDR(1,14099085,1,1,2) [2024-12-25 11:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099085', 'tblTempUsageDetail_20' ) start [2024-12-25 11:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099085', 'tblTempUsageDetail_20' ) end [2024-12-25 11:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:03:21] Production.INFO: ==9516== Releasing lock... [2024-12-25 11:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:03:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 11:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:04:04 [end_date_ymd] => 2024-12-25 11:04:04 [RateCDR] => 1 ) [2024-12-25 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-25 08:04:04' and `end` < '2024-12-25 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-25 11:04:17] Production.INFO: count ==388 [2024-12-25 11:04:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:04:04 - End Time 2024-12-25 11:04:04 [2024-12-25 11:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099090', 'tblTempUsageDetail_20' ) start [2024-12-25 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099090', 'tblTempUsageDetail_20' ) end [2024-12-25 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099090', 'tblTempVendorCDR_20' ) start [2024-12-25 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099090', 'tblTempVendorCDR_20' ) end [2024-12-25 11:04:17] Production.INFO: ProcessCDR(1,14099090,1,1,2) [2024-12-25 11:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099090', 'tblTempUsageDetail_20' ) start [2024-12-25 11:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099090', 'tblTempUsageDetail_20' ) end [2024-12-25 11:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:04:20] Production.INFO: ==9602== Releasing lock... [2024-12-25 11:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:04:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:05:05 [end_date_ymd] => 2024-12-25 11:05:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:05:05' and `end` < '2024-12-25 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-25 11:05:17] Production.INFO: count ==388 [2024-12-25 11:05:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:05:05 - End Time 2024-12-25 11:05:05 [2024-12-25 11:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099095', 'tblTempUsageDetail_20' ) start [2024-12-25 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099095', 'tblTempUsageDetail_20' ) end [2024-12-25 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099095', 'tblTempVendorCDR_20' ) start [2024-12-25 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099095', 'tblTempVendorCDR_20' ) end [2024-12-25 11:05:17] Production.INFO: ProcessCDR(1,14099095,1,1,2) [2024-12-25 11:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099095', 'tblTempUsageDetail_20' ) start [2024-12-25 11:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099095', 'tblTempUsageDetail_20' ) end [2024-12-25 11:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:05:20] Production.INFO: ==9761== Releasing lock... [2024-12-25 11:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:05:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:06:05 [end_date_ymd] => 2024-12-25 11:06:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:06:05' and `end` < '2024-12-25 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-25 11:06:17] Production.INFO: count ==388 [2024-12-25 11:06:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:06:05 - End Time 2024-12-25 11:06:05 [2024-12-25 11:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099100', 'tblTempUsageDetail_20' ) start [2024-12-25 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099100', 'tblTempUsageDetail_20' ) end [2024-12-25 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099100', 'tblTempVendorCDR_20' ) start [2024-12-25 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099100', 'tblTempVendorCDR_20' ) end [2024-12-25 11:06:17] Production.INFO: ProcessCDR(1,14099100,1,1,2) [2024-12-25 11:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099100', 'tblTempUsageDetail_20' ) start [2024-12-25 11:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099100', 'tblTempUsageDetail_20' ) end [2024-12-25 11:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:06:20] Production.INFO: ==9847== Releasing lock... [2024-12-25 11:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:06:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 11:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:07:04 [end_date_ymd] => 2024-12-25 11:07:04 [RateCDR] => 1 ) [2024-12-25 11: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-25 08:07:04' and `end` < '2024-12-25 11: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-25 11:07:16] Production.INFO: count ==397 [2024-12-25 11:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:07:04 - End Time 2024-12-25 11:07:04 [2024-12-25 11:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099105', 'tblTempUsageDetail_20' ) start [2024-12-25 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099105', 'tblTempUsageDetail_20' ) end [2024-12-25 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099105', 'tblTempVendorCDR_20' ) start [2024-12-25 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099105', 'tblTempVendorCDR_20' ) end [2024-12-25 11:07:17] Production.INFO: ProcessCDR(1,14099105,1,1,2) [2024-12-25 11:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099105', 'tblTempUsageDetail_20' ) start [2024-12-25 11:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099105', 'tblTempUsageDetail_20' ) end [2024-12-25 11:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:07:20] Production.INFO: ==9927== Releasing lock... [2024-12-25 11:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:07:20] Production.INFO: 32 MB #Memory Used# [2024-12-25 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:08:05 [end_date_ymd] => 2024-12-25 11:08:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:08:05' and `end` < '2024-12-25 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-25 11:08:17] Production.INFO: count ==398 [2024-12-25 11:08:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:08:05 - End Time 2024-12-25 11:08:05 [2024-12-25 11:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099110', 'tblTempUsageDetail_20' ) start [2024-12-25 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099110', 'tblTempUsageDetail_20' ) end [2024-12-25 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099110', 'tblTempVendorCDR_20' ) start [2024-12-25 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099110', 'tblTempVendorCDR_20' ) end [2024-12-25 11:08:17] Production.INFO: ProcessCDR(1,14099110,1,1,2) [2024-12-25 11:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099110', 'tblTempUsageDetail_20' ) start [2024-12-25 11:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099110', 'tblTempUsageDetail_20' ) end [2024-12-25 11:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:08:20] Production.INFO: ==10090== Releasing lock... [2024-12-25 11:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:08:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 11:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:09:04 [end_date_ymd] => 2024-12-25 11:09:04 [RateCDR] => 1 ) [2024-12-25 11:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:09:04' and `end` < '2024-12-25 11:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:09:18] Production.INFO: count ==398 [2024-12-25 11:09:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:09:04 - End Time 2024-12-25 11:09:04 [2024-12-25 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099115', 'tblTempUsageDetail_20' ) start [2024-12-25 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099115', 'tblTempUsageDetail_20' ) end [2024-12-25 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099115', 'tblTempVendorCDR_20' ) start [2024-12-25 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099115', 'tblTempVendorCDR_20' ) end [2024-12-25 11:09:18] Production.INFO: ProcessCDR(1,14099115,1,1,2) [2024-12-25 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099115', 'tblTempUsageDetail_20' ) start [2024-12-25 11:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099115', 'tblTempUsageDetail_20' ) end [2024-12-25 11:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:09:21] Production.INFO: ==10172== Releasing lock... [2024-12-25 11:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:09:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:10:05 [end_date_ymd] => 2024-12-25 11:10:05 [RateCDR] => 1 ) [2024-12-25 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:10:05' and `end` < '2024-12-25 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:10:18] Production.INFO: count ==404 [2024-12-25 11:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:10:05 - End Time 2024-12-25 11:10:05 [2024-12-25 11:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099120', 'tblTempUsageDetail_20' ) start [2024-12-25 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099120', 'tblTempUsageDetail_20' ) end [2024-12-25 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099120', 'tblTempVendorCDR_20' ) start [2024-12-25 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099120', 'tblTempVendorCDR_20' ) end [2024-12-25 11:10:18] Production.INFO: ProcessCDR(1,14099120,1,1,2) [2024-12-25 11:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099120', 'tblTempUsageDetail_20' ) start [2024-12-25 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099120', 'tblTempUsageDetail_20' ) end [2024-12-25 11:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:10:22] Production.INFO: ==10253== Releasing lock... [2024-12-25 11:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:10:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:11:04 [end_date_ymd] => 2024-12-25 11:11:04 [RateCDR] => 1 ) [2024-12-25 11:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:11:04' and `end` < '2024-12-25 11:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:11:17] Production.INFO: count ==408 [2024-12-25 11:11:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:11:04 - End Time 2024-12-25 11:11:04 [2024-12-25 11:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099126', 'tblTempUsageDetail_20' ) start [2024-12-25 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099126', 'tblTempUsageDetail_20' ) end [2024-12-25 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099126', 'tblTempVendorCDR_20' ) start [2024-12-25 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099126', 'tblTempVendorCDR_20' ) end [2024-12-25 11:11:17] Production.INFO: ProcessCDR(1,14099126,1,1,2) [2024-12-25 11:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099126', 'tblTempUsageDetail_20' ) start [2024-12-25 11:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099126', 'tblTempUsageDetail_20' ) end [2024-12-25 11:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:11:20] Production.INFO: ==10337== Releasing lock... [2024-12-25 11:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:11:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:12:05 [end_date_ymd] => 2024-12-25 11:12:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:12:05' and `end` < '2024-12-25 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-25 11:12:21] Production.INFO: count ==425 [2024-12-25 11:12:21] Production.ERROR: pbx CDR StartTime 2024-12-25 08:12:05 - End Time 2024-12-25 11:12:05 [2024-12-25 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099131', 'tblTempUsageDetail_20' ) start [2024-12-25 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099131', 'tblTempUsageDetail_20' ) end [2024-12-25 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099131', 'tblTempVendorCDR_20' ) start [2024-12-25 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099131', 'tblTempVendorCDR_20' ) end [2024-12-25 11:12:21] Production.INFO: ProcessCDR(1,14099131,1,1,2) [2024-12-25 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099131', 'tblTempUsageDetail_20' ) start [2024-12-25 11:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099131', 'tblTempUsageDetail_20' ) end [2024-12-25 11:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:12:24] Production.INFO: ==10497== Releasing lock... [2024-12-25 11:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:12:24] Production.INFO: 31.5 MB #Memory Used# [2024-12-25 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:13:05 [end_date_ymd] => 2024-12-25 11:13:05 [RateCDR] => 1 ) [2024-12-25 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:13:05' and `end` < '2024-12-25 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:13:18] Production.INFO: count ==430 [2024-12-25 11:13:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:13:05 - End Time 2024-12-25 11:13:05 [2024-12-25 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099136', 'tblTempUsageDetail_20' ) start [2024-12-25 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099136', 'tblTempUsageDetail_20' ) end [2024-12-25 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099136', 'tblTempVendorCDR_20' ) start [2024-12-25 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099136', 'tblTempVendorCDR_20' ) end [2024-12-25 11:13:18] Production.INFO: ProcessCDR(1,14099136,1,1,2) [2024-12-25 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099136', 'tblTempUsageDetail_20' ) start [2024-12-25 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099136', 'tblTempUsageDetail_20' ) end [2024-12-25 11:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:13:22] Production.INFO: ==10582== Releasing lock... [2024-12-25 11:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:13:22] Production.INFO: 32 MB #Memory Used# [2024-12-25 11:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:14:04 [end_date_ymd] => 2024-12-25 11:14:04 [RateCDR] => 1 ) [2024-12-25 11:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:14:04' and `end` < '2024-12-25 11:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:14:16] Production.INFO: count ==434 [2024-12-25 11:14:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:14:04 - End Time 2024-12-25 11:14:04 [2024-12-25 11:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099141', 'tblTempUsageDetail_20' ) start [2024-12-25 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099141', 'tblTempUsageDetail_20' ) end [2024-12-25 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099141', 'tblTempVendorCDR_20' ) start [2024-12-25 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099141', 'tblTempVendorCDR_20' ) end [2024-12-25 11:14:17] Production.INFO: ProcessCDR(1,14099141,1,1,2) [2024-12-25 11:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099141', 'tblTempUsageDetail_20' ) start [2024-12-25 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099141', 'tblTempUsageDetail_20' ) end [2024-12-25 11:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:14:21] Production.INFO: ==10662== Releasing lock... [2024-12-25 11:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:14:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:15:05 [end_date_ymd] => 2024-12-25 11:15:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:15:05' and `end` < '2024-12-25 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-25 11:15:17] Production.INFO: count ==436 [2024-12-25 11:15:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:15:05 - End Time 2024-12-25 11:15:05 [2024-12-25 11:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099146', 'tblTempUsageDetail_20' ) start [2024-12-25 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099146', 'tblTempUsageDetail_20' ) end [2024-12-25 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099146', 'tblTempVendorCDR_20' ) start [2024-12-25 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099146', 'tblTempVendorCDR_20' ) end [2024-12-25 11:15:17] Production.INFO: ProcessCDR(1,14099146,1,1,2) [2024-12-25 11:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099146', 'tblTempUsageDetail_20' ) start [2024-12-25 11:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099146', 'tblTempUsageDetail_20' ) end [2024-12-25 11:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:15:20] Production.INFO: ==10823== Releasing lock... [2024-12-25 11:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:15:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 11:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:16:04 [end_date_ymd] => 2024-12-25 11:16:04 [RateCDR] => 1 ) [2024-12-25 11: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-25 08:16:04' and `end` < '2024-12-25 11: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-25 11:16:16] Production.INFO: count ==439 [2024-12-25 11:16:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:16:04 - End Time 2024-12-25 11:16:04 [2024-12-25 11:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099151', 'tblTempUsageDetail_20' ) start [2024-12-25 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099151', 'tblTempUsageDetail_20' ) end [2024-12-25 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099151', 'tblTempVendorCDR_20' ) start [2024-12-25 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099151', 'tblTempVendorCDR_20' ) end [2024-12-25 11:16:17] Production.INFO: ProcessCDR(1,14099151,1,1,2) [2024-12-25 11:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099151', 'tblTempUsageDetail_20' ) start [2024-12-25 11:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099151', 'tblTempUsageDetail_20' ) end [2024-12-25 11:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:16:21] Production.INFO: ==10902== Releasing lock... [2024-12-25 11:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:16:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:17:04 [end_date_ymd] => 2024-12-25 11:17:04 [RateCDR] => 1 ) [2024-12-25 11: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-25 08:17:04' and `end` < '2024-12-25 11: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-25 11:17:17] Production.INFO: count ==439 [2024-12-25 11:17:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:17:04 - End Time 2024-12-25 11:17:04 [2024-12-25 11:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099156', 'tblTempUsageDetail_20' ) start [2024-12-25 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099156', 'tblTempUsageDetail_20' ) end [2024-12-25 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099156', 'tblTempVendorCDR_20' ) start [2024-12-25 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099156', 'tblTempVendorCDR_20' ) end [2024-12-25 11:17:17] Production.INFO: ProcessCDR(1,14099156,1,1,2) [2024-12-25 11:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099156', 'tblTempUsageDetail_20' ) start [2024-12-25 11:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099156', 'tblTempUsageDetail_20' ) end [2024-12-25 11:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:17:20] Production.INFO: ==10981== Releasing lock... [2024-12-25 11:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:17:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-25 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:18:05 [end_date_ymd] => 2024-12-25 11:18:05 [RateCDR] => 1 ) [2024-12-25 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:18:05' and `end` < '2024-12-25 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:18:19] Production.INFO: count ==453 [2024-12-25 11:18:19] Production.ERROR: pbx CDR StartTime 2024-12-25 08:18:05 - End Time 2024-12-25 11:18:05 [2024-12-25 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099161', 'tblTempUsageDetail_20' ) start [2024-12-25 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099161', 'tblTempUsageDetail_20' ) end [2024-12-25 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099161', 'tblTempVendorCDR_20' ) start [2024-12-25 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099161', 'tblTempVendorCDR_20' ) end [2024-12-25 11:18:19] Production.INFO: ProcessCDR(1,14099161,1,1,2) [2024-12-25 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099161', 'tblTempUsageDetail_20' ) start [2024-12-25 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099161', 'tblTempUsageDetail_20' ) end [2024-12-25 11:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:18:22] Production.INFO: ==11065== Releasing lock... [2024-12-25 11:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:18:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:19:04 [end_date_ymd] => 2024-12-25 11:19:04 [RateCDR] => 1 ) [2024-12-25 11:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:19:04' and `end` < '2024-12-25 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-25 11:19:17] Production.INFO: count ==453 [2024-12-25 11:19:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:19:04 - End Time 2024-12-25 11:19:04 [2024-12-25 11:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099166', 'tblTempUsageDetail_20' ) start [2024-12-25 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099166', 'tblTempUsageDetail_20' ) end [2024-12-25 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099166', 'tblTempVendorCDR_20' ) start [2024-12-25 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099166', 'tblTempVendorCDR_20' ) end [2024-12-25 11:19:17] Production.INFO: ProcessCDR(1,14099166,1,1,2) [2024-12-25 11:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099166', 'tblTempUsageDetail_20' ) start [2024-12-25 11:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099166', 'tblTempUsageDetail_20' ) end [2024-12-25 11:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:19:20] Production.INFO: ==11189== Releasing lock... [2024-12-25 11:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:19:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:20:05 [end_date_ymd] => 2024-12-25 11:20:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:20:05' and `end` < '2024-12-25 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-25 11:20:17] Production.INFO: count ==457 [2024-12-25 11:20:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:20:05 - End Time 2024-12-25 11:20:05 [2024-12-25 11:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099172', 'tblTempUsageDetail_20' ) start [2024-12-25 11:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099172', 'tblTempUsageDetail_20' ) end [2024-12-25 11:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099172', 'tblTempVendorCDR_20' ) start [2024-12-25 11:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099172', 'tblTempVendorCDR_20' ) end [2024-12-25 11:20:17] Production.INFO: ProcessCDR(1,14099172,1,1,2) [2024-12-25 11:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099172', 'tblTempUsageDetail_20' ) start [2024-12-25 11:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099172', 'tblTempUsageDetail_20' ) end [2024-12-25 11:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:20:21] Production.INFO: ==11275== Releasing lock... [2024-12-25 11:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:20:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 11:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:21:04 [end_date_ymd] => 2024-12-25 11:21:04 [RateCDR] => 1 ) [2024-12-25 11:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:21:04' and `end` < '2024-12-25 11:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:21:16] Production.INFO: count ==483 [2024-12-25 11:21:16] Production.ERROR: pbx CDR StartTime 2024-12-25 08:21:04 - End Time 2024-12-25 11:21:04 [2024-12-25 11:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099177', 'tblTempUsageDetail_20' ) start [2024-12-25 11:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099177', 'tblTempUsageDetail_20' ) end [2024-12-25 11:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099177', 'tblTempVendorCDR_20' ) start [2024-12-25 11:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099177', 'tblTempVendorCDR_20' ) end [2024-12-25 11:21:16] Production.INFO: ProcessCDR(1,14099177,1,1,2) [2024-12-25 11:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099177', 'tblTempUsageDetail_20' ) start [2024-12-25 11:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099177', 'tblTempUsageDetail_20' ) end [2024-12-25 11:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:21:19] Production.INFO: ==11357== Releasing lock... [2024-12-25 11:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:21:19] Production.INFO: 32.5 MB #Memory Used# [2024-12-25 11:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:22:04 [end_date_ymd] => 2024-12-25 11:22:04 [RateCDR] => 1 ) [2024-12-25 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-25 08:22:04' and `end` < '2024-12-25 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-25 11:22:17] Production.INFO: count ==484 [2024-12-25 11:22:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:22:04 - End Time 2024-12-25 11:22:04 [2024-12-25 11:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099182', 'tblTempUsageDetail_20' ) start [2024-12-25 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099182', 'tblTempUsageDetail_20' ) end [2024-12-25 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099182', 'tblTempVendorCDR_20' ) start [2024-12-25 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099182', 'tblTempVendorCDR_20' ) end [2024-12-25 11:22:17] Production.INFO: ProcessCDR(1,14099182,1,1,2) [2024-12-25 11:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099182', 'tblTempUsageDetail_20' ) start [2024-12-25 11:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099182', 'tblTempUsageDetail_20' ) end [2024-12-25 11:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:22:21] Production.INFO: ==11443== Releasing lock... [2024-12-25 11:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:22:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:23:05 [end_date_ymd] => 2024-12-25 11:23:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:23:05' and `end` < '2024-12-25 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-25 11:23:19] Production.INFO: count ==485 [2024-12-25 11:23:19] Production.ERROR: pbx CDR StartTime 2024-12-25 08:23:05 - End Time 2024-12-25 11:23:05 [2024-12-25 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099187', 'tblTempUsageDetail_20' ) start [2024-12-25 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099187', 'tblTempUsageDetail_20' ) end [2024-12-25 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099187', 'tblTempVendorCDR_20' ) start [2024-12-25 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099187', 'tblTempVendorCDR_20' ) end [2024-12-25 11:23:19] Production.INFO: ProcessCDR(1,14099187,1,1,2) [2024-12-25 11:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099187', 'tblTempUsageDetail_20' ) start [2024-12-25 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099187', 'tblTempUsageDetail_20' ) end [2024-12-25 11:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:23:23] Production.INFO: ==11523== Releasing lock... [2024-12-25 11:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:23:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-25 11:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:24:04 [end_date_ymd] => 2024-12-25 11:24:04 [RateCDR] => 1 ) [2024-12-25 11: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-25 08:24:04' and `end` < '2024-12-25 11: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-25 11:24:17] Production.INFO: count ==489 [2024-12-25 11:24:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:24:04 - End Time 2024-12-25 11:24:04 [2024-12-25 11:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099192', 'tblTempUsageDetail_20' ) start [2024-12-25 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099192', 'tblTempUsageDetail_20' ) end [2024-12-25 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099192', 'tblTempVendorCDR_20' ) start [2024-12-25 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099192', 'tblTempVendorCDR_20' ) end [2024-12-25 11:24:17] Production.INFO: ProcessCDR(1,14099192,1,1,2) [2024-12-25 11:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099192', 'tblTempUsageDetail_20' ) start [2024-12-25 11:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099192', 'tblTempUsageDetail_20' ) end [2024-12-25 11:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:24:20] Production.INFO: ==11608== Releasing lock... [2024-12-25 11:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:24:20] Production.INFO: 32 MB #Memory Used# [2024-12-25 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:25:05 [end_date_ymd] => 2024-12-25 11:25:05 [RateCDR] => 1 ) [2024-12-25 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:25:05' and `end` < '2024-12-25 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:25:17] Production.INFO: count ==500 [2024-12-25 11:25:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:25:05 - End Time 2024-12-25 11:25:05 [2024-12-25 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099197', 'tblTempUsageDetail_20' ) start [2024-12-25 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099197', 'tblTempUsageDetail_20' ) end [2024-12-25 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099197', 'tblTempVendorCDR_20' ) start [2024-12-25 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099197', 'tblTempVendorCDR_20' ) end [2024-12-25 11:25:17] Production.INFO: ProcessCDR(1,14099197,1,1,2) [2024-12-25 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099197', 'tblTempUsageDetail_20' ) start [2024-12-25 11:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099197', 'tblTempUsageDetail_20' ) end [2024-12-25 11:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:25:22] Production.INFO: ==11699== Releasing lock... [2024-12-25 11:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:25:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-25 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:26:04 [end_date_ymd] => 2024-12-25 11:26:04 [RateCDR] => 1 ) [2024-12-25 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-25 08:26:04' and `end` < '2024-12-25 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-25 11:26:16] Production.INFO: count ==500 [2024-12-25 11:26:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:26:04 - End Time 2024-12-25 11:26:04 [2024-12-25 11:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099202', 'tblTempUsageDetail_20' ) start [2024-12-25 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099202', 'tblTempUsageDetail_20' ) end [2024-12-25 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099202', 'tblTempVendorCDR_20' ) start [2024-12-25 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099202', 'tblTempVendorCDR_20' ) end [2024-12-25 11:26:17] Production.INFO: ProcessCDR(1,14099202,1,1,2) [2024-12-25 11:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099202', 'tblTempUsageDetail_20' ) start [2024-12-25 11:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099202', 'tblTempUsageDetail_20' ) end [2024-12-25 11:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:26:20] Production.INFO: ==11788== Releasing lock... [2024-12-25 11:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:26:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-25 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:27:05 [end_date_ymd] => 2024-12-25 11:27:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:27:05' and `end` < '2024-12-25 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-25 11:27:17] Production.INFO: count ==500 [2024-12-25 11:27:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:27:05 - End Time 2024-12-25 11:27:05 [2024-12-25 11:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099207', 'tblTempUsageDetail_20' ) start [2024-12-25 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099207', 'tblTempUsageDetail_20' ) end [2024-12-25 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099207', 'tblTempVendorCDR_20' ) start [2024-12-25 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099207', 'tblTempVendorCDR_20' ) end [2024-12-25 11:27:17] Production.INFO: ProcessCDR(1,14099207,1,1,2) [2024-12-25 11:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099207', 'tblTempUsageDetail_20' ) start [2024-12-25 11:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099207', 'tblTempUsageDetail_20' ) end [2024-12-25 11:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:27:20] Production.INFO: ==11877== Releasing lock... [2024-12-25 11:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:27:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-25 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:28:05 [end_date_ymd] => 2024-12-25 11:28:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:28:05' and `end` < '2024-12-25 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-25 11:28:18] Production.INFO: count ==500 [2024-12-25 11:28:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:28:05 - End Time 2024-12-25 11:28:05 [2024-12-25 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099212', 'tblTempUsageDetail_20' ) start [2024-12-25 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099212', 'tblTempUsageDetail_20' ) end [2024-12-25 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099212', 'tblTempVendorCDR_20' ) start [2024-12-25 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099212', 'tblTempVendorCDR_20' ) end [2024-12-25 11:28:18] Production.INFO: ProcessCDR(1,14099212,1,1,2) [2024-12-25 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099212', 'tblTempUsageDetail_20' ) start [2024-12-25 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099212', 'tblTempUsageDetail_20' ) end [2024-12-25 11:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:28:21] Production.INFO: ==11960== Releasing lock... [2024-12-25 11:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:28:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-25 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:29:04 [end_date_ymd] => 2024-12-25 11:29:04 [RateCDR] => 1 ) [2024-12-25 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-25 08:29:04' and `end` < '2024-12-25 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-25 11:29:17] Production.INFO: count ==504 [2024-12-25 11:29:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:29:04 - End Time 2024-12-25 11:29:04 [2024-12-25 11:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099216', 'tblTempUsageDetail_20' ) start [2024-12-25 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099216', 'tblTempUsageDetail_20' ) end [2024-12-25 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099216', 'tblTempVendorCDR_20' ) start [2024-12-25 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099216', 'tblTempVendorCDR_20' ) end [2024-12-25 11:29:18] Production.INFO: ProcessCDR(1,14099216,1,1,2) [2024-12-25 11:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099216', 'tblTempUsageDetail_20' ) start [2024-12-25 11:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099216', 'tblTempUsageDetail_20' ) end [2024-12-25 11:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:29:21] Production.INFO: ==12050== Releasing lock... [2024-12-25 11:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:29:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:30:05 [end_date_ymd] => 2024-12-25 11:30:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:30:05' and `end` < '2024-12-25 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-25 11:30:17] Production.INFO: count ==507 [2024-12-25 11:30:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:30:05 - End Time 2024-12-25 11:30:05 [2024-12-25 11:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099222', 'tblTempUsageDetail_20' ) start [2024-12-25 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099222', 'tblTempUsageDetail_20' ) end [2024-12-25 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099222', 'tblTempVendorCDR_20' ) start [2024-12-25 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099222', 'tblTempVendorCDR_20' ) end [2024-12-25 11:30:18] Production.INFO: ProcessCDR(1,14099222,1,1,2) [2024-12-25 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099222', 'tblTempUsageDetail_20' ) start [2024-12-25 11:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099222', 'tblTempUsageDetail_20' ) end [2024-12-25 11:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:30:20] Production.INFO: ==12138== Releasing lock... [2024-12-25 11:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:30:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-25 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:31:04 [end_date_ymd] => 2024-12-25 11:31:04 [RateCDR] => 1 ) [2024-12-25 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-25 08:31:04' and `end` < '2024-12-25 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-25 11:31:20] Production.INFO: count ==527 [2024-12-25 11:31:20] Production.ERROR: pbx CDR StartTime 2024-12-25 08:31:04 - End Time 2024-12-25 11:31:04 [2024-12-25 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099228', 'tblTempUsageDetail_20' ) start [2024-12-25 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099228', 'tblTempUsageDetail_20' ) end [2024-12-25 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099228', 'tblTempVendorCDR_20' ) start [2024-12-25 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099228', 'tblTempVendorCDR_20' ) end [2024-12-25 11:31:20] Production.INFO: ProcessCDR(1,14099228,1,1,2) [2024-12-25 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099228', 'tblTempUsageDetail_20' ) start [2024-12-25 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099228', 'tblTempUsageDetail_20' ) end [2024-12-25 11:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:31:23] Production.INFO: ==12226== Releasing lock... [2024-12-25 11:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:31:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:32:05 [end_date_ymd] => 2024-12-25 11:32:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:32:05' and `end` < '2024-12-25 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-25 11:32:19] Production.INFO: count ==529 [2024-12-25 11:32:19] Production.ERROR: pbx CDR StartTime 2024-12-25 08:32:05 - End Time 2024-12-25 11:32:05 [2024-12-25 11:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099233', 'tblTempUsageDetail_20' ) start [2024-12-25 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099233', 'tblTempUsageDetail_20' ) end [2024-12-25 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099233', 'tblTempVendorCDR_20' ) start [2024-12-25 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099233', 'tblTempVendorCDR_20' ) end [2024-12-25 11:32:19] Production.INFO: ProcessCDR(1,14099233,1,1,2) [2024-12-25 11:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099233', 'tblTempUsageDetail_20' ) start [2024-12-25 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099233', 'tblTempUsageDetail_20' ) end [2024-12-25 11:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:32:22] Production.INFO: ==12314== Releasing lock... [2024-12-25 11:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:32:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-25 11:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:33:04 [end_date_ymd] => 2024-12-25 11:33:04 [RateCDR] => 1 ) [2024-12-25 11: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-25 08:33:04' and `end` < '2024-12-25 11: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-25 11:33:17] Production.INFO: count ==530 [2024-12-25 11:33:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:33:04 - End Time 2024-12-25 11:33:04 [2024-12-25 11:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099238', 'tblTempUsageDetail_20' ) start [2024-12-25 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099238', 'tblTempUsageDetail_20' ) end [2024-12-25 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099238', 'tblTempVendorCDR_20' ) start [2024-12-25 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099238', 'tblTempVendorCDR_20' ) end [2024-12-25 11:33:17] Production.INFO: ProcessCDR(1,14099238,1,1,2) [2024-12-25 11:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099238', 'tblTempUsageDetail_20' ) start [2024-12-25 11:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099238', 'tblTempUsageDetail_20' ) end [2024-12-25 11:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:33:20] Production.INFO: ==12409== Releasing lock... [2024-12-25 11:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:33:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:34:04 [end_date_ymd] => 2024-12-25 11:34:04 [RateCDR] => 1 ) [2024-12-25 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-25 08:34:04' and `end` < '2024-12-25 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-25 11:34:16] Production.INFO: count ==530 [2024-12-25 11:34:16] Production.ERROR: pbx CDR StartTime 2024-12-25 08:34:04 - End Time 2024-12-25 11:34:04 [2024-12-25 11:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099243', 'tblTempUsageDetail_20' ) start [2024-12-25 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099243', 'tblTempUsageDetail_20' ) end [2024-12-25 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099243', 'tblTempVendorCDR_20' ) start [2024-12-25 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099243', 'tblTempVendorCDR_20' ) end [2024-12-25 11:34:17] Production.INFO: ProcessCDR(1,14099243,1,1,2) [2024-12-25 11:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099243', 'tblTempUsageDetail_20' ) start [2024-12-25 11:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099243', 'tblTempUsageDetail_20' ) end [2024-12-25 11:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:34:20] Production.INFO: ==12536== Releasing lock... [2024-12-25 11:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:34:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:35:05 [end_date_ymd] => 2024-12-25 11:35:05 [RateCDR] => 1 ) [2024-12-25 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:35:05' and `end` < '2024-12-25 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:35:17] Production.INFO: count ==530 [2024-12-25 11:35:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:35:05 - End Time 2024-12-25 11:35:05 [2024-12-25 11:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099248', 'tblTempUsageDetail_20' ) start [2024-12-25 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099248', 'tblTempUsageDetail_20' ) end [2024-12-25 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099248', 'tblTempVendorCDR_20' ) start [2024-12-25 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099248', 'tblTempVendorCDR_20' ) end [2024-12-25 11:35:17] Production.INFO: ProcessCDR(1,14099248,1,1,2) [2024-12-25 11:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099248', 'tblTempUsageDetail_20' ) start [2024-12-25 11:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099248', 'tblTempUsageDetail_20' ) end [2024-12-25 11:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:35:20] Production.INFO: ==12622== Releasing lock... [2024-12-25 11:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:35:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 11:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:36:04 [end_date_ymd] => 2024-12-25 11:36:04 [RateCDR] => 1 ) [2024-12-25 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-25 08:36:04' and `end` < '2024-12-25 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-25 11:36:17] Production.INFO: count ==530 [2024-12-25 11:36:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:36:04 - End Time 2024-12-25 11:36:04 [2024-12-25 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099253', 'tblTempUsageDetail_20' ) start [2024-12-25 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099253', 'tblTempUsageDetail_20' ) end [2024-12-25 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099253', 'tblTempVendorCDR_20' ) start [2024-12-25 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099253', 'tblTempVendorCDR_20' ) end [2024-12-25 11:36:18] Production.INFO: ProcessCDR(1,14099253,1,1,2) [2024-12-25 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099253', 'tblTempUsageDetail_20' ) start [2024-12-25 11:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099253', 'tblTempUsageDetail_20' ) end [2024-12-25 11:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:36:21] Production.INFO: ==12711== Releasing lock... [2024-12-25 11:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:36:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:37:04 [end_date_ymd] => 2024-12-25 11:37:04 [RateCDR] => 1 ) [2024-12-25 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-25 08:37:04' and `end` < '2024-12-25 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-25 11:37:18] Production.INFO: count ==532 [2024-12-25 11:37:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:37:04 - End Time 2024-12-25 11:37:04 [2024-12-25 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099258', 'tblTempUsageDetail_20' ) start [2024-12-25 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099258', 'tblTempUsageDetail_20' ) end [2024-12-25 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099258', 'tblTempVendorCDR_20' ) start [2024-12-25 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099258', 'tblTempVendorCDR_20' ) end [2024-12-25 11:37:18] Production.INFO: ProcessCDR(1,14099258,1,1,2) [2024-12-25 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099258', 'tblTempUsageDetail_20' ) start [2024-12-25 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099258', 'tblTempUsageDetail_20' ) end [2024-12-25 11:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:37:21] Production.INFO: ==12802== Releasing lock... [2024-12-25 11:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:37:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-25 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:38:05 [end_date_ymd] => 2024-12-25 11:38:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:38:05' and `end` < '2024-12-25 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-25 11:38:18] Production.INFO: count ==537 [2024-12-25 11:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:38:05 - End Time 2024-12-25 11:38:05 [2024-12-25 11:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099263', 'tblTempUsageDetail_20' ) start [2024-12-25 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099263', 'tblTempUsageDetail_20' ) end [2024-12-25 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099263', 'tblTempVendorCDR_20' ) start [2024-12-25 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099263', 'tblTempVendorCDR_20' ) end [2024-12-25 11:38:18] Production.INFO: ProcessCDR(1,14099263,1,1,2) [2024-12-25 11:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099263', 'tblTempUsageDetail_20' ) start [2024-12-25 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099263', 'tblTempUsageDetail_20' ) end [2024-12-25 11:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:38:22] Production.INFO: ==12885== Releasing lock... [2024-12-25 11:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:38:22] Production.INFO: 33 MB #Memory Used# [2024-12-25 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:39:05 [end_date_ymd] => 2024-12-25 11:39:05 [RateCDR] => 1 ) [2024-12-25 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:39:05' and `end` < '2024-12-25 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:39:17] Production.INFO: count ==539 [2024-12-25 11:39:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:39:05 - End Time 2024-12-25 11:39:05 [2024-12-25 11:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099268', 'tblTempUsageDetail_20' ) start [2024-12-25 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099268', 'tblTempUsageDetail_20' ) end [2024-12-25 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099268', 'tblTempVendorCDR_20' ) start [2024-12-25 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099268', 'tblTempVendorCDR_20' ) end [2024-12-25 11:39:17] Production.INFO: ProcessCDR(1,14099268,1,1,2) [2024-12-25 11:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099268', 'tblTempUsageDetail_20' ) start [2024-12-25 11:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099268', 'tblTempUsageDetail_20' ) end [2024-12-25 11:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:39:21] Production.INFO: ==12973== Releasing lock... [2024-12-25 11:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:39:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:40:06 [end_date_ymd] => 2024-12-25 11:40:06 [RateCDR] => 1 ) [2024-12-25 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:40:06' and `end` < '2024-12-25 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:40:18] Production.INFO: count ==547 [2024-12-25 11:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:40:06 - End Time 2024-12-25 11:40:06 [2024-12-25 11:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099274', 'tblTempUsageDetail_20' ) start [2024-12-25 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099274', 'tblTempUsageDetail_20' ) end [2024-12-25 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099274', 'tblTempVendorCDR_20' ) start [2024-12-25 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099274', 'tblTempVendorCDR_20' ) end [2024-12-25 11:40:18] Production.INFO: ProcessCDR(1,14099274,1,1,2) [2024-12-25 11:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099274', 'tblTempUsageDetail_20' ) start [2024-12-25 11:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099274', 'tblTempUsageDetail_20' ) end [2024-12-25 11:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:40:21] Production.INFO: ==13059== Releasing lock... [2024-12-25 11:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:40:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-25 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:41:05 [end_date_ymd] => 2024-12-25 11:41:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:41:05' and `end` < '2024-12-25 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-25 11:41:17] Production.INFO: count ==562 [2024-12-25 11:41:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:41:05 - End Time 2024-12-25 11:41:05 [2024-12-25 11:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099279', 'tblTempUsageDetail_20' ) start [2024-12-25 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099279', 'tblTempUsageDetail_20' ) end [2024-12-25 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099279', 'tblTempVendorCDR_20' ) start [2024-12-25 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099279', 'tblTempVendorCDR_20' ) end [2024-12-25 11:41:17] Production.INFO: ProcessCDR(1,14099279,1,1,2) [2024-12-25 11:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099279', 'tblTempUsageDetail_20' ) start [2024-12-25 11:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099279', 'tblTempUsageDetail_20' ) end [2024-12-25 11:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:41:20] Production.INFO: ==13143== Releasing lock... [2024-12-25 11:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:41:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:42:05 [end_date_ymd] => 2024-12-25 11:42:05 [RateCDR] => 1 ) [2024-12-25 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:42:05' and `end` < '2024-12-25 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:42:18] Production.INFO: count ==565 [2024-12-25 11:42:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:42:05 - End Time 2024-12-25 11:42:05 [2024-12-25 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099284', 'tblTempUsageDetail_20' ) start [2024-12-25 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099284', 'tblTempUsageDetail_20' ) end [2024-12-25 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099284', 'tblTempVendorCDR_20' ) start [2024-12-25 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099284', 'tblTempVendorCDR_20' ) end [2024-12-25 11:42:19] Production.INFO: ProcessCDR(1,14099284,1,1,2) [2024-12-25 11:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099284', 'tblTempUsageDetail_20' ) start [2024-12-25 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099284', 'tblTempUsageDetail_20' ) end [2024-12-25 11:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:42:22] Production.INFO: ==13233== Releasing lock... [2024-12-25 11:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:42:22] Production.INFO: 33 MB #Memory Used# [2024-12-25 11:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:43:04 [end_date_ymd] => 2024-12-25 11:43:04 [RateCDR] => 1 ) [2024-12-25 11: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-25 08:43:04' and `end` < '2024-12-25 11: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-25 11:43:16] Production.INFO: count ==565 [2024-12-25 11:43:16] Production.ERROR: pbx CDR StartTime 2024-12-25 08:43:04 - End Time 2024-12-25 11:43:04 [2024-12-25 11:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099289', 'tblTempUsageDetail_20' ) start [2024-12-25 11:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099289', 'tblTempUsageDetail_20' ) end [2024-12-25 11:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099289', 'tblTempVendorCDR_20' ) start [2024-12-25 11:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099289', 'tblTempVendorCDR_20' ) end [2024-12-25 11:43:16] Production.INFO: ProcessCDR(1,14099289,1,1,2) [2024-12-25 11:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099289', 'tblTempUsageDetail_20' ) start [2024-12-25 11:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099289', 'tblTempUsageDetail_20' ) end [2024-12-25 11:43:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:43:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:43:19] Production.INFO: ==13315== Releasing lock... [2024-12-25 11:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:43:19] Production.INFO: 33 MB #Memory Used# [2024-12-25 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:44:05 [end_date_ymd] => 2024-12-25 11:44:05 [RateCDR] => 1 ) [2024-12-25 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:44:05' and `end` < '2024-12-25 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:44:18] Production.INFO: count ==565 [2024-12-25 11:44:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:44:05 - End Time 2024-12-25 11:44:05 [2024-12-25 11:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099294', 'tblTempUsageDetail_20' ) start [2024-12-25 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099294', 'tblTempUsageDetail_20' ) end [2024-12-25 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099294', 'tblTempVendorCDR_20' ) start [2024-12-25 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099294', 'tblTempVendorCDR_20' ) end [2024-12-25 11:44:18] Production.INFO: ProcessCDR(1,14099294,1,1,2) [2024-12-25 11:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099294', 'tblTempUsageDetail_20' ) start [2024-12-25 11:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099294', 'tblTempUsageDetail_20' ) end [2024-12-25 11:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:44:22] Production.INFO: ==13402== Releasing lock... [2024-12-25 11:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:44:22] Production.INFO: 33 MB #Memory Used# [2024-12-25 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:45:05 [end_date_ymd] => 2024-12-25 11:45:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:45:05' and `end` < '2024-12-25 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-25 11:45:17] Production.INFO: count ==565 [2024-12-25 11:45:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:45:05 - End Time 2024-12-25 11:45:05 [2024-12-25 11:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099299', 'tblTempUsageDetail_20' ) start [2024-12-25 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099299', 'tblTempUsageDetail_20' ) end [2024-12-25 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099299', 'tblTempVendorCDR_20' ) start [2024-12-25 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099299', 'tblTempVendorCDR_20' ) end [2024-12-25 11:45:17] Production.INFO: ProcessCDR(1,14099299,1,1,2) [2024-12-25 11:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099299', 'tblTempUsageDetail_20' ) start [2024-12-25 11:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099299', 'tblTempUsageDetail_20' ) end [2024-12-25 11:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:45:20] Production.INFO: ==13486== Releasing lock... [2024-12-25 11:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:45:20] Production.INFO: 33 MB #Memory Used# [2024-12-25 11:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:46:04 [end_date_ymd] => 2024-12-25 11:46:04 [RateCDR] => 1 ) [2024-12-25 11: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-25 08:46:04' and `end` < '2024-12-25 11: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-25 11:46:18] Production.INFO: count ==567 [2024-12-25 11:46:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:46:04 - End Time 2024-12-25 11:46:04 [2024-12-25 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099304', 'tblTempUsageDetail_20' ) start [2024-12-25 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099304', 'tblTempUsageDetail_20' ) end [2024-12-25 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099304', 'tblTempVendorCDR_20' ) start [2024-12-25 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099304', 'tblTempVendorCDR_20' ) end [2024-12-25 11:46:18] Production.INFO: ProcessCDR(1,14099304,1,1,2) [2024-12-25 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099304', 'tblTempUsageDetail_20' ) start [2024-12-25 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099304', 'tblTempUsageDetail_20' ) end [2024-12-25 11:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:46:21] Production.INFO: ==13572== Releasing lock... [2024-12-25 11:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:46:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:47:05 [end_date_ymd] => 2024-12-25 11:47:05 [RateCDR] => 1 ) [2024-12-25 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:47:05' and `end` < '2024-12-25 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:47:18] Production.INFO: count ==567 [2024-12-25 11:47:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:47:05 - End Time 2024-12-25 11:47:05 [2024-12-25 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099309', 'tblTempUsageDetail_20' ) start [2024-12-25 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099309', 'tblTempUsageDetail_20' ) end [2024-12-25 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099309', 'tblTempVendorCDR_20' ) start [2024-12-25 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099309', 'tblTempVendorCDR_20' ) end [2024-12-25 11:47:18] Production.INFO: ProcessCDR(1,14099309,1,1,2) [2024-12-25 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099309', 'tblTempUsageDetail_20' ) start [2024-12-25 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099309', 'tblTempUsageDetail_20' ) end [2024-12-25 11:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:47:22] Production.INFO: ==13653== Releasing lock... [2024-12-25 11:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:47:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-25 11:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:48:04 [end_date_ymd] => 2024-12-25 11:48:04 [RateCDR] => 1 ) [2024-12-25 11: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-25 08:48:04' and `end` < '2024-12-25 11: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-25 11:48:16] Production.INFO: count ==581 [2024-12-25 11:48:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:48:04 - End Time 2024-12-25 11:48:04 [2024-12-25 11:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099314', 'tblTempUsageDetail_20' ) start [2024-12-25 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099314', 'tblTempUsageDetail_20' ) end [2024-12-25 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099314', 'tblTempVendorCDR_20' ) start [2024-12-25 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099314', 'tblTempVendorCDR_20' ) end [2024-12-25 11:48:17] Production.INFO: ProcessCDR(1,14099314,1,1,2) [2024-12-25 11:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099314', 'tblTempUsageDetail_20' ) start [2024-12-25 11:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099314', 'tblTempUsageDetail_20' ) end [2024-12-25 11:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:48:20] Production.INFO: ==13738== Releasing lock... [2024-12-25 11:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:48:20] Production.INFO: 33 MB #Memory Used# [2024-12-25 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:49:04 [end_date_ymd] => 2024-12-25 11:49:04 [RateCDR] => 1 ) [2024-12-25 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-25 08:49:04' and `end` < '2024-12-25 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-25 11:49:20] Production.INFO: count ==581 [2024-12-25 11:49:20] Production.ERROR: pbx CDR StartTime 2024-12-25 08:49:04 - End Time 2024-12-25 11:49:04 [2024-12-25 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099319', 'tblTempUsageDetail_20' ) start [2024-12-25 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099319', 'tblTempUsageDetail_20' ) end [2024-12-25 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099319', 'tblTempVendorCDR_20' ) start [2024-12-25 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099319', 'tblTempVendorCDR_20' ) end [2024-12-25 11:49:20] Production.INFO: ProcessCDR(1,14099319,1,1,2) [2024-12-25 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099319', 'tblTempUsageDetail_20' ) start [2024-12-25 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099319', 'tblTempUsageDetail_20' ) end [2024-12-25 11:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:49:23] Production.INFO: ==13822== Releasing lock... [2024-12-25 11:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:49:23] Production.INFO: 33 MB #Memory Used# [2024-12-25 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:50:06 [end_date_ymd] => 2024-12-25 11:50:06 [RateCDR] => 1 ) [2024-12-25 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-25 08:50:06' and `end` < '2024-12-25 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-25 11:50:18] Production.INFO: count ==589 [2024-12-25 11:50:19] Production.ERROR: pbx CDR StartTime 2024-12-25 08:50:06 - End Time 2024-12-25 11:50:06 [2024-12-25 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099324', 'tblTempUsageDetail_20' ) start [2024-12-25 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099324', 'tblTempUsageDetail_20' ) end [2024-12-25 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099324', 'tblTempVendorCDR_20' ) start [2024-12-25 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099324', 'tblTempVendorCDR_20' ) end [2024-12-25 11:50:19] Production.INFO: ProcessCDR(1,14099324,1,1,2) [2024-12-25 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099324', 'tblTempUsageDetail_20' ) start [2024-12-25 11:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099324', 'tblTempUsageDetail_20' ) end [2024-12-25 11:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:50:22] Production.INFO: ==13951== Releasing lock... [2024-12-25 11:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:50:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-25 11:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:51:04 [end_date_ymd] => 2024-12-25 11:51:04 [RateCDR] => 1 ) [2024-12-25 11: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-25 08:51:04' and `end` < '2024-12-25 11: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-25 11:51:19] Production.INFO: count ==617 [2024-12-25 11:51:19] Production.ERROR: pbx CDR StartTime 2024-12-25 08:51:04 - End Time 2024-12-25 11:51:04 [2024-12-25 11:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099330', 'tblTempUsageDetail_20' ) start [2024-12-25 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099330', 'tblTempUsageDetail_20' ) end [2024-12-25 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099330', 'tblTempVendorCDR_20' ) start [2024-12-25 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099330', 'tblTempVendorCDR_20' ) end [2024-12-25 11:51:19] Production.INFO: ProcessCDR(1,14099330,1,1,2) [2024-12-25 11:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099330', 'tblTempUsageDetail_20' ) start [2024-12-25 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099330', 'tblTempUsageDetail_20' ) end [2024-12-25 11:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:51:22] Production.INFO: ==14043== Releasing lock... [2024-12-25 11:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:51:22] Production.INFO: 33 MB #Memory Used# [2024-12-25 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:52:05 [end_date_ymd] => 2024-12-25 11:52:05 [RateCDR] => 1 ) [2024-12-25 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:52:05' and `end` < '2024-12-25 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:52:17] Production.INFO: count ==620 [2024-12-25 11:52:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:52:05 - End Time 2024-12-25 11:52:05 [2024-12-25 11:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099335', 'tblTempUsageDetail_20' ) start [2024-12-25 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099335', 'tblTempUsageDetail_20' ) end [2024-12-25 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099335', 'tblTempVendorCDR_20' ) start [2024-12-25 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099335', 'tblTempVendorCDR_20' ) end [2024-12-25 11:52:17] Production.INFO: ProcessCDR(1,14099335,1,1,2) [2024-12-25 11:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099335', 'tblTempUsageDetail_20' ) start [2024-12-25 11:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099335', 'tblTempUsageDetail_20' ) end [2024-12-25 11:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:52:20] Production.INFO: ==14133== Releasing lock... [2024-12-25 11:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:52:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-25 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:53:05 [end_date_ymd] => 2024-12-25 11:53:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:53:05' and `end` < '2024-12-25 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-25 11:53:17] Production.INFO: count ==620 [2024-12-25 11:53:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:53:05 - End Time 2024-12-25 11:53:05 [2024-12-25 11:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099340', 'tblTempUsageDetail_20' ) start [2024-12-25 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099340', 'tblTempUsageDetail_20' ) end [2024-12-25 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099340', 'tblTempVendorCDR_20' ) start [2024-12-25 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099340', 'tblTempVendorCDR_20' ) end [2024-12-25 11:53:17] Production.INFO: ProcessCDR(1,14099340,1,1,2) [2024-12-25 11:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099340', 'tblTempUsageDetail_20' ) start [2024-12-25 11:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099340', 'tblTempUsageDetail_20' ) end [2024-12-25 11:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:53:20] Production.INFO: ==14248== Releasing lock... [2024-12-25 11:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:53:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-25 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:54:05 [end_date_ymd] => 2024-12-25 11:54:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:54:05' and `end` < '2024-12-25 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-25 11:54:17] Production.INFO: count ==624 [2024-12-25 11:54:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:54:05 - End Time 2024-12-25 11:54:05 [2024-12-25 11:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099345', 'tblTempUsageDetail_20' ) start [2024-12-25 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099345', 'tblTempUsageDetail_20' ) end [2024-12-25 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099345', 'tblTempVendorCDR_20' ) start [2024-12-25 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099345', 'tblTempVendorCDR_20' ) end [2024-12-25 11:54:17] Production.INFO: ProcessCDR(1,14099345,1,1,2) [2024-12-25 11:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099345', 'tblTempUsageDetail_20' ) start [2024-12-25 11:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099345', 'tblTempUsageDetail_20' ) end [2024-12-25 11:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:54:20] Production.INFO: ==14354== Releasing lock... [2024-12-25 11:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:54:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-25 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:55:04 [end_date_ymd] => 2024-12-25 11:55:04 [RateCDR] => 1 ) [2024-12-25 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-25 08:55:04' and `end` < '2024-12-25 11:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:55:18] Production.INFO: count ==639 [2024-12-25 11:55:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:55:04 - End Time 2024-12-25 11:55:04 [2024-12-25 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099350', 'tblTempUsageDetail_20' ) start [2024-12-25 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099350', 'tblTempUsageDetail_20' ) end [2024-12-25 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099350', 'tblTempVendorCDR_20' ) start [2024-12-25 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099350', 'tblTempVendorCDR_20' ) end [2024-12-25 11:55:18] Production.INFO: ProcessCDR(1,14099350,1,1,2) [2024-12-25 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099350', 'tblTempUsageDetail_20' ) start [2024-12-25 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099350', 'tblTempUsageDetail_20' ) end [2024-12-25 11:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:55:23] Production.INFO: ==14502== Releasing lock... [2024-12-25 11:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:55:23] Production.INFO: 33.75 MB #Memory Used# [2024-12-25 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:56:05 [end_date_ymd] => 2024-12-25 11:56:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:56:05' and `end` < '2024-12-25 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-25 11:56:17] Production.INFO: count ==642 [2024-12-25 11:56:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:56:05 - End Time 2024-12-25 11:56:05 [2024-12-25 11:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099355', 'tblTempUsageDetail_20' ) start [2024-12-25 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099355', 'tblTempUsageDetail_20' ) end [2024-12-25 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099355', 'tblTempVendorCDR_20' ) start [2024-12-25 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099355', 'tblTempVendorCDR_20' ) end [2024-12-25 11:56:17] Production.INFO: ProcessCDR(1,14099355,1,1,2) [2024-12-25 11:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099355', 'tblTempUsageDetail_20' ) start [2024-12-25 11:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099355', 'tblTempUsageDetail_20' ) end [2024-12-25 11:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:56:20] Production.INFO: ==14653== Releasing lock... [2024-12-25 11:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:56:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-25 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:57:05 [end_date_ymd] => 2024-12-25 11:57:05 [RateCDR] => 1 ) [2024-12-25 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 08:57:05' and `end` < '2024-12-25 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 11:57:20] Production.INFO: count ==649 [2024-12-25 11:57:20] Production.ERROR: pbx CDR StartTime 2024-12-25 08:57:05 - End Time 2024-12-25 11:57:05 [2024-12-25 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099360', 'tblTempUsageDetail_20' ) start [2024-12-25 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099360', 'tblTempUsageDetail_20' ) end [2024-12-25 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099360', 'tblTempVendorCDR_20' ) start [2024-12-25 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099360', 'tblTempVendorCDR_20' ) end [2024-12-25 11:57:20] Production.INFO: ProcessCDR(1,14099360,1,1,2) [2024-12-25 11:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099360', 'tblTempUsageDetail_20' ) start [2024-12-25 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099360', 'tblTempUsageDetail_20' ) end [2024-12-25 11:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:57:23] Production.INFO: ==14768== Releasing lock... [2024-12-25 11:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:57:23] Production.INFO: 33.75 MB #Memory Used# [2024-12-25 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:58:05 [end_date_ymd] => 2024-12-25 11:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:58:05' and `end` < '2024-12-25 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-25 11:58:17] Production.INFO: count ==652 [2024-12-25 11:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 08:58:05 - End Time 2024-12-25 11:58:05 [2024-12-25 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099365', 'tblTempUsageDetail_20' ) start [2024-12-25 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099365', 'tblTempUsageDetail_20' ) end [2024-12-25 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099365', 'tblTempVendorCDR_20' ) start [2024-12-25 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099365', 'tblTempVendorCDR_20' ) end [2024-12-25 11:58:18] Production.INFO: ProcessCDR(1,14099365,1,1,2) [2024-12-25 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099365', 'tblTempUsageDetail_20' ) start [2024-12-25 11:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099365', 'tblTempUsageDetail_20' ) end [2024-12-25 11:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:58:21] Production.INFO: ==14876== Releasing lock... [2024-12-25 11:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:58:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-25 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 08:59:05 [end_date_ymd] => 2024-12-25 11:59:05 [RateCDR] => 1 ) [2024-12-25 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-25 08:59:05' and `end` < '2024-12-25 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-25 11:59:17] Production.INFO: count ==655 [2024-12-25 11:59:17] Production.ERROR: pbx CDR StartTime 2024-12-25 08:59:05 - End Time 2024-12-25 11:59:05 [2024-12-25 11:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099370', 'tblTempUsageDetail_20' ) start [2024-12-25 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099370', 'tblTempUsageDetail_20' ) end [2024-12-25 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099370', 'tblTempVendorCDR_20' ) start [2024-12-25 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099370', 'tblTempVendorCDR_20' ) end [2024-12-25 11:59:17] Production.INFO: ProcessCDR(1,14099370,1,1,2) [2024-12-25 11:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 11:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099370', 'tblTempUsageDetail_20' ) start [2024-12-25 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099370', 'tblTempUsageDetail_20' ) end [2024-12-25 11:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 11:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 11:59:21] Production.INFO: ==14985== Releasing lock... [2024-12-25 11:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 11:59:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-25 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:00:05 [end_date_ymd] => 2024-12-25 12:00:05 [RateCDR] => 1 ) [2024-12-25 12:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:00:05' and `end` < '2024-12-25 12:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:00:17] Production.INFO: count ==663 [2024-12-25 12:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:00:05 - End Time 2024-12-25 12:00:05 [2024-12-25 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099375', 'tblTempUsageDetail_20' ) start [2024-12-25 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099375', 'tblTempUsageDetail_20' ) end [2024-12-25 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099375', 'tblTempVendorCDR_20' ) start [2024-12-25 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099375', 'tblTempVendorCDR_20' ) end [2024-12-25 12:00:18] Production.INFO: ProcessCDR(1,14099375,1,1,2) [2024-12-25 12:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099375', 'tblTempUsageDetail_20' ) start [2024-12-25 12:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099375', 'tblTempUsageDetail_20' ) end [2024-12-25 12:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:00:21] Production.INFO: ==15095== Releasing lock... [2024-12-25 12:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:00:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-25 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:01:05 [end_date_ymd] => 2024-12-25 12:01:05 [RateCDR] => 1 ) [2024-12-25 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:01:05' and `end` < '2024-12-25 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:01:17] Production.INFO: count ==694 [2024-12-25 12:01:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:01:05 - End Time 2024-12-25 12:01:05 [2024-12-25 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099381', 'tblTempUsageDetail_20' ) start [2024-12-25 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099381', 'tblTempUsageDetail_20' ) end [2024-12-25 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099381', 'tblTempVendorCDR_20' ) start [2024-12-25 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099381', 'tblTempVendorCDR_20' ) end [2024-12-25 12:01:18] Production.INFO: ProcessCDR(1,14099381,1,1,2) [2024-12-25 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099381', 'tblTempUsageDetail_20' ) start [2024-12-25 12:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099381', 'tblTempUsageDetail_20' ) end [2024-12-25 12:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:01:21] Production.INFO: ==15219== Releasing lock... [2024-12-25 12:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:01:21] Production.INFO: 34 MB #Memory Used# [2024-12-25 12:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:02:04 [end_date_ymd] => 2024-12-25 12:02:04 [RateCDR] => 1 ) [2024-12-25 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-25 09:02:04' and `end` < '2024-12-25 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-25 12:02:17] Production.INFO: count ==694 [2024-12-25 12:02:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:02:04 - End Time 2024-12-25 12:02:04 [2024-12-25 12:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099386', 'tblTempUsageDetail_20' ) start [2024-12-25 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099386', 'tblTempUsageDetail_20' ) end [2024-12-25 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099386', 'tblTempVendorCDR_20' ) start [2024-12-25 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099386', 'tblTempVendorCDR_20' ) end [2024-12-25 12:02:18] Production.INFO: ProcessCDR(1,14099386,1,1,2) [2024-12-25 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099386', 'tblTempUsageDetail_20' ) start [2024-12-25 12:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099386', 'tblTempUsageDetail_20' ) end [2024-12-25 12:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:02:21] Production.INFO: ==15326== Releasing lock... [2024-12-25 12:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:02:21] Production.INFO: 34 MB #Memory Used# [2024-12-25 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:03:05 [end_date_ymd] => 2024-12-25 12:03:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:03:05' and `end` < '2024-12-25 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-25 12:03:18] Production.INFO: count ==694 [2024-12-25 12:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:03:05 - End Time 2024-12-25 12:03:05 [2024-12-25 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099391', 'tblTempUsageDetail_20' ) start [2024-12-25 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099391', 'tblTempUsageDetail_20' ) end [2024-12-25 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099391', 'tblTempVendorCDR_20' ) start [2024-12-25 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099391', 'tblTempVendorCDR_20' ) end [2024-12-25 12:03:18] Production.INFO: ProcessCDR(1,14099391,1,1,2) [2024-12-25 12:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099391', 'tblTempUsageDetail_20' ) start [2024-12-25 12:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099391', 'tblTempUsageDetail_20' ) end [2024-12-25 12:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:03:21] Production.INFO: ==15433== Releasing lock... [2024-12-25 12:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:03:21] Production.INFO: 34 MB #Memory Used# [2024-12-25 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:04:05 [end_date_ymd] => 2024-12-25 12:04:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:04:05' and `end` < '2024-12-25 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-25 12:04:19] Production.INFO: count ==680 [2024-12-25 12:04:19] Production.ERROR: pbx CDR StartTime 2024-12-25 09:04:05 - End Time 2024-12-25 12:04:05 [2024-12-25 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099396', 'tblTempUsageDetail_20' ) start [2024-12-25 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099396', 'tblTempUsageDetail_20' ) end [2024-12-25 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099396', 'tblTempVendorCDR_20' ) start [2024-12-25 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099396', 'tblTempVendorCDR_20' ) end [2024-12-25 12:04:19] Production.INFO: ProcessCDR(1,14099396,1,1,2) [2024-12-25 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099396', 'tblTempUsageDetail_20' ) start [2024-12-25 12:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099396', 'tblTempUsageDetail_20' ) end [2024-12-25 12:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:04:22] Production.INFO: ==15548== Releasing lock... [2024-12-25 12:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:04:22] Production.INFO: 34 MB #Memory Used# [2024-12-25 12:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:05:04 [end_date_ymd] => 2024-12-25 12:05:04 [RateCDR] => 1 ) [2024-12-25 12: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-25 09:05:04' and `end` < '2024-12-25 12: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-25 12:05:17] Production.INFO: count ==684 [2024-12-25 12:05:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:05:04 - End Time 2024-12-25 12:05:04 [2024-12-25 12:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099401', 'tblTempUsageDetail_20' ) start [2024-12-25 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099401', 'tblTempUsageDetail_20' ) end [2024-12-25 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099401', 'tblTempVendorCDR_20' ) start [2024-12-25 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099401', 'tblTempVendorCDR_20' ) end [2024-12-25 12:05:17] Production.INFO: ProcessCDR(1,14099401,1,1,2) [2024-12-25 12:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099401', 'tblTempUsageDetail_20' ) start [2024-12-25 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099401', 'tblTempUsageDetail_20' ) end [2024-12-25 12:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:05:22] Production.INFO: ==15660== Releasing lock... [2024-12-25 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:05:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-25 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:06:05 [end_date_ymd] => 2024-12-25 12:06:05 [RateCDR] => 1 ) [2024-12-25 12: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-25 09:06:05' and `end` < '2024-12-25 12: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-25 12:06:18] Production.INFO: count ==684 [2024-12-25 12:06:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:06:05 - End Time 2024-12-25 12:06:05 [2024-12-25 12:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099406', 'tblTempUsageDetail_20' ) start [2024-12-25 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099406', 'tblTempUsageDetail_20' ) end [2024-12-25 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099406', 'tblTempVendorCDR_20' ) start [2024-12-25 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099406', 'tblTempVendorCDR_20' ) end [2024-12-25 12:06:18] Production.INFO: ProcessCDR(1,14099406,1,1,2) [2024-12-25 12:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099406', 'tblTempUsageDetail_20' ) start [2024-12-25 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099406', 'tblTempUsageDetail_20' ) end [2024-12-25 12:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:06:21] Production.INFO: ==15806== Releasing lock... [2024-12-25 12:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:06:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-25 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:07:05 [end_date_ymd] => 2024-12-25 12:07:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:07:05' and `end` < '2024-12-25 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-25 12:07:17] Production.INFO: count ==684 [2024-12-25 12:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:07:05 - End Time 2024-12-25 12:07:05 [2024-12-25 12:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099411', 'tblTempUsageDetail_20' ) start [2024-12-25 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099411', 'tblTempUsageDetail_20' ) end [2024-12-25 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099411', 'tblTempVendorCDR_20' ) start [2024-12-25 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099411', 'tblTempVendorCDR_20' ) end [2024-12-25 12:07:17] Production.INFO: ProcessCDR(1,14099411,1,1,2) [2024-12-25 12:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099411', 'tblTempUsageDetail_20' ) start [2024-12-25 12:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099411', 'tblTempUsageDetail_20' ) end [2024-12-25 12:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:07:20] Production.INFO: ==15915== Releasing lock... [2024-12-25 12:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:07:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-25 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:08:05 [end_date_ymd] => 2024-12-25 12:08:05 [RateCDR] => 1 ) [2024-12-25 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:08:05' and `end` < '2024-12-25 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:08:17] Production.INFO: count ==685 [2024-12-25 12:08:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:08:05 - End Time 2024-12-25 12:08:05 [2024-12-25 12:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099416', 'tblTempUsageDetail_20' ) start [2024-12-25 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099416', 'tblTempUsageDetail_20' ) end [2024-12-25 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099416', 'tblTempVendorCDR_20' ) start [2024-12-25 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099416', 'tblTempVendorCDR_20' ) end [2024-12-25 12:08:18] Production.INFO: ProcessCDR(1,14099416,1,1,2) [2024-12-25 12:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099416', 'tblTempUsageDetail_20' ) start [2024-12-25 12:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099416', 'tblTempUsageDetail_20' ) end [2024-12-25 12:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:08:21] Production.INFO: ==16024== Releasing lock... [2024-12-25 12:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:08:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-25 12:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:09:04 [end_date_ymd] => 2024-12-25 12:09:04 [RateCDR] => 1 ) [2024-12-25 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-25 09:09:04' and `end` < '2024-12-25 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-25 12:09:17] Production.INFO: count ==689 [2024-12-25 12:09:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:09:04 - End Time 2024-12-25 12:09:04 [2024-12-25 12:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099421', 'tblTempUsageDetail_20' ) start [2024-12-25 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099421', 'tblTempUsageDetail_20' ) end [2024-12-25 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099421', 'tblTempVendorCDR_20' ) start [2024-12-25 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099421', 'tblTempVendorCDR_20' ) end [2024-12-25 12:09:17] Production.INFO: ProcessCDR(1,14099421,1,1,2) [2024-12-25 12:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099421', 'tblTempUsageDetail_20' ) start [2024-12-25 12:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099421', 'tblTempUsageDetail_20' ) end [2024-12-25 12:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:09:20] Production.INFO: ==16132== Releasing lock... [2024-12-25 12:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:09:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-25 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:10:06 [end_date_ymd] => 2024-12-25 12:10:06 [RateCDR] => 1 ) [2024-12-25 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-25 09:10:06' and `end` < '2024-12-25 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-25 12:10:18] Production.INFO: count ==701 [2024-12-25 12:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:10:06 - End Time 2024-12-25 12:10:06 [2024-12-25 12:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099427', 'tblTempUsageDetail_20' ) start [2024-12-25 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099427', 'tblTempUsageDetail_20' ) end [2024-12-25 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099427', 'tblTempVendorCDR_20' ) start [2024-12-25 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099427', 'tblTempVendorCDR_20' ) end [2024-12-25 12:10:18] Production.INFO: ProcessCDR(1,14099427,1,1,2) [2024-12-25 12:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099427', 'tblTempUsageDetail_20' ) start [2024-12-25 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099427', 'tblTempUsageDetail_20' ) end [2024-12-25 12:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:10:22] Production.INFO: ==16244== Releasing lock... [2024-12-25 12:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:10:22] Production.INFO: 34 MB #Memory Used# [2024-12-25 12:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:11:04 [end_date_ymd] => 2024-12-25 12:11:04 [RateCDR] => 1 ) [2024-12-25 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-25 09:11:04' and `end` < '2024-12-25 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-25 12:11:16] Production.INFO: count ==748 [2024-12-25 12:11:16] Production.ERROR: pbx CDR StartTime 2024-12-25 09:11:04 - End Time 2024-12-25 12:11:04 [2024-12-25 12:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099432', 'tblTempUsageDetail_20' ) start [2024-12-25 12:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099432', 'tblTempUsageDetail_20' ) end [2024-12-25 12:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099432', 'tblTempVendorCDR_20' ) start [2024-12-25 12:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099432', 'tblTempVendorCDR_20' ) end [2024-12-25 12:11:16] Production.INFO: ProcessCDR(1,14099432,1,1,2) [2024-12-25 12:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099432', 'tblTempUsageDetail_20' ) start [2024-12-25 12:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099432', 'tblTempUsageDetail_20' ) end [2024-12-25 12:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:11:20] Production.INFO: ==16335== Releasing lock... [2024-12-25 12:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:11:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-25 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:12:05 [end_date_ymd] => 2024-12-25 12:12:05 [RateCDR] => 1 ) [2024-12-25 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:12:05' and `end` < '2024-12-25 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:12:20] Production.INFO: count ==759 [2024-12-25 12:12:20] Production.ERROR: pbx CDR StartTime 2024-12-25 09:12:05 - End Time 2024-12-25 12:12:05 [2024-12-25 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099437', 'tblTempUsageDetail_20' ) start [2024-12-25 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099437', 'tblTempUsageDetail_20' ) end [2024-12-25 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099437', 'tblTempVendorCDR_20' ) start [2024-12-25 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099437', 'tblTempVendorCDR_20' ) end [2024-12-25 12:12:20] Production.INFO: ProcessCDR(1,14099437,1,1,2) [2024-12-25 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099437', 'tblTempUsageDetail_20' ) start [2024-12-25 12:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099437', 'tblTempUsageDetail_20' ) end [2024-12-25 12:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:12:23] Production.INFO: ==16419== Releasing lock... [2024-12-25 12:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:12:23] Production.INFO: 34.25 MB #Memory Used# [2024-12-25 12:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:13:04 [end_date_ymd] => 2024-12-25 12:13:04 [RateCDR] => 1 ) [2024-12-25 12:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:13:04' and `end` < '2024-12-25 12:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:13:16] Production.INFO: count ==750 [2024-12-25 12:13:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:13:04 - End Time 2024-12-25 12:13:04 [2024-12-25 12:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099442', 'tblTempUsageDetail_20' ) start [2024-12-25 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099442', 'tblTempUsageDetail_20' ) end [2024-12-25 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099442', 'tblTempVendorCDR_20' ) start [2024-12-25 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099442', 'tblTempVendorCDR_20' ) end [2024-12-25 12:13:17] Production.INFO: ProcessCDR(1,14099442,1,1,2) [2024-12-25 12:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099442', 'tblTempUsageDetail_20' ) start [2024-12-25 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099442', 'tblTempUsageDetail_20' ) end [2024-12-25 12:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:13:22] Production.INFO: ==16499== Releasing lock... [2024-12-25 12:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:13:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-25 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:14:05 [end_date_ymd] => 2024-12-25 12:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:14:05' and `end` < '2024-12-25 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-25 12:14:17] Production.INFO: count ==741 [2024-12-25 12:14:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:14:05 - End Time 2024-12-25 12:14:05 [2024-12-25 12:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099447', 'tblTempUsageDetail_20' ) start [2024-12-25 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099447', 'tblTempUsageDetail_20' ) end [2024-12-25 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099447', 'tblTempVendorCDR_20' ) start [2024-12-25 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099447', 'tblTempVendorCDR_20' ) end [2024-12-25 12:14:17] Production.INFO: ProcessCDR(1,14099447,1,1,2) [2024-12-25 12:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099447', 'tblTempUsageDetail_20' ) start [2024-12-25 12:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099447', 'tblTempUsageDetail_20' ) end [2024-12-25 12:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:14:21] Production.INFO: ==16579== Releasing lock... [2024-12-25 12:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:14:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-25 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:15:05 [end_date_ymd] => 2024-12-25 12:15:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:15:05' and `end` < '2024-12-25 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-25 12:15:17] Production.INFO: count ==743 [2024-12-25 12:15:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:15:05 - End Time 2024-12-25 12:15:05 [2024-12-25 12:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099452', 'tblTempUsageDetail_20' ) start [2024-12-25 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099452', 'tblTempUsageDetail_20' ) end [2024-12-25 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099452', 'tblTempVendorCDR_20' ) start [2024-12-25 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099452', 'tblTempVendorCDR_20' ) end [2024-12-25 12:15:17] Production.INFO: ProcessCDR(1,14099452,1,1,2) [2024-12-25 12:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099452', 'tblTempUsageDetail_20' ) start [2024-12-25 12:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099452', 'tblTempUsageDetail_20' ) end [2024-12-25 12:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:15:20] Production.INFO: ==16662== Releasing lock... [2024-12-25 12:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:15:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-25 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:16:05 [end_date_ymd] => 2024-12-25 12:16:05 [RateCDR] => 1 ) [2024-12-25 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:16:05' and `end` < '2024-12-25 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:16:18] Production.INFO: count ==747 [2024-12-25 12:16:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:16:05 - End Time 2024-12-25 12:16:05 [2024-12-25 12:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099457', 'tblTempUsageDetail_20' ) start [2024-12-25 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099457', 'tblTempUsageDetail_20' ) end [2024-12-25 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099457', 'tblTempVendorCDR_20' ) start [2024-12-25 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099457', 'tblTempVendorCDR_20' ) end [2024-12-25 12:16:18] Production.INFO: ProcessCDR(1,14099457,1,1,2) [2024-12-25 12:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099457', 'tblTempUsageDetail_20' ) start [2024-12-25 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099457', 'tblTempUsageDetail_20' ) end [2024-12-25 12:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:16:22] Production.INFO: ==16748== Releasing lock... [2024-12-25 12:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:16:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-25 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:17:05 [end_date_ymd] => 2024-12-25 12:17:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:17:05' and `end` < '2024-12-25 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-25 12:17:17] Production.INFO: count ==749 [2024-12-25 12:17:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:17:05 - End Time 2024-12-25 12:17:05 [2024-12-25 12:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099462', 'tblTempUsageDetail_20' ) start [2024-12-25 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099462', 'tblTempUsageDetail_20' ) end [2024-12-25 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099462', 'tblTempVendorCDR_20' ) start [2024-12-25 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099462', 'tblTempVendorCDR_20' ) end [2024-12-25 12:17:17] Production.INFO: ProcessCDR(1,14099462,1,1,2) [2024-12-25 12:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099462', 'tblTempUsageDetail_20' ) start [2024-12-25 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099462', 'tblTempUsageDetail_20' ) end [2024-12-25 12:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:17:21] Production.INFO: ==16843== Releasing lock... [2024-12-25 12:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:17:21] Production.INFO: 34 MB #Memory Used# [2024-12-25 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:18:05 [end_date_ymd] => 2024-12-25 12:18:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:18:05' and `end` < '2024-12-25 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-25 12:18:18] Production.INFO: count ==753 [2024-12-25 12:18:19] Production.ERROR: pbx CDR StartTime 2024-12-25 09:18:05 - End Time 2024-12-25 12:18:05 [2024-12-25 12:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099467', 'tblTempUsageDetail_20' ) start [2024-12-25 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099467', 'tblTempUsageDetail_20' ) end [2024-12-25 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099467', 'tblTempVendorCDR_20' ) start [2024-12-25 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099467', 'tblTempVendorCDR_20' ) end [2024-12-25 12:18:19] Production.INFO: ProcessCDR(1,14099467,1,1,2) [2024-12-25 12:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099467', 'tblTempUsageDetail_20' ) start [2024-12-25 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099467', 'tblTempUsageDetail_20' ) end [2024-12-25 12:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:18:22] Production.INFO: ==16928== Releasing lock... [2024-12-25 12:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:18:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-25 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:19:05 [end_date_ymd] => 2024-12-25 12:19:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:19:05' and `end` < '2024-12-25 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-25 12:19:18] Production.INFO: count ==763 [2024-12-25 12:19:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:19:05 - End Time 2024-12-25 12:19:05 [2024-12-25 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099472', 'tblTempUsageDetail_20' ) start [2024-12-25 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099472', 'tblTempUsageDetail_20' ) end [2024-12-25 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099472', 'tblTempVendorCDR_20' ) start [2024-12-25 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099472', 'tblTempVendorCDR_20' ) end [2024-12-25 12:19:18] Production.INFO: ProcessCDR(1,14099472,1,1,2) [2024-12-25 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099472', 'tblTempUsageDetail_20' ) start [2024-12-25 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099472', 'tblTempUsageDetail_20' ) end [2024-12-25 12:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:19:21] Production.INFO: ==17010== Releasing lock... [2024-12-25 12:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:19:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-25 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:20:05 [end_date_ymd] => 2024-12-25 12:20:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:20:05' and `end` < '2024-12-25 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-25 12:20:17] Production.INFO: count ==764 [2024-12-25 12:20:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:20:05 - End Time 2024-12-25 12:20:05 [2024-12-25 12:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099478', 'tblTempUsageDetail_20' ) start [2024-12-25 12:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099478', 'tblTempUsageDetail_20' ) end [2024-12-25 12:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099478', 'tblTempVendorCDR_20' ) start [2024-12-25 12:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099478', 'tblTempVendorCDR_20' ) end [2024-12-25 12:20:17] Production.INFO: ProcessCDR(1,14099478,1,1,2) [2024-12-25 12:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099478', 'tblTempUsageDetail_20' ) start [2024-12-25 12:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099478', 'tblTempUsageDetail_20' ) end [2024-12-25 12:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:20:21] Production.INFO: ==17093== Releasing lock... [2024-12-25 12:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:20:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-25 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:21:05 [end_date_ymd] => 2024-12-25 12:21:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:21:05' and `end` < '2024-12-25 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-25 12:21:18] Production.INFO: count ==796 [2024-12-25 12:21:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:21:05 - End Time 2024-12-25 12:21:05 [2024-12-25 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099483', 'tblTempUsageDetail_20' ) start [2024-12-25 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099483', 'tblTempUsageDetail_20' ) end [2024-12-25 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099483', 'tblTempVendorCDR_20' ) start [2024-12-25 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099483', 'tblTempVendorCDR_20' ) end [2024-12-25 12:21:18] Production.INFO: ProcessCDR(1,14099483,1,1,2) [2024-12-25 12:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099483', 'tblTempUsageDetail_20' ) start [2024-12-25 12:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099483', 'tblTempUsageDetail_20' ) end [2024-12-25 12:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:21:21] Production.INFO: ==17179== Releasing lock... [2024-12-25 12:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:21:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-25 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:22:05 [end_date_ymd] => 2024-12-25 12:22:05 [RateCDR] => 1 ) [2024-12-25 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:22:05' and `end` < '2024-12-25 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:22:17] Production.INFO: count ==800 [2024-12-25 12:22:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:22:05 - End Time 2024-12-25 12:22:05 [2024-12-25 12:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099488', 'tblTempUsageDetail_20' ) start [2024-12-25 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099488', 'tblTempUsageDetail_20' ) end [2024-12-25 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099488', 'tblTempVendorCDR_20' ) start [2024-12-25 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099488', 'tblTempVendorCDR_20' ) end [2024-12-25 12:22:17] Production.INFO: ProcessCDR(1,14099488,1,1,2) [2024-12-25 12:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099488', 'tblTempUsageDetail_20' ) start [2024-12-25 12:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099488', 'tblTempUsageDetail_20' ) end [2024-12-25 12:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:22:20] Production.INFO: ==17302== Releasing lock... [2024-12-25 12:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:22:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-25 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:23:05 [end_date_ymd] => 2024-12-25 12:23:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:23:05' and `end` < '2024-12-25 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-25 12:23:19] Production.INFO: count ==802 [2024-12-25 12:23:19] Production.ERROR: pbx CDR StartTime 2024-12-25 09:23:05 - End Time 2024-12-25 12:23:05 [2024-12-25 12:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099493', 'tblTempUsageDetail_20' ) start [2024-12-25 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099493', 'tblTempUsageDetail_20' ) end [2024-12-25 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099493', 'tblTempVendorCDR_20' ) start [2024-12-25 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099493', 'tblTempVendorCDR_20' ) end [2024-12-25 12:23:19] Production.INFO: ProcessCDR(1,14099493,1,1,2) [2024-12-25 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099493', 'tblTempUsageDetail_20' ) start [2024-12-25 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099493', 'tblTempUsageDetail_20' ) end [2024-12-25 12:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:23:22] Production.INFO: ==17387== Releasing lock... [2024-12-25 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:23:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-25 12:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:24:04 [end_date_ymd] => 2024-12-25 12:24:04 [RateCDR] => 1 ) [2024-12-25 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-25 09:24:04' and `end` < '2024-12-25 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-25 12:24:17] Production.INFO: count ==805 [2024-12-25 12:24:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:24:04 - End Time 2024-12-25 12:24:04 [2024-12-25 12:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099498', 'tblTempUsageDetail_20' ) start [2024-12-25 12:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099498', 'tblTempUsageDetail_20' ) end [2024-12-25 12:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099498', 'tblTempVendorCDR_20' ) start [2024-12-25 12:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099498', 'tblTempVendorCDR_20' ) end [2024-12-25 12:24:17] Production.INFO: ProcessCDR(1,14099498,1,1,2) [2024-12-25 12:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099498', 'tblTempUsageDetail_20' ) start [2024-12-25 12:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099498', 'tblTempUsageDetail_20' ) end [2024-12-25 12:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:24:20] Production.INFO: ==17467== Releasing lock... [2024-12-25 12:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:24:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-25 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:25:05 [end_date_ymd] => 2024-12-25 12:25:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:25:05' and `end` < '2024-12-25 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-25 12:25:17] Production.INFO: count ==807 [2024-12-25 12:25:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:25:05 - End Time 2024-12-25 12:25:05 [2024-12-25 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099503', 'tblTempUsageDetail_20' ) start [2024-12-25 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099503', 'tblTempUsageDetail_20' ) end [2024-12-25 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099503', 'tblTempVendorCDR_20' ) start [2024-12-25 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099503', 'tblTempVendorCDR_20' ) end [2024-12-25 12:25:17] Production.INFO: ProcessCDR(1,14099503,1,1,2) [2024-12-25 12:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099503', 'tblTempUsageDetail_20' ) start [2024-12-25 12:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099503', 'tblTempUsageDetail_20' ) end [2024-12-25 12:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:25:20] Production.INFO: ==17548== Releasing lock... [2024-12-25 12:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:25:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-25 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:26:05 [end_date_ymd] => 2024-12-25 12:26:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:26:05' and `end` < '2024-12-25 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-25 12:26:19] Production.INFO: count ==820 [2024-12-25 12:26:19] Production.ERROR: pbx CDR StartTime 2024-12-25 09:26:05 - End Time 2024-12-25 12:26:05 [2024-12-25 12:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099508', 'tblTempUsageDetail_20' ) start [2024-12-25 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099508', 'tblTempUsageDetail_20' ) end [2024-12-25 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099508', 'tblTempVendorCDR_20' ) start [2024-12-25 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099508', 'tblTempVendorCDR_20' ) end [2024-12-25 12:26:19] Production.INFO: ProcessCDR(1,14099508,1,1,2) [2024-12-25 12:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099508', 'tblTempUsageDetail_20' ) start [2024-12-25 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099508', 'tblTempUsageDetail_20' ) end [2024-12-25 12:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:26:23] Production.INFO: ==17631== Releasing lock... [2024-12-25 12:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:26:23] Production.INFO: 34.25 MB #Memory Used# [2024-12-25 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:27:05 [end_date_ymd] => 2024-12-25 12:27:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:27:05' and `end` < '2024-12-25 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-25 12:27:18] Production.INFO: count ==820 [2024-12-25 12:27:19] Production.ERROR: pbx CDR StartTime 2024-12-25 09:27:05 - End Time 2024-12-25 12:27:05 [2024-12-25 12:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099513', 'tblTempUsageDetail_20' ) start [2024-12-25 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099513', 'tblTempUsageDetail_20' ) end [2024-12-25 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099513', 'tblTempVendorCDR_20' ) start [2024-12-25 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099513', 'tblTempVendorCDR_20' ) end [2024-12-25 12:27:19] Production.INFO: ProcessCDR(1,14099513,1,1,2) [2024-12-25 12:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099513', 'tblTempUsageDetail_20' ) start [2024-12-25 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099513', 'tblTempUsageDetail_20' ) end [2024-12-25 12:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:27:22] Production.INFO: ==17711== Releasing lock... [2024-12-25 12:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:27:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-25 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:28:05 [end_date_ymd] => 2024-12-25 12:28:05 [RateCDR] => 1 ) [2024-12-25 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:28:05' and `end` < '2024-12-25 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:28:18] Production.INFO: count ==823 [2024-12-25 12:28:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:28:05 - End Time 2024-12-25 12:28:05 [2024-12-25 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099518', 'tblTempUsageDetail_20' ) start [2024-12-25 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099518', 'tblTempUsageDetail_20' ) end [2024-12-25 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099518', 'tblTempVendorCDR_20' ) start [2024-12-25 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099518', 'tblTempVendorCDR_20' ) end [2024-12-25 12:28:18] Production.INFO: ProcessCDR(1,14099518,1,1,2) [2024-12-25 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099518', 'tblTempUsageDetail_20' ) start [2024-12-25 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099518', 'tblTempUsageDetail_20' ) end [2024-12-25 12:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:28:22] Production.INFO: ==17795== Releasing lock... [2024-12-25 12:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:28:22] Production.INFO: 34 MB #Memory Used# [2024-12-25 12:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:29:04 [end_date_ymd] => 2024-12-25 12:29:04 [RateCDR] => 1 ) [2024-12-25 12: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-25 09:29:04' and `end` < '2024-12-25 12: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-25 12:29:17] Production.INFO: count ==826 [2024-12-25 12:29:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:29:04 - End Time 2024-12-25 12:29:04 [2024-12-25 12:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099523', 'tblTempUsageDetail_20' ) start [2024-12-25 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099523', 'tblTempUsageDetail_20' ) end [2024-12-25 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099523', 'tblTempVendorCDR_20' ) start [2024-12-25 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099523', 'tblTempVendorCDR_20' ) end [2024-12-25 12:29:17] Production.INFO: ProcessCDR(1,14099523,1,1,2) [2024-12-25 12:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099523', 'tblTempUsageDetail_20' ) start [2024-12-25 12:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099523', 'tblTempUsageDetail_20' ) end [2024-12-25 12:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:29:20] Production.INFO: ==17871== Releasing lock... [2024-12-25 12:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:29:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-25 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:30:06 [end_date_ymd] => 2024-12-25 12:30:06 [RateCDR] => 1 ) [2024-12-25 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:30:06' and `end` < '2024-12-25 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:30:18] Production.INFO: count ==839 [2024-12-25 12:30:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:30:06 - End Time 2024-12-25 12:30:06 [2024-12-25 12:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099528', 'tblTempUsageDetail_20' ) start [2024-12-25 12:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099528', 'tblTempUsageDetail_20' ) end [2024-12-25 12:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099528', 'tblTempVendorCDR_20' ) start [2024-12-25 12:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099528', 'tblTempVendorCDR_20' ) end [2024-12-25 12:30:18] Production.INFO: ProcessCDR(1,14099528,1,1,2) [2024-12-25 12:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099528', 'tblTempUsageDetail_20' ) start [2024-12-25 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099528', 'tblTempUsageDetail_20' ) end [2024-12-25 12:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:30:22] Production.INFO: ==17953== Releasing lock... [2024-12-25 12:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:30:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-25 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:31:05 [end_date_ymd] => 2024-12-25 12:31:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:31:05' and `end` < '2024-12-25 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-25 12:31:19] Production.INFO: count ==853 [2024-12-25 12:31:19] Production.ERROR: pbx CDR StartTime 2024-12-25 09:31:05 - End Time 2024-12-25 12:31:05 [2024-12-25 12:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099534', 'tblTempUsageDetail_20' ) start [2024-12-25 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099534', 'tblTempUsageDetail_20' ) end [2024-12-25 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099534', 'tblTempVendorCDR_20' ) start [2024-12-25 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099534', 'tblTempVendorCDR_20' ) end [2024-12-25 12:31:19] Production.INFO: ProcessCDR(1,14099534,1,1,2) [2024-12-25 12:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099534', 'tblTempUsageDetail_20' ) start [2024-12-25 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099534', 'tblTempUsageDetail_20' ) end [2024-12-25 12:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:31:22] Production.INFO: ==18032== Releasing lock... [2024-12-25 12:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:31:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-25 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:32:06 [end_date_ymd] => 2024-12-25 12:32:06 [RateCDR] => 1 ) [2024-12-25 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:32:06' and `end` < '2024-12-25 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:32:19] Production.INFO: count ==853 [2024-12-25 12:32:19] Production.ERROR: pbx CDR StartTime 2024-12-25 09:32:06 - End Time 2024-12-25 12:32:06 [2024-12-25 12:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099539', 'tblTempUsageDetail_20' ) start [2024-12-25 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099539', 'tblTempUsageDetail_20' ) end [2024-12-25 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099539', 'tblTempVendorCDR_20' ) start [2024-12-25 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099539', 'tblTempVendorCDR_20' ) end [2024-12-25 12:32:19] Production.INFO: ProcessCDR(1,14099539,1,1,2) [2024-12-25 12:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099539', 'tblTempUsageDetail_20' ) start [2024-12-25 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099539', 'tblTempUsageDetail_20' ) end [2024-12-25 12:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:32:22] Production.INFO: ==18114== Releasing lock... [2024-12-25 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:32:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-25 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:33:05 [end_date_ymd] => 2024-12-25 12:33:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:33:05' and `end` < '2024-12-25 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-25 12:33:17] Production.INFO: count ==856 [2024-12-25 12:33:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:33:05 - End Time 2024-12-25 12:33:05 [2024-12-25 12:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099544', 'tblTempUsageDetail_20' ) start [2024-12-25 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099544', 'tblTempUsageDetail_20' ) end [2024-12-25 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099544', 'tblTempVendorCDR_20' ) start [2024-12-25 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099544', 'tblTempVendorCDR_20' ) end [2024-12-25 12:33:17] Production.INFO: ProcessCDR(1,14099544,1,1,2) [2024-12-25 12:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099544', 'tblTempUsageDetail_20' ) start [2024-12-25 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099544', 'tblTempUsageDetail_20' ) end [2024-12-25 12:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:33:22] Production.INFO: ==18188== Releasing lock... [2024-12-25 12:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:33:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-25 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:34:06 [end_date_ymd] => 2024-12-25 12:34:06 [RateCDR] => 1 ) [2024-12-25 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:34:06' and `end` < '2024-12-25 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:34:21] Production.INFO: count ==857 [2024-12-25 12:34:21] Production.ERROR: pbx CDR StartTime 2024-12-25 09:34:06 - End Time 2024-12-25 12:34:06 [2024-12-25 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099549', 'tblTempUsageDetail_20' ) start [2024-12-25 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099549', 'tblTempUsageDetail_20' ) end [2024-12-25 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099549', 'tblTempVendorCDR_20' ) start [2024-12-25 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099549', 'tblTempVendorCDR_20' ) end [2024-12-25 12:34:21] Production.INFO: ProcessCDR(1,14099549,1,1,2) [2024-12-25 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099549', 'tblTempUsageDetail_20' ) start [2024-12-25 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099549', 'tblTempUsageDetail_20' ) end [2024-12-25 12:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:34:24] Production.INFO: ==18272== Releasing lock... [2024-12-25 12:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:34:24] Production.INFO: 34.5 MB #Memory Used# [2024-12-25 12:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:35:04 [end_date_ymd] => 2024-12-25 12:35:04 [RateCDR] => 1 ) [2024-12-25 12:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:35:04' and `end` < '2024-12-25 12:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:35:17] Production.INFO: count ==861 [2024-12-25 12:35:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:35:04 - End Time 2024-12-25 12:35:04 [2024-12-25 12:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099554', 'tblTempUsageDetail_20' ) start [2024-12-25 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099554', 'tblTempUsageDetail_20' ) end [2024-12-25 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099554', 'tblTempVendorCDR_20' ) start [2024-12-25 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099554', 'tblTempVendorCDR_20' ) end [2024-12-25 12:35:17] Production.INFO: ProcessCDR(1,14099554,1,1,2) [2024-12-25 12:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099554', 'tblTempUsageDetail_20' ) start [2024-12-25 12:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099554', 'tblTempUsageDetail_20' ) end [2024-12-25 12:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:35:20] Production.INFO: ==18350== Releasing lock... [2024-12-25 12:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:35:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-25 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:36:05 [end_date_ymd] => 2024-12-25 12:36:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:36:05' and `end` < '2024-12-25 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-25 12:36:18] Production.INFO: count ==861 [2024-12-25 12:36:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:36:05 - End Time 2024-12-25 12:36:05 [2024-12-25 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099559', 'tblTempUsageDetail_20' ) start [2024-12-25 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099559', 'tblTempUsageDetail_20' ) end [2024-12-25 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099559', 'tblTempVendorCDR_20' ) start [2024-12-25 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099559', 'tblTempVendorCDR_20' ) end [2024-12-25 12:36:18] Production.INFO: ProcessCDR(1,14099559,1,1,2) [2024-12-25 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099559', 'tblTempUsageDetail_20' ) start [2024-12-25 12:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099559', 'tblTempUsageDetail_20' ) end [2024-12-25 12:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:36:21] Production.INFO: ==18433== Releasing lock... [2024-12-25 12:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:36:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-25 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:37:04 [end_date_ymd] => 2024-12-25 12:37:04 [RateCDR] => 1 ) [2024-12-25 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-25 09:37:04' and `end` < '2024-12-25 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-25 12:37:18] Production.INFO: count ==860 [2024-12-25 12:37:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:37:04 - End Time 2024-12-25 12:37:04 [2024-12-25 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099564', 'tblTempUsageDetail_20' ) start [2024-12-25 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099564', 'tblTempUsageDetail_20' ) end [2024-12-25 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099564', 'tblTempVendorCDR_20' ) start [2024-12-25 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099564', 'tblTempVendorCDR_20' ) end [2024-12-25 12:37:18] Production.INFO: ProcessCDR(1,14099564,1,1,2) [2024-12-25 12:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099564', 'tblTempUsageDetail_20' ) start [2024-12-25 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099564', 'tblTempUsageDetail_20' ) end [2024-12-25 12:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:37:22] Production.INFO: ==18547== Releasing lock... [2024-12-25 12:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:37:22] Production.INFO: 35 MB #Memory Used# [2024-12-25 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:38:05 [end_date_ymd] => 2024-12-25 12:38:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:38:05' and `end` < '2024-12-25 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-25 12:38:19] Production.INFO: count ==861 [2024-12-25 12:38:19] Production.ERROR: pbx CDR StartTime 2024-12-25 09:38:05 - End Time 2024-12-25 12:38:05 [2024-12-25 12:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099569', 'tblTempUsageDetail_20' ) start [2024-12-25 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099569', 'tblTempUsageDetail_20' ) end [2024-12-25 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099569', 'tblTempVendorCDR_20' ) start [2024-12-25 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099569', 'tblTempVendorCDR_20' ) end [2024-12-25 12:38:19] Production.INFO: ProcessCDR(1,14099569,1,1,2) [2024-12-25 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099569', 'tblTempUsageDetail_20' ) start [2024-12-25 12:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099569', 'tblTempUsageDetail_20' ) end [2024-12-25 12:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:38:22] Production.INFO: ==18624== Releasing lock... [2024-12-25 12:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:38:22] Production.INFO: 35 MB #Memory Used# [2024-12-25 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:39:05 [end_date_ymd] => 2024-12-25 12:39:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:39:05' and `end` < '2024-12-25 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-25 12:39:19] Production.INFO: count ==861 [2024-12-25 12:39:19] Production.ERROR: pbx CDR StartTime 2024-12-25 09:39:05 - End Time 2024-12-25 12:39:05 [2024-12-25 12:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099574', 'tblTempUsageDetail_20' ) start [2024-12-25 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099574', 'tblTempUsageDetail_20' ) end [2024-12-25 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099574', 'tblTempVendorCDR_20' ) start [2024-12-25 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099574', 'tblTempVendorCDR_20' ) end [2024-12-25 12:39:19] Production.INFO: ProcessCDR(1,14099574,1,1,2) [2024-12-25 12:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099574', 'tblTempUsageDetail_20' ) start [2024-12-25 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099574', 'tblTempUsageDetail_20' ) end [2024-12-25 12:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:39:22] Production.INFO: ==18727== Releasing lock... [2024-12-25 12:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:39:22] Production.INFO: 35 MB #Memory Used# [2024-12-25 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:40:06 [end_date_ymd] => 2024-12-25 12:40:06 [RateCDR] => 1 ) [2024-12-25 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:40:06' and `end` < '2024-12-25 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:40:18] Production.INFO: count ==870 [2024-12-25 12:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:40:06 - End Time 2024-12-25 12:40:06 [2024-12-25 12:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099580', 'tblTempUsageDetail_20' ) start [2024-12-25 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099580', 'tblTempUsageDetail_20' ) end [2024-12-25 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099580', 'tblTempVendorCDR_20' ) start [2024-12-25 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099580', 'tblTempVendorCDR_20' ) end [2024-12-25 12:40:18] Production.INFO: ProcessCDR(1,14099580,1,1,2) [2024-12-25 12:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099580', 'tblTempUsageDetail_20' ) start [2024-12-25 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099580', 'tblTempUsageDetail_20' ) end [2024-12-25 12:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:40:22] Production.INFO: ==18809== Releasing lock... [2024-12-25 12:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:40:22] Production.INFO: 35 MB #Memory Used# [2024-12-25 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:41:05 [end_date_ymd] => 2024-12-25 12:41:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:41:05' and `end` < '2024-12-25 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-25 12:41:17] Production.INFO: count ==887 [2024-12-25 12:41:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:41:05 - End Time 2024-12-25 12:41:05 [2024-12-25 12:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099585', 'tblTempUsageDetail_20' ) start [2024-12-25 12:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099585', 'tblTempUsageDetail_20' ) end [2024-12-25 12:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099585', 'tblTempVendorCDR_20' ) start [2024-12-25 12:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099585', 'tblTempVendorCDR_20' ) end [2024-12-25 12:41:17] Production.INFO: ProcessCDR(1,14099585,1,1,2) [2024-12-25 12:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099585', 'tblTempUsageDetail_20' ) start [2024-12-25 12:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099585', 'tblTempUsageDetail_20' ) end [2024-12-25 12:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:41:21] Production.INFO: ==18891== Releasing lock... [2024-12-25 12:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:41:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-25 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:42:05 [end_date_ymd] => 2024-12-25 12:42:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:42:05' and `end` < '2024-12-25 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-25 12:42:18] Production.INFO: count ==874 [2024-12-25 12:42:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:42:05 - End Time 2024-12-25 12:42:05 [2024-12-25 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099590', 'tblTempUsageDetail_20' ) start [2024-12-25 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099590', 'tblTempUsageDetail_20' ) end [2024-12-25 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099590', 'tblTempVendorCDR_20' ) start [2024-12-25 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099590', 'tblTempVendorCDR_20' ) end [2024-12-25 12:42:18] Production.INFO: ProcessCDR(1,14099590,1,1,2) [2024-12-25 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099590', 'tblTempUsageDetail_20' ) start [2024-12-25 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099590', 'tblTempUsageDetail_20' ) end [2024-12-25 12:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:42:21] Production.INFO: ==18964== Releasing lock... [2024-12-25 12:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:42:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-25 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:43:04 [end_date_ymd] => 2024-12-25 12:43:04 [RateCDR] => 1 ) [2024-12-25 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-25 09:43:04' and `end` < '2024-12-25 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-25 12:43:17] Production.INFO: count ==865 [2024-12-25 12:43:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:43:04 - End Time 2024-12-25 12:43:04 [2024-12-25 12:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099595', 'tblTempUsageDetail_20' ) start [2024-12-25 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099595', 'tblTempUsageDetail_20' ) end [2024-12-25 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099595', 'tblTempVendorCDR_20' ) start [2024-12-25 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099595', 'tblTempVendorCDR_20' ) end [2024-12-25 12:43:17] Production.INFO: ProcessCDR(1,14099595,1,1,2) [2024-12-25 12:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099595', 'tblTempUsageDetail_20' ) start [2024-12-25 12:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099595', 'tblTempUsageDetail_20' ) end [2024-12-25 12:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:43:20] Production.INFO: ==19049== Releasing lock... [2024-12-25 12:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:43:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-25 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:44:05 [end_date_ymd] => 2024-12-25 12:44:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:44:05' and `end` < '2024-12-25 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-25 12:44:17] Production.INFO: count ==865 [2024-12-25 12:44:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:44:05 - End Time 2024-12-25 12:44:05 [2024-12-25 12:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099600', 'tblTempUsageDetail_20' ) start [2024-12-25 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099600', 'tblTempUsageDetail_20' ) end [2024-12-25 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099600', 'tblTempVendorCDR_20' ) start [2024-12-25 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099600', 'tblTempVendorCDR_20' ) end [2024-12-25 12:44:17] Production.INFO: ProcessCDR(1,14099600,1,1,2) [2024-12-25 12:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099600', 'tblTempUsageDetail_20' ) start [2024-12-25 12:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099600', 'tblTempUsageDetail_20' ) end [2024-12-25 12:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:44:20] Production.INFO: ==19128== Releasing lock... [2024-12-25 12:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:44:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-25 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:45:05 [end_date_ymd] => 2024-12-25 12:45:05 [RateCDR] => 1 ) [2024-12-25 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:45:05' and `end` < '2024-12-25 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:45:17] Production.INFO: count ==852 [2024-12-25 12:45:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:45:05 - End Time 2024-12-25 12:45:05 [2024-12-25 12:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099605', 'tblTempUsageDetail_20' ) start [2024-12-25 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099605', 'tblTempUsageDetail_20' ) end [2024-12-25 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099605', 'tblTempVendorCDR_20' ) start [2024-12-25 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099605', 'tblTempVendorCDR_20' ) end [2024-12-25 12:45:17] Production.INFO: ProcessCDR(1,14099605,1,1,2) [2024-12-25 12:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099605', 'tblTempUsageDetail_20' ) start [2024-12-25 12:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099605', 'tblTempUsageDetail_20' ) end [2024-12-25 12:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:45:20] Production.INFO: ==19205== Releasing lock... [2024-12-25 12:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:45:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-25 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:46:05 [end_date_ymd] => 2024-12-25 12:46:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:46:05' and `end` < '2024-12-25 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-25 12:46:17] Production.INFO: count ==868 [2024-12-25 12:46:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:46:05 - End Time 2024-12-25 12:46:05 [2024-12-25 12:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099610', 'tblTempUsageDetail_20' ) start [2024-12-25 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099610', 'tblTempUsageDetail_20' ) end [2024-12-25 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099610', 'tblTempVendorCDR_20' ) start [2024-12-25 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099610', 'tblTempVendorCDR_20' ) end [2024-12-25 12:46:17] Production.INFO: ProcessCDR(1,14099610,1,1,2) [2024-12-25 12:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099610', 'tblTempUsageDetail_20' ) start [2024-12-25 12:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099610', 'tblTempUsageDetail_20' ) end [2024-12-25 12:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:46:21] Production.INFO: ==19284== Releasing lock... [2024-12-25 12:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:46:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-25 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:47:04 [end_date_ymd] => 2024-12-25 12:47:04 [RateCDR] => 1 ) [2024-12-25 12: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-25 09:47:04' and `end` < '2024-12-25 12: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-25 12:47:16] Production.INFO: count ==859 [2024-12-25 12:47:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:47:04 - End Time 2024-12-25 12:47:04 [2024-12-25 12:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099615', 'tblTempUsageDetail_20' ) start [2024-12-25 12:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099615', 'tblTempUsageDetail_20' ) end [2024-12-25 12:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099615', 'tblTempVendorCDR_20' ) start [2024-12-25 12:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099615', 'tblTempVendorCDR_20' ) end [2024-12-25 12:47:17] Production.INFO: ProcessCDR(1,14099615,1,1,2) [2024-12-25 12:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099615', 'tblTempUsageDetail_20' ) start [2024-12-25 12:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099615', 'tblTempUsageDetail_20' ) end [2024-12-25 12:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:47:20] Production.INFO: ==19360== Releasing lock... [2024-12-25 12:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:47:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-25 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:48:05 [end_date_ymd] => 2024-12-25 12:48:05 [RateCDR] => 1 ) [2024-12-25 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:48:05' and `end` < '2024-12-25 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:48:17] Production.INFO: count ==869 [2024-12-25 12:48:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:48:05 - End Time 2024-12-25 12:48:05 [2024-12-25 12:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099620', 'tblTempUsageDetail_20' ) start [2024-12-25 12:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099620', 'tblTempUsageDetail_20' ) end [2024-12-25 12:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099620', 'tblTempVendorCDR_20' ) start [2024-12-25 12:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099620', 'tblTempVendorCDR_20' ) end [2024-12-25 12:48:17] Production.INFO: ProcessCDR(1,14099620,1,1,2) [2024-12-25 12:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099620', 'tblTempUsageDetail_20' ) start [2024-12-25 12:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099620', 'tblTempUsageDetail_20' ) end [2024-12-25 12:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:48:21] Production.INFO: ==19441== Releasing lock... [2024-12-25 12:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:48:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-25 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:49:04 [end_date_ymd] => 2024-12-25 12:49:04 [RateCDR] => 1 ) [2024-12-25 12:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:49:04' and `end` < '2024-12-25 12:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:49:20] Production.INFO: count ==873 [2024-12-25 12:49:21] Production.ERROR: pbx CDR StartTime 2024-12-25 09:49:04 - End Time 2024-12-25 12:49:04 [2024-12-25 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099625', 'tblTempUsageDetail_20' ) start [2024-12-25 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099625', 'tblTempUsageDetail_20' ) end [2024-12-25 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099625', 'tblTempVendorCDR_20' ) start [2024-12-25 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099625', 'tblTempVendorCDR_20' ) end [2024-12-25 12:49:21] Production.INFO: ProcessCDR(1,14099625,1,1,2) [2024-12-25 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099625', 'tblTempUsageDetail_20' ) start [2024-12-25 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099625', 'tblTempUsageDetail_20' ) end [2024-12-25 12:49:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:49:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:49:24] Production.INFO: ==19520== Releasing lock... [2024-12-25 12:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:49:24] Production.INFO: 35.25 MB #Memory Used# [2024-12-25 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:50:05 [end_date_ymd] => 2024-12-25 12:50:05 [RateCDR] => 1 ) [2024-12-25 12:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:50:05' and `end` < '2024-12-25 12:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:50:18] Production.INFO: count ==876 [2024-12-25 12:50:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:50:05 - End Time 2024-12-25 12:50:05 [2024-12-25 12:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099630', 'tblTempUsageDetail_20' ) start [2024-12-25 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099630', 'tblTempUsageDetail_20' ) end [2024-12-25 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099630', 'tblTempVendorCDR_20' ) start [2024-12-25 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099630', 'tblTempVendorCDR_20' ) end [2024-12-25 12:50:18] Production.INFO: ProcessCDR(1,14099630,1,1,2) [2024-12-25 12:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099630', 'tblTempUsageDetail_20' ) start [2024-12-25 12:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099630', 'tblTempUsageDetail_20' ) end [2024-12-25 12:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:50:21] Production.INFO: ==19607== Releasing lock... [2024-12-25 12:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:50:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-25 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:51:05 [end_date_ymd] => 2024-12-25 12:51:05 [RateCDR] => 1 ) [2024-12-25 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:51:05' and `end` < '2024-12-25 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:51:18] Production.INFO: count ==892 [2024-12-25 12:51:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:51:05 - End Time 2024-12-25 12:51:05 [2024-12-25 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099636', 'tblTempUsageDetail_20' ) start [2024-12-25 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099636', 'tblTempUsageDetail_20' ) end [2024-12-25 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099636', 'tblTempVendorCDR_20' ) start [2024-12-25 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099636', 'tblTempVendorCDR_20' ) end [2024-12-25 12:51:18] Production.INFO: ProcessCDR(1,14099636,1,1,2) [2024-12-25 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099636', 'tblTempUsageDetail_20' ) start [2024-12-25 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099636', 'tblTempUsageDetail_20' ) end [2024-12-25 12:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:51:21] Production.INFO: ==19682== Releasing lock... [2024-12-25 12:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:51:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-25 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:52:05 [end_date_ymd] => 2024-12-25 12:52:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:52:05' and `end` < '2024-12-25 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-25 12:52:17] Production.INFO: count ==892 [2024-12-25 12:52:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:52:05 - End Time 2024-12-25 12:52:05 [2024-12-25 12:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099641', 'tblTempUsageDetail_20' ) start [2024-12-25 12:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099641', 'tblTempUsageDetail_20' ) end [2024-12-25 12:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099641', 'tblTempVendorCDR_20' ) start [2024-12-25 12:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099641', 'tblTempVendorCDR_20' ) end [2024-12-25 12:52:17] Production.INFO: ProcessCDR(1,14099641,1,1,2) [2024-12-25 12:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099641', 'tblTempUsageDetail_20' ) start [2024-12-25 12:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099641', 'tblTempUsageDetail_20' ) end [2024-12-25 12:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:52:20] Production.INFO: ==19766== Releasing lock... [2024-12-25 12:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:52:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-25 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:53:05 [end_date_ymd] => 2024-12-25 12:53:05 [RateCDR] => 1 ) [2024-12-25 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:53:05' and `end` < '2024-12-25 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:53:18] Production.INFO: count ==878 [2024-12-25 12:53:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:53:05 - End Time 2024-12-25 12:53:05 [2024-12-25 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099646', 'tblTempUsageDetail_20' ) start [2024-12-25 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099646', 'tblTempUsageDetail_20' ) end [2024-12-25 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099646', 'tblTempVendorCDR_20' ) start [2024-12-25 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099646', 'tblTempVendorCDR_20' ) end [2024-12-25 12:53:18] Production.INFO: ProcessCDR(1,14099646,1,1,2) [2024-12-25 12:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099646', 'tblTempUsageDetail_20' ) start [2024-12-25 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099646', 'tblTempUsageDetail_20' ) end [2024-12-25 12:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:53:22] Production.INFO: ==19883== Releasing lock... [2024-12-25 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:53:22] Production.INFO: 35 MB #Memory Used# [2024-12-25 12:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:54:04 [end_date_ymd] => 2024-12-25 12:54:04 [RateCDR] => 1 ) [2024-12-25 12:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:54:04' and `end` < '2024-12-25 12:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:54:17] Production.INFO: count ==874 [2024-12-25 12:54:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:54:04 - End Time 2024-12-25 12:54:04 [2024-12-25 12:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099651', 'tblTempUsageDetail_20' ) start [2024-12-25 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099651', 'tblTempUsageDetail_20' ) end [2024-12-25 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099651', 'tblTempVendorCDR_20' ) start [2024-12-25 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099651', 'tblTempVendorCDR_20' ) end [2024-12-25 12:54:17] Production.INFO: ProcessCDR(1,14099651,1,1,2) [2024-12-25 12:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099651', 'tblTempUsageDetail_20' ) start [2024-12-25 12:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099651', 'tblTempUsageDetail_20' ) end [2024-12-25 12:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:54:20] Production.INFO: ==19961== Releasing lock... [2024-12-25 12:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:54:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-25 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:55:05 [end_date_ymd] => 2024-12-25 12:55:05 [RateCDR] => 1 ) [2024-12-25 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:55:05' and `end` < '2024-12-25 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:55:17] Production.INFO: count ==874 [2024-12-25 12:55:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:55:05 - End Time 2024-12-25 12:55:05 [2024-12-25 12:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099656', 'tblTempUsageDetail_20' ) start [2024-12-25 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099656', 'tblTempUsageDetail_20' ) end [2024-12-25 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099656', 'tblTempVendorCDR_20' ) start [2024-12-25 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099656', 'tblTempVendorCDR_20' ) end [2024-12-25 12:55:18] Production.INFO: ProcessCDR(1,14099656,1,1,2) [2024-12-25 12:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099656', 'tblTempUsageDetail_20' ) start [2024-12-25 12:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099656', 'tblTempUsageDetail_20' ) end [2024-12-25 12:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:55:21] Production.INFO: ==20042== Releasing lock... [2024-12-25 12:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:55:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-25 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:56:05 [end_date_ymd] => 2024-12-25 12:56:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:56:05' and `end` < '2024-12-25 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-25 12:56:17] Production.INFO: count ==876 [2024-12-25 12:56:17] Production.ERROR: pbx CDR StartTime 2024-12-25 09:56:05 - End Time 2024-12-25 12:56:05 [2024-12-25 12:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099661', 'tblTempUsageDetail_20' ) start [2024-12-25 12:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099661', 'tblTempUsageDetail_20' ) end [2024-12-25 12:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099661', 'tblTempVendorCDR_20' ) start [2024-12-25 12:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099661', 'tblTempVendorCDR_20' ) end [2024-12-25 12:56:17] Production.INFO: ProcessCDR(1,14099661,1,1,2) [2024-12-25 12:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099661', 'tblTempUsageDetail_20' ) start [2024-12-25 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099661', 'tblTempUsageDetail_20' ) end [2024-12-25 12:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:56:22] Production.INFO: ==20129== Releasing lock... [2024-12-25 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:56:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-25 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:57:05 [end_date_ymd] => 2024-12-25 12:57:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:57:05' and `end` < '2024-12-25 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-25 12:57:18] Production.INFO: count ==876 [2024-12-25 12:57:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:57:05 - End Time 2024-12-25 12:57:05 [2024-12-25 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099666', 'tblTempUsageDetail_20' ) start [2024-12-25 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099666', 'tblTempUsageDetail_20' ) end [2024-12-25 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099666', 'tblTempVendorCDR_20' ) start [2024-12-25 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099666', 'tblTempVendorCDR_20' ) end [2024-12-25 12:57:18] Production.INFO: ProcessCDR(1,14099666,1,1,2) [2024-12-25 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099666', 'tblTempUsageDetail_20' ) start [2024-12-25 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099666', 'tblTempUsageDetail_20' ) end [2024-12-25 12:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:57:22] Production.INFO: ==20204== Releasing lock... [2024-12-25 12:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:57:22] Production.INFO: 35 MB #Memory Used# [2024-12-25 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:58:05 [end_date_ymd] => 2024-12-25 12:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 09:58:05' and `end` < '2024-12-25 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-25 12:58:18] Production.INFO: count ==870 [2024-12-25 12:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:58:05 - End Time 2024-12-25 12:58:05 [2024-12-25 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099671', 'tblTempUsageDetail_20' ) start [2024-12-25 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099671', 'tblTempUsageDetail_20' ) end [2024-12-25 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099671', 'tblTempVendorCDR_20' ) start [2024-12-25 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099671', 'tblTempVendorCDR_20' ) end [2024-12-25 12:58:18] Production.INFO: ProcessCDR(1,14099671,1,1,2) [2024-12-25 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099671', 'tblTempUsageDetail_20' ) start [2024-12-25 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099671', 'tblTempUsageDetail_20' ) end [2024-12-25 12:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:58:22] Production.INFO: ==20282== Releasing lock... [2024-12-25 12:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:58:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-25 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 09:59:05 [end_date_ymd] => 2024-12-25 12:59:05 [RateCDR] => 1 ) [2024-12-25 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 09:59:05' and `end` < '2024-12-25 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 12:59:18] Production.INFO: count ==866 [2024-12-25 12:59:18] Production.ERROR: pbx CDR StartTime 2024-12-25 09:59:05 - End Time 2024-12-25 12:59:05 [2024-12-25 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099676', 'tblTempUsageDetail_20' ) start [2024-12-25 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099676', 'tblTempUsageDetail_20' ) end [2024-12-25 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099676', 'tblTempVendorCDR_20' ) start [2024-12-25 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099676', 'tblTempVendorCDR_20' ) end [2024-12-25 12:59:18] Production.INFO: ProcessCDR(1,14099676,1,1,2) [2024-12-25 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 12:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099676', 'tblTempUsageDetail_20' ) start [2024-12-25 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099676', 'tblTempUsageDetail_20' ) end [2024-12-25 12:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 12:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 12:59:21] Production.INFO: ==20363== Releasing lock... [2024-12-25 12:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 12:59:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-25 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:00:06 [end_date_ymd] => 2024-12-25 13:00:06 [RateCDR] => 1 ) [2024-12-25 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:00:06' and `end` < '2024-12-25 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:00:18] Production.INFO: count ==869 [2024-12-25 13:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:00:06 - End Time 2024-12-25 13:00:06 [2024-12-25 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099682', 'tblTempUsageDetail_20' ) start [2024-12-25 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099682', 'tblTempUsageDetail_20' ) end [2024-12-25 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099682', 'tblTempVendorCDR_20' ) start [2024-12-25 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099682', 'tblTempVendorCDR_20' ) end [2024-12-25 13:00:18] Production.INFO: ProcessCDR(1,14099682,1,1,2) [2024-12-25 13:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099682', 'tblTempUsageDetail_20' ) start [2024-12-25 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099682', 'tblTempUsageDetail_20' ) end [2024-12-25 13:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:00:23] Production.INFO: ==20439== Releasing lock... [2024-12-25 13:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:00:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-25 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:01:05 [end_date_ymd] => 2024-12-25 13:01:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:01:05' and `end` < '2024-12-25 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-25 13:01:21] Production.INFO: count ==895 [2024-12-25 13:01:21] Production.ERROR: pbx CDR StartTime 2024-12-25 10:01:05 - End Time 2024-12-25 13:01:05 [2024-12-25 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099687', 'tblTempUsageDetail_20' ) start [2024-12-25 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099687', 'tblTempUsageDetail_20' ) end [2024-12-25 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099687', 'tblTempVendorCDR_20' ) start [2024-12-25 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099687', 'tblTempVendorCDR_20' ) end [2024-12-25 13:01:21] Production.INFO: ProcessCDR(1,14099687,1,1,2) [2024-12-25 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099687', 'tblTempUsageDetail_20' ) start [2024-12-25 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099687', 'tblTempUsageDetail_20' ) end [2024-12-25 13:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:01:25] Production.INFO: ==20541== Releasing lock... [2024-12-25 13:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:01:25] Production.INFO: 35 MB #Memory Used# [2024-12-25 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:02:05 [end_date_ymd] => 2024-12-25 13:02:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:02:05' and `end` < '2024-12-25 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-25 13:02:20] Production.INFO: count ==897 [2024-12-25 13:02:20] Production.ERROR: pbx CDR StartTime 2024-12-25 10:02:05 - End Time 2024-12-25 13:02:05 [2024-12-25 13:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099692', 'tblTempUsageDetail_20' ) start [2024-12-25 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099692', 'tblTempUsageDetail_20' ) end [2024-12-25 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099692', 'tblTempVendorCDR_20' ) start [2024-12-25 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099692', 'tblTempVendorCDR_20' ) end [2024-12-25 13:02:20] Production.INFO: ProcessCDR(1,14099692,1,1,2) [2024-12-25 13:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099692', 'tblTempUsageDetail_20' ) start [2024-12-25 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099692', 'tblTempUsageDetail_20' ) end [2024-12-25 13:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:02:23] Production.INFO: ==20622== Releasing lock... [2024-12-25 13:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:02:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-25 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:03:05 [end_date_ymd] => 2024-12-25 13:03:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:03:05' and `end` < '2024-12-25 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-25 13:03:18] Production.INFO: count ==903 [2024-12-25 13:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:03:05 - End Time 2024-12-25 13:03:05 [2024-12-25 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099697', 'tblTempUsageDetail_20' ) start [2024-12-25 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099697', 'tblTempUsageDetail_20' ) end [2024-12-25 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099697', 'tblTempVendorCDR_20' ) start [2024-12-25 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099697', 'tblTempVendorCDR_20' ) end [2024-12-25 13:03:18] Production.INFO: ProcessCDR(1,14099697,1,1,2) [2024-12-25 13:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099697', 'tblTempUsageDetail_20' ) start [2024-12-25 13:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099697', 'tblTempUsageDetail_20' ) end [2024-12-25 13:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:03:21] Production.INFO: ==20708== Releasing lock... [2024-12-25 13:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:03:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-25 13:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:04:04 [end_date_ymd] => 2024-12-25 13:04:04 [RateCDR] => 1 ) [2024-12-25 13:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:04:04' and `end` < '2024-12-25 13:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:04:19] Production.INFO: count ==911 [2024-12-25 13:04:19] Production.ERROR: pbx CDR StartTime 2024-12-25 10:04:04 - End Time 2024-12-25 13:04:04 [2024-12-25 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099702', 'tblTempUsageDetail_20' ) start [2024-12-25 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099702', 'tblTempUsageDetail_20' ) end [2024-12-25 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099702', 'tblTempVendorCDR_20' ) start [2024-12-25 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099702', 'tblTempVendorCDR_20' ) end [2024-12-25 13:04:19] Production.INFO: ProcessCDR(1,14099702,1,1,2) [2024-12-25 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099702', 'tblTempUsageDetail_20' ) start [2024-12-25 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099702', 'tblTempUsageDetail_20' ) end [2024-12-25 13:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:04:23] Production.INFO: ==20795== Releasing lock... [2024-12-25 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:04:23] Production.INFO: 35.5 MB #Memory Used# [2024-12-25 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:05:05 [end_date_ymd] => 2024-12-25 13:05:05 [RateCDR] => 1 ) [2024-12-25 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:05:05' and `end` < '2024-12-25 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:05:18] Production.INFO: count ==911 [2024-12-25 13:05:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:05:05 - End Time 2024-12-25 13:05:05 [2024-12-25 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099707', 'tblTempUsageDetail_20' ) start [2024-12-25 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099707', 'tblTempUsageDetail_20' ) end [2024-12-25 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099707', 'tblTempVendorCDR_20' ) start [2024-12-25 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099707', 'tblTempVendorCDR_20' ) end [2024-12-25 13:05:18] Production.INFO: ProcessCDR(1,14099707,1,1,2) [2024-12-25 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099707', 'tblTempUsageDetail_20' ) start [2024-12-25 13:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099707', 'tblTempUsageDetail_20' ) end [2024-12-25 13:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:05:21] Production.INFO: ==20879== Releasing lock... [2024-12-25 13:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:05:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-25 13:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:06:04 [end_date_ymd] => 2024-12-25 13:06:04 [RateCDR] => 1 ) [2024-12-25 13: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-25 10:06:04' and `end` < '2024-12-25 13: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-25 13:06:17] Production.INFO: count ==911 [2024-12-25 13:06:17] Production.ERROR: pbx CDR StartTime 2024-12-25 10:06:04 - End Time 2024-12-25 13:06:04 [2024-12-25 13:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099712', 'tblTempUsageDetail_20' ) start [2024-12-25 13:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099712', 'tblTempUsageDetail_20' ) end [2024-12-25 13:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099712', 'tblTempVendorCDR_20' ) start [2024-12-25 13:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099712', 'tblTempVendorCDR_20' ) end [2024-12-25 13:06:17] Production.INFO: ProcessCDR(1,14099712,1,1,2) [2024-12-25 13:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099712', 'tblTempUsageDetail_20' ) start [2024-12-25 13:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099712', 'tblTempUsageDetail_20' ) end [2024-12-25 13:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:06:20] Production.INFO: ==20963== Releasing lock... [2024-12-25 13:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:06:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-25 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:07:04 [end_date_ymd] => 2024-12-25 13:07:04 [RateCDR] => 1 ) [2024-12-25 13: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-25 10:07:04' and `end` < '2024-12-25 13: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-25 13:07:18] Production.INFO: count ==927 [2024-12-25 13:07:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:07:04 - End Time 2024-12-25 13:07:04 [2024-12-25 13:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099717', 'tblTempUsageDetail_20' ) start [2024-12-25 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099717', 'tblTempUsageDetail_20' ) end [2024-12-25 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099717', 'tblTempVendorCDR_20' ) start [2024-12-25 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099717', 'tblTempVendorCDR_20' ) end [2024-12-25 13:07:18] Production.INFO: ProcessCDR(1,14099717,1,1,2) [2024-12-25 13:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099717', 'tblTempUsageDetail_20' ) start [2024-12-25 13:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099717', 'tblTempUsageDetail_20' ) end [2024-12-25 13:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:07:21] Production.INFO: ==21045== Releasing lock... [2024-12-25 13:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:07:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-25 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:08:05 [end_date_ymd] => 2024-12-25 13:08:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:08:05' and `end` < '2024-12-25 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-25 13:08:19] Production.INFO: count ==927 [2024-12-25 13:08:19] Production.ERROR: pbx CDR StartTime 2024-12-25 10:08:05 - End Time 2024-12-25 13:08:05 [2024-12-25 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099722', 'tblTempUsageDetail_20' ) start [2024-12-25 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099722', 'tblTempUsageDetail_20' ) end [2024-12-25 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099722', 'tblTempVendorCDR_20' ) start [2024-12-25 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099722', 'tblTempVendorCDR_20' ) end [2024-12-25 13:08:19] Production.INFO: ProcessCDR(1,14099722,1,1,2) [2024-12-25 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099722', 'tblTempUsageDetail_20' ) start [2024-12-25 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099722', 'tblTempUsageDetail_20' ) end [2024-12-25 13:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:08:22] Production.INFO: ==21134== Releasing lock... [2024-12-25 13:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:08:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-25 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:09:05 [end_date_ymd] => 2024-12-25 13:09:05 [RateCDR] => 1 ) [2024-12-25 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:09:05' and `end` < '2024-12-25 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:09:17] Production.INFO: count ==939 [2024-12-25 13:09:17] Production.ERROR: pbx CDR StartTime 2024-12-25 10:09:05 - End Time 2024-12-25 13:09:05 [2024-12-25 13:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099727', 'tblTempUsageDetail_20' ) start [2024-12-25 13:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099727', 'tblTempUsageDetail_20' ) end [2024-12-25 13:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099727', 'tblTempVendorCDR_20' ) start [2024-12-25 13:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099727', 'tblTempVendorCDR_20' ) end [2024-12-25 13:09:17] Production.INFO: ProcessCDR(1,14099727,1,1,2) [2024-12-25 13:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099727', 'tblTempUsageDetail_20' ) start [2024-12-25 13:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099727', 'tblTempUsageDetail_20' ) end [2024-12-25 13:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:09:20] Production.INFO: ==21254== Releasing lock... [2024-12-25 13:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:09:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-25 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:10:06 [end_date_ymd] => 2024-12-25 13:10:06 [RateCDR] => 1 ) [2024-12-25 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:10:06' and `end` < '2024-12-25 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:10:18] Production.INFO: count ==937 [2024-12-25 13:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:10:06 - End Time 2024-12-25 13:10:06 [2024-12-25 13:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099733', 'tblTempUsageDetail_20' ) start [2024-12-25 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099733', 'tblTempUsageDetail_20' ) end [2024-12-25 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099733', 'tblTempVendorCDR_20' ) start [2024-12-25 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099733', 'tblTempVendorCDR_20' ) end [2024-12-25 13:10:18] Production.INFO: ProcessCDR(1,14099733,1,1,2) [2024-12-25 13:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099733', 'tblTempUsageDetail_20' ) start [2024-12-25 13:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099733', 'tblTempUsageDetail_20' ) end [2024-12-25 13:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:10:21] Production.INFO: ==21345== Releasing lock... [2024-12-25 13:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:10:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-25 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:11:05 [end_date_ymd] => 2024-12-25 13:11:05 [RateCDR] => 1 ) [2024-12-25 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:11:05' and `end` < '2024-12-25 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:11:17] Production.INFO: count ==955 [2024-12-25 13:11:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:11:05 - End Time 2024-12-25 13:11:05 [2024-12-25 13:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099738', 'tblTempUsageDetail_20' ) start [2024-12-25 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099738', 'tblTempUsageDetail_20' ) end [2024-12-25 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099738', 'tblTempVendorCDR_20' ) start [2024-12-25 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099738', 'tblTempVendorCDR_20' ) end [2024-12-25 13:11:18] Production.INFO: ProcessCDR(1,14099738,1,1,2) [2024-12-25 13:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099738', 'tblTempUsageDetail_20' ) start [2024-12-25 13:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099738', 'tblTempUsageDetail_20' ) end [2024-12-25 13:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:11:21] Production.INFO: ==21427== Releasing lock... [2024-12-25 13:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:11:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-25 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:12:05 [end_date_ymd] => 2024-12-25 13:12:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:12:05' and `end` < '2024-12-25 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-25 13:12:19] Production.INFO: count ==960 [2024-12-25 13:12:20] Production.ERROR: pbx CDR StartTime 2024-12-25 10:12:05 - End Time 2024-12-25 13:12:05 [2024-12-25 13:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099743', 'tblTempUsageDetail_20' ) start [2024-12-25 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099743', 'tblTempUsageDetail_20' ) end [2024-12-25 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099743', 'tblTempVendorCDR_20' ) start [2024-12-25 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099743', 'tblTempVendorCDR_20' ) end [2024-12-25 13:12:20] Production.INFO: ProcessCDR(1,14099743,1,1,2) [2024-12-25 13:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099743', 'tblTempUsageDetail_20' ) start [2024-12-25 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099743', 'tblTempUsageDetail_20' ) end [2024-12-25 13:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:12:23] Production.INFO: ==21512== Releasing lock... [2024-12-25 13:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:12:23] Production.INFO: 36.25 MB #Memory Used# [2024-12-25 13:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:13:04 [end_date_ymd] => 2024-12-25 13:13:04 [RateCDR] => 1 ) [2024-12-25 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-25 10:13:04' and `end` < '2024-12-25 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-25 13:13:17] Production.INFO: count ==969 [2024-12-25 13:13:17] Production.ERROR: pbx CDR StartTime 2024-12-25 10:13:04 - End Time 2024-12-25 13:13:04 [2024-12-25 13:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099748', 'tblTempUsageDetail_20' ) start [2024-12-25 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099748', 'tblTempUsageDetail_20' ) end [2024-12-25 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099748', 'tblTempVendorCDR_20' ) start [2024-12-25 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099748', 'tblTempVendorCDR_20' ) end [2024-12-25 13:13:17] Production.INFO: ProcessCDR(1,14099748,1,1,2) [2024-12-25 13:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099748', 'tblTempUsageDetail_20' ) start [2024-12-25 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099748', 'tblTempUsageDetail_20' ) end [2024-12-25 13:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:13:22] Production.INFO: ==21598== Releasing lock... [2024-12-25 13:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:13:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-25 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:14:05 [end_date_ymd] => 2024-12-25 13:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:14:05' and `end` < '2024-12-25 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-25 13:14:18] Production.INFO: count ==969 [2024-12-25 13:14:19] Production.ERROR: pbx CDR StartTime 2024-12-25 10:14:05 - End Time 2024-12-25 13:14:05 [2024-12-25 13:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099753', 'tblTempUsageDetail_20' ) start [2024-12-25 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099753', 'tblTempUsageDetail_20' ) end [2024-12-25 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099753', 'tblTempVendorCDR_20' ) start [2024-12-25 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099753', 'tblTempVendorCDR_20' ) end [2024-12-25 13:14:19] Production.INFO: ProcessCDR(1,14099753,1,1,2) [2024-12-25 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099753', 'tblTempUsageDetail_20' ) start [2024-12-25 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099753', 'tblTempUsageDetail_20' ) end [2024-12-25 13:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:14:22] Production.INFO: ==21680== Releasing lock... [2024-12-25 13:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:14:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-25 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:15:05 [end_date_ymd] => 2024-12-25 13:15:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:15:05' and `end` < '2024-12-25 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-25 13:15:17] Production.INFO: count ==974 [2024-12-25 13:15:17] Production.ERROR: pbx CDR StartTime 2024-12-25 10:15:05 - End Time 2024-12-25 13:15:05 [2024-12-25 13:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099758', 'tblTempUsageDetail_20' ) start [2024-12-25 13:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099758', 'tblTempUsageDetail_20' ) end [2024-12-25 13:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099758', 'tblTempVendorCDR_20' ) start [2024-12-25 13:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099758', 'tblTempVendorCDR_20' ) end [2024-12-25 13:15:17] Production.INFO: ProcessCDR(1,14099758,1,1,2) [2024-12-25 13:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099758', 'tblTempUsageDetail_20' ) start [2024-12-25 13:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099758', 'tblTempUsageDetail_20' ) end [2024-12-25 13:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:15:21] Production.INFO: ==21768== Releasing lock... [2024-12-25 13:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:15:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-25 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:16:05 [end_date_ymd] => 2024-12-25 13:16:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:16:05' and `end` < '2024-12-25 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-25 13:16:20] Production.INFO: count ==981 [2024-12-25 13:16:20] Production.ERROR: pbx CDR StartTime 2024-12-25 10:16:05 - End Time 2024-12-25 13:16:05 [2024-12-25 13:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099763', 'tblTempUsageDetail_20' ) start [2024-12-25 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099763', 'tblTempUsageDetail_20' ) end [2024-12-25 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099763', 'tblTempVendorCDR_20' ) start [2024-12-25 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099763', 'tblTempVendorCDR_20' ) end [2024-12-25 13:16:20] Production.INFO: ProcessCDR(1,14099763,1,1,2) [2024-12-25 13:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099763', 'tblTempUsageDetail_20' ) start [2024-12-25 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099763', 'tblTempUsageDetail_20' ) end [2024-12-25 13:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:16:24] Production.INFO: ==21853== Releasing lock... [2024-12-25 13:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:16:24] Production.INFO: 36 MB #Memory Used# [2024-12-25 13:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:17:04 [end_date_ymd] => 2024-12-25 13:17:04 [RateCDR] => 1 ) [2024-12-25 13:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:17:04' and `end` < '2024-12-25 13:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:17:17] Production.INFO: count ==1000 [2024-12-25 13:17:17] Production.ERROR: pbx CDR StartTime 2024-12-25 10:17:04 - End Time 2024-12-25 13:17:04 [2024-12-25 13:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099768', 'tblTempUsageDetail_20' ) start [2024-12-25 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099768', 'tblTempUsageDetail_20' ) end [2024-12-25 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099768', 'tblTempVendorCDR_20' ) start [2024-12-25 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099768', 'tblTempVendorCDR_20' ) end [2024-12-25 13:17:17] Production.INFO: ProcessCDR(1,14099768,1,1,2) [2024-12-25 13:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099768', 'tblTempUsageDetail_20' ) start [2024-12-25 13:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099768', 'tblTempUsageDetail_20' ) end [2024-12-25 13:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:17:20] Production.INFO: ==21933== Releasing lock... [2024-12-25 13:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:17:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-25 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:18:05 [end_date_ymd] => 2024-12-25 13:18:05 [RateCDR] => 1 ) [2024-12-25 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:18:05' and `end` < '2024-12-25 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:18:18] Production.INFO: count ==1000 [2024-12-25 13:18:19] Production.ERROR: pbx CDR StartTime 2024-12-25 10:18:05 - End Time 2024-12-25 13:18:05 [2024-12-25 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099773', 'tblTempUsageDetail_20' ) start [2024-12-25 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099773', 'tblTempUsageDetail_20' ) end [2024-12-25 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099773', 'tblTempVendorCDR_20' ) start [2024-12-25 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099773', 'tblTempVendorCDR_20' ) end [2024-12-25 13:18:19] Production.INFO: ProcessCDR(1,14099773,1,1,2) [2024-12-25 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099773', 'tblTempUsageDetail_20' ) start [2024-12-25 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099773', 'tblTempUsageDetail_20' ) end [2024-12-25 13:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:18:22] Production.INFO: ==22022== Releasing lock... [2024-12-25 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:18:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-25 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:19:05 [end_date_ymd] => 2024-12-25 13:19:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:19:05' and `end` < '2024-12-25 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-25 13:19:18] Production.INFO: count ==1000 [2024-12-25 13:19:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:19:05 - End Time 2024-12-25 13:19:05 [2024-12-25 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099778', 'tblTempUsageDetail_20' ) start [2024-12-25 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099778', 'tblTempUsageDetail_20' ) end [2024-12-25 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099778', 'tblTempVendorCDR_20' ) start [2024-12-25 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099778', 'tblTempVendorCDR_20' ) end [2024-12-25 13:19:18] Production.INFO: ProcessCDR(1,14099778,1,1,2) [2024-12-25 13:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099778', 'tblTempUsageDetail_20' ) start [2024-12-25 13:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099778', 'tblTempUsageDetail_20' ) end [2024-12-25 13:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:19:21] Production.INFO: ==22110== Releasing lock... [2024-12-25 13:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:19:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-25 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:20:05 [end_date_ymd] => 2024-12-25 13:20:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:20:05' and `end` < '2024-12-25 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-25 13:20:17] Production.INFO: count ==1006 [2024-12-25 13:20:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:20:05 - End Time 2024-12-25 13:20:05 [2024-12-25 13:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099783', 'tblTempUsageDetail_20' ) start [2024-12-25 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099783', 'tblTempUsageDetail_20' ) end [2024-12-25 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099783', 'tblTempVendorCDR_20' ) start [2024-12-25 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099783', 'tblTempVendorCDR_20' ) end [2024-12-25 13:20:18] Production.INFO: ProcessCDR(1,14099783,1,1,2) [2024-12-25 13:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099783', 'tblTempUsageDetail_20' ) start [2024-12-25 13:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099783', 'tblTempUsageDetail_20' ) end [2024-12-25 13:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:20:21] Production.INFO: ==22195== Releasing lock... [2024-12-25 13:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:20:21] Production.INFO: 36 MB #Memory Used# [2024-12-25 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:21:05 [end_date_ymd] => 2024-12-25 13:21:05 [RateCDR] => 1 ) [2024-12-25 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:21:05' and `end` < '2024-12-25 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:21:19] Production.INFO: count ==1042 [2024-12-25 13:21:20] Production.ERROR: pbx CDR StartTime 2024-12-25 10:21:05 - End Time 2024-12-25 13:21:05 [2024-12-25 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099789', 'tblTempUsageDetail_20' ) start [2024-12-25 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099789', 'tblTempUsageDetail_20' ) end [2024-12-25 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099789', 'tblTempVendorCDR_20' ) start [2024-12-25 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099789', 'tblTempVendorCDR_20' ) end [2024-12-25 13:21:20] Production.INFO: ProcessCDR(1,14099789,1,1,2) [2024-12-25 13:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099789', 'tblTempUsageDetail_20' ) start [2024-12-25 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099789', 'tblTempUsageDetail_20' ) end [2024-12-25 13:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:21:23] Production.INFO: ==22285== Releasing lock... [2024-12-25 13:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:21:23] Production.INFO: 36 MB #Memory Used# [2024-12-25 13:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:22:04 [end_date_ymd] => 2024-12-25 13:22:04 [RateCDR] => 1 ) [2024-12-25 13:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:22:04' and `end` < '2024-12-25 13:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:22:17] Production.INFO: count ==1043 [2024-12-25 13:22:17] Production.ERROR: pbx CDR StartTime 2024-12-25 10:22:04 - End Time 2024-12-25 13:22:04 [2024-12-25 13:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099794', 'tblTempUsageDetail_20' ) start [2024-12-25 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099794', 'tblTempUsageDetail_20' ) end [2024-12-25 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099794', 'tblTempVendorCDR_20' ) start [2024-12-25 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099794', 'tblTempVendorCDR_20' ) end [2024-12-25 13:22:17] Production.INFO: ProcessCDR(1,14099794,1,1,2) [2024-12-25 13:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099794', 'tblTempUsageDetail_20' ) start [2024-12-25 13:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099794', 'tblTempUsageDetail_20' ) end [2024-12-25 13:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:22:20] Production.INFO: ==22368== Releasing lock... [2024-12-25 13:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:22:20] Production.INFO: 36 MB #Memory Used# [2024-12-25 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:23:05 [end_date_ymd] => 2024-12-25 13:23:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:23:05' and `end` < '2024-12-25 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-25 13:23:17] Production.INFO: count ==1045 [2024-12-25 13:23:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:23:05 - End Time 2024-12-25 13:23:05 [2024-12-25 13:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099799', 'tblTempUsageDetail_20' ) start [2024-12-25 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099799', 'tblTempUsageDetail_20' ) end [2024-12-25 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099799', 'tblTempVendorCDR_20' ) start [2024-12-25 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099799', 'tblTempVendorCDR_20' ) end [2024-12-25 13:23:18] Production.INFO: ProcessCDR(1,14099799,1,1,2) [2024-12-25 13:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099799', 'tblTempUsageDetail_20' ) start [2024-12-25 13:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099799', 'tblTempUsageDetail_20' ) end [2024-12-25 13:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:23:21] Production.INFO: ==22455== Releasing lock... [2024-12-25 13:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:23:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 13:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:24:04 [end_date_ymd] => 2024-12-25 13:24:04 [RateCDR] => 1 ) [2024-12-25 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-25 10:24:04' and `end` < '2024-12-25 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-25 13:24:17] Production.INFO: count ==1048 [2024-12-25 13:24:17] Production.ERROR: pbx CDR StartTime 2024-12-25 10:24:04 - End Time 2024-12-25 13:24:04 [2024-12-25 13:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099804', 'tblTempUsageDetail_20' ) start [2024-12-25 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099804', 'tblTempUsageDetail_20' ) end [2024-12-25 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099804', 'tblTempVendorCDR_20' ) start [2024-12-25 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099804', 'tblTempVendorCDR_20' ) end [2024-12-25 13:24:17] Production.INFO: ProcessCDR(1,14099804,1,1,2) [2024-12-25 13:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099804', 'tblTempUsageDetail_20' ) start [2024-12-25 13:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099804', 'tblTempUsageDetail_20' ) end [2024-12-25 13:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:24:20] Production.INFO: ==22591== Releasing lock... [2024-12-25 13:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:24:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:25:05 [end_date_ymd] => 2024-12-25 13:25:05 [RateCDR] => 1 ) [2024-12-25 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:25:05' and `end` < '2024-12-25 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:25:19] Production.INFO: count ==1057 [2024-12-25 13:25:19] Production.ERROR: pbx CDR StartTime 2024-12-25 10:25:05 - End Time 2024-12-25 13:25:05 [2024-12-25 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099809', 'tblTempUsageDetail_20' ) start [2024-12-25 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099809', 'tblTempUsageDetail_20' ) end [2024-12-25 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099809', 'tblTempVendorCDR_20' ) start [2024-12-25 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099809', 'tblTempVendorCDR_20' ) end [2024-12-25 13:25:19] Production.INFO: ProcessCDR(1,14099809,1,1,2) [2024-12-25 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099809', 'tblTempUsageDetail_20' ) start [2024-12-25 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099809', 'tblTempUsageDetail_20' ) end [2024-12-25 13:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:25:22] Production.INFO: ==22686== Releasing lock... [2024-12-25 13:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:25:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-25 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:26:05 [end_date_ymd] => 2024-12-25 13:26:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:26:05' and `end` < '2024-12-25 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-25 13:26:17] Production.INFO: count ==1060 [2024-12-25 13:26:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:26:05 - End Time 2024-12-25 13:26:05 [2024-12-25 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099814', 'tblTempUsageDetail_20' ) start [2024-12-25 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099814', 'tblTempUsageDetail_20' ) end [2024-12-25 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099814', 'tblTempVendorCDR_20' ) start [2024-12-25 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099814', 'tblTempVendorCDR_20' ) end [2024-12-25 13:26:18] Production.INFO: ProcessCDR(1,14099814,1,1,2) [2024-12-25 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099814', 'tblTempUsageDetail_20' ) start [2024-12-25 13:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099814', 'tblTempUsageDetail_20' ) end [2024-12-25 13:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:26:21] Production.INFO: ==22776== Releasing lock... [2024-12-25 13:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:26:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-25 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:27:05 [end_date_ymd] => 2024-12-25 13:27:05 [RateCDR] => 1 ) [2024-12-25 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:27:05' and `end` < '2024-12-25 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:27:17] Production.INFO: count ==1064 [2024-12-25 13:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:27:05 - End Time 2024-12-25 13:27:05 [2024-12-25 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099819', 'tblTempUsageDetail_20' ) start [2024-12-25 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099819', 'tblTempUsageDetail_20' ) end [2024-12-25 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099819', 'tblTempVendorCDR_20' ) start [2024-12-25 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099819', 'tblTempVendorCDR_20' ) end [2024-12-25 13:27:18] Production.INFO: ProcessCDR(1,14099819,1,1,2) [2024-12-25 13:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099819', 'tblTempUsageDetail_20' ) start [2024-12-25 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099819', 'tblTempUsageDetail_20' ) end [2024-12-25 13:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:27:21] Production.INFO: ==22869== Releasing lock... [2024-12-25 13:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:27:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 13:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:28:04 [end_date_ymd] => 2024-12-25 13:28:04 [RateCDR] => 1 ) [2024-12-25 13: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-25 10:28:04' and `end` < '2024-12-25 13: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-25 13:28:18] Production.INFO: count ==1069 [2024-12-25 13:28:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:28:04 - End Time 2024-12-25 13:28:04 [2024-12-25 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099824', 'tblTempUsageDetail_20' ) start [2024-12-25 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099824', 'tblTempUsageDetail_20' ) end [2024-12-25 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099824', 'tblTempVendorCDR_20' ) start [2024-12-25 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099824', 'tblTempVendorCDR_20' ) end [2024-12-25 13:28:18] Production.INFO: ProcessCDR(1,14099824,1,1,2) [2024-12-25 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099824', 'tblTempUsageDetail_20' ) start [2024-12-25 13:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099824', 'tblTempUsageDetail_20' ) end [2024-12-25 13:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:28:21] Production.INFO: ==22968== Releasing lock... [2024-12-25 13:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:28:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-25 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:29:05 [end_date_ymd] => 2024-12-25 13:29:05 [RateCDR] => 1 ) [2024-12-25 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:29:05' and `end` < '2024-12-25 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:29:19] Production.INFO: count ==1068 [2024-12-25 13:29:20] Production.ERROR: pbx CDR StartTime 2024-12-25 10:29:05 - End Time 2024-12-25 13:29:05 [2024-12-25 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099829', 'tblTempUsageDetail_20' ) start [2024-12-25 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099829', 'tblTempUsageDetail_20' ) end [2024-12-25 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099829', 'tblTempVendorCDR_20' ) start [2024-12-25 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099829', 'tblTempVendorCDR_20' ) end [2024-12-25 13:29:20] Production.INFO: ProcessCDR(1,14099829,1,1,2) [2024-12-25 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099829', 'tblTempUsageDetail_20' ) start [2024-12-25 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099829', 'tblTempUsageDetail_20' ) end [2024-12-25 13:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:29:23] Production.INFO: ==23056== Releasing lock... [2024-12-25 13:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:29:23] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:30:05 [end_date_ymd] => 2024-12-25 13:30:05 [RateCDR] => 1 ) [2024-12-25 13: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-25 10:30:05' and `end` < '2024-12-25 13: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-25 13:30:18] Production.INFO: count ==1068 [2024-12-25 13:30:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:30:05 - End Time 2024-12-25 13:30:05 [2024-12-25 13:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099835', 'tblTempUsageDetail_20' ) start [2024-12-25 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099835', 'tblTempUsageDetail_20' ) end [2024-12-25 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099835', 'tblTempVendorCDR_20' ) start [2024-12-25 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099835', 'tblTempVendorCDR_20' ) end [2024-12-25 13:30:18] Production.INFO: ProcessCDR(1,14099835,1,1,2) [2024-12-25 13:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099835', 'tblTempUsageDetail_20' ) start [2024-12-25 13:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099835', 'tblTempUsageDetail_20' ) end [2024-12-25 13:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:30:21] Production.INFO: ==23151== Releasing lock... [2024-12-25 13:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:30:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-25 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:31:05 [end_date_ymd] => 2024-12-25 13:31:05 [RateCDR] => 1 ) [2024-12-25 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:31:05' and `end` < '2024-12-25 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:31:19] Production.INFO: count ==1107 [2024-12-25 13:31:19] Production.ERROR: pbx CDR StartTime 2024-12-25 10:31:05 - End Time 2024-12-25 13:31:05 [2024-12-25 13:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099840', 'tblTempUsageDetail_20' ) start [2024-12-25 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099840', 'tblTempUsageDetail_20' ) end [2024-12-25 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099840', 'tblTempVendorCDR_20' ) start [2024-12-25 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099840', 'tblTempVendorCDR_20' ) end [2024-12-25 13:31:19] Production.INFO: ProcessCDR(1,14099840,1,1,2) [2024-12-25 13:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099840', 'tblTempUsageDetail_20' ) start [2024-12-25 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099840', 'tblTempUsageDetail_20' ) end [2024-12-25 13:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:31:24] Production.INFO: ==23247== Releasing lock... [2024-12-25 13:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:31:24] Production.INFO: 36.5 MB #Memory Used# [2024-12-25 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:32:06 [end_date_ymd] => 2024-12-25 13:32:06 [RateCDR] => 1 ) [2024-12-25 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:32:06' and `end` < '2024-12-25 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:32:18] Production.INFO: count ==1108 [2024-12-25 13:32:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:32:06 - End Time 2024-12-25 13:32:06 [2024-12-25 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099845', 'tblTempUsageDetail_20' ) start [2024-12-25 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099845', 'tblTempUsageDetail_20' ) end [2024-12-25 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099845', 'tblTempVendorCDR_20' ) start [2024-12-25 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099845', 'tblTempVendorCDR_20' ) end [2024-12-25 13:32:18] Production.INFO: ProcessCDR(1,14099845,1,1,2) [2024-12-25 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099845', 'tblTempUsageDetail_20' ) start [2024-12-25 13:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099845', 'tblTempUsageDetail_20' ) end [2024-12-25 13:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:32:21] Production.INFO: ==23342== Releasing lock... [2024-12-25 13:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:32:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-25 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:33:05 [end_date_ymd] => 2024-12-25 13:33:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:33:05' and `end` < '2024-12-25 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-25 13:33:17] Production.INFO: count ==1108 [2024-12-25 13:33:17] Production.ERROR: pbx CDR StartTime 2024-12-25 10:33:05 - End Time 2024-12-25 13:33:05 [2024-12-25 13:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099850', 'tblTempUsageDetail_20' ) start [2024-12-25 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099850', 'tblTempUsageDetail_20' ) end [2024-12-25 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099850', 'tblTempVendorCDR_20' ) start [2024-12-25 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099850', 'tblTempVendorCDR_20' ) end [2024-12-25 13:33:18] Production.INFO: ProcessCDR(1,14099850,1,1,2) [2024-12-25 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099850', 'tblTempUsageDetail_20' ) start [2024-12-25 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099850', 'tblTempUsageDetail_20' ) end [2024-12-25 13:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:33:22] Production.INFO: ==23431== Releasing lock... [2024-12-25 13:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:33:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:34:05 [end_date_ymd] => 2024-12-25 13:34:05 [RateCDR] => 1 ) [2024-12-25 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:34:05' and `end` < '2024-12-25 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:34:20] Production.INFO: count ==1107 [2024-12-25 13:34:20] Production.ERROR: pbx CDR StartTime 2024-12-25 10:34:05 - End Time 2024-12-25 13:34:05 [2024-12-25 13:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099855', 'tblTempUsageDetail_20' ) start [2024-12-25 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099855', 'tblTempUsageDetail_20' ) end [2024-12-25 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099855', 'tblTempVendorCDR_20' ) start [2024-12-25 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099855', 'tblTempVendorCDR_20' ) end [2024-12-25 13:34:20] Production.INFO: ProcessCDR(1,14099855,1,1,2) [2024-12-25 13:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099855', 'tblTempUsageDetail_20' ) start [2024-12-25 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099855', 'tblTempUsageDetail_20' ) end [2024-12-25 13:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:34:23] Production.INFO: ==23524== Releasing lock... [2024-12-25 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:34:23] Production.INFO: 36.25 MB #Memory Used# [2024-12-25 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:35:04 [end_date_ymd] => 2024-12-25 13:35:04 [RateCDR] => 1 ) [2024-12-25 13:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:35:04' and `end` < '2024-12-25 13:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:35:17] Production.INFO: count ==1123 [2024-12-25 13:35:17] Production.ERROR: pbx CDR StartTime 2024-12-25 10:35:04 - End Time 2024-12-25 13:35:04 [2024-12-25 13:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099860', 'tblTempUsageDetail_20' ) start [2024-12-25 13:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099860', 'tblTempUsageDetail_20' ) end [2024-12-25 13:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099860', 'tblTempVendorCDR_20' ) start [2024-12-25 13:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099860', 'tblTempVendorCDR_20' ) end [2024-12-25 13:35:17] Production.INFO: ProcessCDR(1,14099860,1,1,2) [2024-12-25 13:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099860', 'tblTempUsageDetail_20' ) start [2024-12-25 13:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099860', 'tblTempUsageDetail_20' ) end [2024-12-25 13:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:35:20] Production.INFO: ==23617== Releasing lock... [2024-12-25 13:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:35:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:36:05 [end_date_ymd] => 2024-12-25 13:36:05 [RateCDR] => 1 ) [2024-12-25 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:36:05' and `end` < '2024-12-25 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:36:18] Production.INFO: count ==1133 [2024-12-25 13:36:19] Production.ERROR: pbx CDR StartTime 2024-12-25 10:36:05 - End Time 2024-12-25 13:36:05 [2024-12-25 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099865', 'tblTempUsageDetail_20' ) start [2024-12-25 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099865', 'tblTempUsageDetail_20' ) end [2024-12-25 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099865', 'tblTempVendorCDR_20' ) start [2024-12-25 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099865', 'tblTempVendorCDR_20' ) end [2024-12-25 13:36:19] Production.INFO: ProcessCDR(1,14099865,1,1,2) [2024-12-25 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099865', 'tblTempUsageDetail_20' ) start [2024-12-25 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099865', 'tblTempUsageDetail_20' ) end [2024-12-25 13:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:36:23] Production.INFO: ==23713== Releasing lock... [2024-12-25 13:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:36:23] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:37:05 [end_date_ymd] => 2024-12-25 13:37:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:37:05' and `end` < '2024-12-25 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-25 13:37:19] Production.INFO: count ==1132 [2024-12-25 13:37:19] Production.ERROR: pbx CDR StartTime 2024-12-25 10:37:05 - End Time 2024-12-25 13:37:05 [2024-12-25 13:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099870', 'tblTempUsageDetail_20' ) start [2024-12-25 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099870', 'tblTempUsageDetail_20' ) end [2024-12-25 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099870', 'tblTempVendorCDR_20' ) start [2024-12-25 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099870', 'tblTempVendorCDR_20' ) end [2024-12-25 13:37:19] Production.INFO: ProcessCDR(1,14099870,1,1,2) [2024-12-25 13:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099870', 'tblTempUsageDetail_20' ) start [2024-12-25 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099870', 'tblTempUsageDetail_20' ) end [2024-12-25 13:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:37:22] Production.INFO: ==23807== Releasing lock... [2024-12-25 13:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:37:22] Production.INFO: 37 MB #Memory Used# [2024-12-25 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:38:05 [end_date_ymd] => 2024-12-25 13:38:05 [RateCDR] => 1 ) [2024-12-25 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:38:05' and `end` < '2024-12-25 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:38:18] Production.INFO: count ==1133 [2024-12-25 13:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:38:05 - End Time 2024-12-25 13:38:05 [2024-12-25 13:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099875', 'tblTempUsageDetail_20' ) start [2024-12-25 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099875', 'tblTempUsageDetail_20' ) end [2024-12-25 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099875', 'tblTempVendorCDR_20' ) start [2024-12-25 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099875', 'tblTempVendorCDR_20' ) end [2024-12-25 13:38:18] Production.INFO: ProcessCDR(1,14099875,1,1,2) [2024-12-25 13:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099875', 'tblTempUsageDetail_20' ) start [2024-12-25 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099875', 'tblTempUsageDetail_20' ) end [2024-12-25 13:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:38:22] Production.INFO: ==23902== Releasing lock... [2024-12-25 13:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:38:22] Production.INFO: 37 MB #Memory Used# [2024-12-25 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:39:05 [end_date_ymd] => 2024-12-25 13:39:05 [RateCDR] => 1 ) [2024-12-25 13: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-25 10:39:05' and `end` < '2024-12-25 13: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-25 13:39:17] Production.INFO: count ==1135 [2024-12-25 13:39:17] Production.ERROR: pbx CDR StartTime 2024-12-25 10:39:05 - End Time 2024-12-25 13:39:05 [2024-12-25 13:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099880', 'tblTempUsageDetail_20' ) start [2024-12-25 13:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099880', 'tblTempUsageDetail_20' ) end [2024-12-25 13:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099880', 'tblTempVendorCDR_20' ) start [2024-12-25 13:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099880', 'tblTempVendorCDR_20' ) end [2024-12-25 13:39:17] Production.INFO: ProcessCDR(1,14099880,1,1,2) [2024-12-25 13:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099880', 'tblTempUsageDetail_20' ) start [2024-12-25 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099880', 'tblTempUsageDetail_20' ) end [2024-12-25 13:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:39:22] Production.INFO: ==23988== Releasing lock... [2024-12-25 13:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:39:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:40:05 [end_date_ymd] => 2024-12-25 13:40:05 [RateCDR] => 1 ) [2024-12-25 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:40:05' and `end` < '2024-12-25 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:40:18] Production.INFO: count ==1134 [2024-12-25 13:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:40:05 - End Time 2024-12-25 13:40:05 [2024-12-25 13:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099885', 'tblTempUsageDetail_20' ) start [2024-12-25 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099885', 'tblTempUsageDetail_20' ) end [2024-12-25 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099885', 'tblTempVendorCDR_20' ) start [2024-12-25 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099885', 'tblTempVendorCDR_20' ) end [2024-12-25 13:40:18] Production.INFO: ProcessCDR(1,14099885,1,1,2) [2024-12-25 13:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099885', 'tblTempUsageDetail_20' ) start [2024-12-25 13:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099885', 'tblTempUsageDetail_20' ) end [2024-12-25 13:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:40:21] Production.INFO: ==24124== Releasing lock... [2024-12-25 13:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:40:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-25 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:41:04 [end_date_ymd] => 2024-12-25 13:41:04 [RateCDR] => 1 ) [2024-12-25 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-25 10:41:04' and `end` < '2024-12-25 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-25 13:41:17] Production.INFO: count ==1155 [2024-12-25 13:41:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:41:04 - End Time 2024-12-25 13:41:04 [2024-12-25 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099891', 'tblTempUsageDetail_20' ) start [2024-12-25 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099891', 'tblTempUsageDetail_20' ) end [2024-12-25 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099891', 'tblTempVendorCDR_20' ) start [2024-12-25 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099891', 'tblTempVendorCDR_20' ) end [2024-12-25 13:41:18] Production.INFO: ProcessCDR(1,14099891,1,1,2) [2024-12-25 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099891', 'tblTempUsageDetail_20' ) start [2024-12-25 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099891', 'tblTempUsageDetail_20' ) end [2024-12-25 13:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:41:21] Production.INFO: ==24220== Releasing lock... [2024-12-25 13:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:41:21] Production.INFO: 37 MB #Memory Used# [2024-12-25 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:42:05 [end_date_ymd] => 2024-12-25 13:42:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:42:05' and `end` < '2024-12-25 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-25 13:42:18] Production.INFO: count ==1166 [2024-12-25 13:42:19] Production.ERROR: pbx CDR StartTime 2024-12-25 10:42:05 - End Time 2024-12-25 13:42:05 [2024-12-25 13:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099896', 'tblTempUsageDetail_20' ) start [2024-12-25 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099896', 'tblTempUsageDetail_20' ) end [2024-12-25 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099896', 'tblTempVendorCDR_20' ) start [2024-12-25 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099896', 'tblTempVendorCDR_20' ) end [2024-12-25 13:42:19] Production.INFO: ProcessCDR(1,14099896,1,1,2) [2024-12-25 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099896', 'tblTempUsageDetail_20' ) start [2024-12-25 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099896', 'tblTempUsageDetail_20' ) end [2024-12-25 13:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:42:22] Production.INFO: ==24312== Releasing lock... [2024-12-25 13:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:42:22] Production.INFO: 37 MB #Memory Used# [2024-12-25 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:43:04 [end_date_ymd] => 2024-12-25 13:43:04 [RateCDR] => 1 ) [2024-12-25 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-25 10:43:04' and `end` < '2024-12-25 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-25 13:43:18] Production.INFO: count ==1167 [2024-12-25 13:43:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:43:04 - End Time 2024-12-25 13:43:04 [2024-12-25 13:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099901', 'tblTempUsageDetail_20' ) start [2024-12-25 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099901', 'tblTempUsageDetail_20' ) end [2024-12-25 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099901', 'tblTempVendorCDR_20' ) start [2024-12-25 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099901', 'tblTempVendorCDR_20' ) end [2024-12-25 13:43:18] Production.INFO: ProcessCDR(1,14099901,1,1,2) [2024-12-25 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099901', 'tblTempUsageDetail_20' ) start [2024-12-25 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099901', 'tblTempUsageDetail_20' ) end [2024-12-25 13:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:43:21] Production.INFO: ==24404== Releasing lock... [2024-12-25 13:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:43:21] Production.INFO: 37 MB #Memory Used# [2024-12-25 13:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:44:04 [end_date_ymd] => 2024-12-25 13:44:04 [RateCDR] => 1 ) [2024-12-25 13: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-25 10:44:04' and `end` < '2024-12-25 13: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-25 13:44:18] Production.INFO: count ==1187 [2024-12-25 13:44:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:44:04 - End Time 2024-12-25 13:44:04 [2024-12-25 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099906', 'tblTempUsageDetail_20' ) start [2024-12-25 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099906', 'tblTempUsageDetail_20' ) end [2024-12-25 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099906', 'tblTempVendorCDR_20' ) start [2024-12-25 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099906', 'tblTempVendorCDR_20' ) end [2024-12-25 13:44:18] Production.INFO: ProcessCDR(1,14099906,1,1,2) [2024-12-25 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099906', 'tblTempUsageDetail_20' ) start [2024-12-25 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099906', 'tblTempUsageDetail_20' ) end [2024-12-25 13:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:44:22] Production.INFO: ==24495== Releasing lock... [2024-12-25 13:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:44:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:45:05 [end_date_ymd] => 2024-12-25 13:45:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:45:05' and `end` < '2024-12-25 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-25 13:45:17] Production.INFO: count ==1187 [2024-12-25 13:45:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:45:05 - End Time 2024-12-25 13:45:05 [2024-12-25 13:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099911', 'tblTempUsageDetail_20' ) start [2024-12-25 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099911', 'tblTempUsageDetail_20' ) end [2024-12-25 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099911', 'tblTempVendorCDR_20' ) start [2024-12-25 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099911', 'tblTempVendorCDR_20' ) end [2024-12-25 13:45:18] Production.INFO: ProcessCDR(1,14099911,1,1,2) [2024-12-25 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099911', 'tblTempUsageDetail_20' ) start [2024-12-25 13:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099911', 'tblTempUsageDetail_20' ) end [2024-12-25 13:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:45:21] Production.INFO: ==24590== Releasing lock... [2024-12-25 13:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:45:21] Production.INFO: 37 MB #Memory Used# [2024-12-25 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:46:04 [end_date_ymd] => 2024-12-25 13:46:04 [RateCDR] => 1 ) [2024-12-25 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-25 10:46:04' and `end` < '2024-12-25 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-25 13:46:17] Production.INFO: count ==1181 [2024-12-25 13:46:17] Production.ERROR: pbx CDR StartTime 2024-12-25 10:46:04 - End Time 2024-12-25 13:46:04 [2024-12-25 13:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099916', 'tblTempUsageDetail_20' ) start [2024-12-25 13:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099916', 'tblTempUsageDetail_20' ) end [2024-12-25 13:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099916', 'tblTempVendorCDR_20' ) start [2024-12-25 13:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099916', 'tblTempVendorCDR_20' ) end [2024-12-25 13:46:17] Production.INFO: ProcessCDR(1,14099916,1,1,2) [2024-12-25 13:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099916', 'tblTempUsageDetail_20' ) start [2024-12-25 13:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099916', 'tblTempUsageDetail_20' ) end [2024-12-25 13:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:46:20] Production.INFO: ==24681== Releasing lock... [2024-12-25 13:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:46:20] Production.INFO: 37 MB #Memory Used# [2024-12-25 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:47:06 [end_date_ymd] => 2024-12-25 13:47:06 [RateCDR] => 1 ) [2024-12-25 13:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:47:06' and `end` < '2024-12-25 13:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:47:18] Production.INFO: count ==1171 [2024-12-25 13:47:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:47:06 - End Time 2024-12-25 13:47:06 [2024-12-25 13:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099921', 'tblTempUsageDetail_20' ) start [2024-12-25 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099921', 'tblTempUsageDetail_20' ) end [2024-12-25 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099921', 'tblTempVendorCDR_20' ) start [2024-12-25 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099921', 'tblTempVendorCDR_20' ) end [2024-12-25 13:47:18] Production.INFO: ProcessCDR(1,14099921,1,1,2) [2024-12-25 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099921', 'tblTempUsageDetail_20' ) start [2024-12-25 13:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099921', 'tblTempUsageDetail_20' ) end [2024-12-25 13:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:47:21] Production.INFO: ==24785== Releasing lock... [2024-12-25 13:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:47:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 13:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:48:04 [end_date_ymd] => 2024-12-25 13:48:04 [RateCDR] => 1 ) [2024-12-25 13: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-25 10:48:04' and `end` < '2024-12-25 13: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-25 13:48:18] Production.INFO: count ==1164 [2024-12-25 13:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:48:04 - End Time 2024-12-25 13:48:04 [2024-12-25 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099926', 'tblTempUsageDetail_20' ) start [2024-12-25 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099926', 'tblTempUsageDetail_20' ) end [2024-12-25 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099926', 'tblTempVendorCDR_20' ) start [2024-12-25 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099926', 'tblTempVendorCDR_20' ) end [2024-12-25 13:48:18] Production.INFO: ProcessCDR(1,14099926,1,1,2) [2024-12-25 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099926', 'tblTempUsageDetail_20' ) start [2024-12-25 13:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099926', 'tblTempUsageDetail_20' ) end [2024-12-25 13:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:48:21] Production.INFO: ==24873== Releasing lock... [2024-12-25 13:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:48:21] Production.INFO: 37 MB #Memory Used# [2024-12-25 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:49:05 [end_date_ymd] => 2024-12-25 13:49:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:49:05' and `end` < '2024-12-25 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-25 13:49:20] Production.INFO: count ==1158 [2024-12-25 13:49:20] Production.ERROR: pbx CDR StartTime 2024-12-25 10:49:05 - End Time 2024-12-25 13:49:05 [2024-12-25 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099931', 'tblTempUsageDetail_20' ) start [2024-12-25 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099931', 'tblTempUsageDetail_20' ) end [2024-12-25 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099931', 'tblTempVendorCDR_20' ) start [2024-12-25 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099931', 'tblTempVendorCDR_20' ) end [2024-12-25 13:49:20] Production.INFO: ProcessCDR(1,14099931,1,1,2) [2024-12-25 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099931', 'tblTempUsageDetail_20' ) start [2024-12-25 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099931', 'tblTempUsageDetail_20' ) end [2024-12-25 13:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:49:23] Production.INFO: ==24965== Releasing lock... [2024-12-25 13:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:49:23] Production.INFO: 37 MB #Memory Used# [2024-12-25 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:50:05 [end_date_ymd] => 2024-12-25 13:50:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:50:05' and `end` < '2024-12-25 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-25 13:50:18] Production.INFO: count ==1151 [2024-12-25 13:50:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:50:05 - End Time 2024-12-25 13:50:05 [2024-12-25 13:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099937', 'tblTempUsageDetail_20' ) start [2024-12-25 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099937', 'tblTempUsageDetail_20' ) end [2024-12-25 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099937', 'tblTempVendorCDR_20' ) start [2024-12-25 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099937', 'tblTempVendorCDR_20' ) end [2024-12-25 13:50:18] Production.INFO: ProcessCDR(1,14099937,1,1,2) [2024-12-25 13:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099937', 'tblTempUsageDetail_20' ) start [2024-12-25 13:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099937', 'tblTempUsageDetail_20' ) end [2024-12-25 13:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:50:21] Production.INFO: ==25061== Releasing lock... [2024-12-25 13:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:50:21] Production.INFO: 37 MB #Memory Used# [2024-12-25 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:51:05 [end_date_ymd] => 2024-12-25 13:51:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:51:05' and `end` < '2024-12-25 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-25 13:51:18] Production.INFO: count ==1172 [2024-12-25 13:51:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:51:05 - End Time 2024-12-25 13:51:05 [2024-12-25 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099942', 'tblTempUsageDetail_20' ) start [2024-12-25 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099942', 'tblTempUsageDetail_20' ) end [2024-12-25 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099942', 'tblTempVendorCDR_20' ) start [2024-12-25 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099942', 'tblTempVendorCDR_20' ) end [2024-12-25 13:51:18] Production.INFO: ProcessCDR(1,14099942,1,1,2) [2024-12-25 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099942', 'tblTempUsageDetail_20' ) start [2024-12-25 13:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099942', 'tblTempUsageDetail_20' ) end [2024-12-25 13:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:51:21] Production.INFO: ==25157== Releasing lock... [2024-12-25 13:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:51:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 13:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:52:04 [end_date_ymd] => 2024-12-25 13:52:04 [RateCDR] => 1 ) [2024-12-25 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-25 10:52:04' and `end` < '2024-12-25 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-25 13:52:17] Production.INFO: count ==1167 [2024-12-25 13:52:17] Production.ERROR: pbx CDR StartTime 2024-12-25 10:52:04 - End Time 2024-12-25 13:52:04 [2024-12-25 13:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099947', 'tblTempUsageDetail_20' ) start [2024-12-25 13:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099947', 'tblTempUsageDetail_20' ) end [2024-12-25 13:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099947', 'tblTempVendorCDR_20' ) start [2024-12-25 13:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099947', 'tblTempVendorCDR_20' ) end [2024-12-25 13:52:17] Production.INFO: ProcessCDR(1,14099947,1,1,2) [2024-12-25 13:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099947', 'tblTempUsageDetail_20' ) start [2024-12-25 13:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099947', 'tblTempUsageDetail_20' ) end [2024-12-25 13:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:52:20] Production.INFO: ==25247== Releasing lock... [2024-12-25 13:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:52:20] Production.INFO: 37 MB #Memory Used# [2024-12-25 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:53:05 [end_date_ymd] => 2024-12-25 13:53:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:53:05' and `end` < '2024-12-25 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-25 13:53:20] Production.INFO: count ==1160 [2024-12-25 13:53:20] Production.ERROR: pbx CDR StartTime 2024-12-25 10:53:05 - End Time 2024-12-25 13:53:05 [2024-12-25 13:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099952', 'tblTempUsageDetail_20' ) start [2024-12-25 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099952', 'tblTempUsageDetail_20' ) end [2024-12-25 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099952', 'tblTempVendorCDR_20' ) start [2024-12-25 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099952', 'tblTempVendorCDR_20' ) end [2024-12-25 13:53:20] Production.INFO: ProcessCDR(1,14099952,1,1,2) [2024-12-25 13:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099952', 'tblTempUsageDetail_20' ) start [2024-12-25 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099952', 'tblTempUsageDetail_20' ) end [2024-12-25 13:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:53:23] Production.INFO: ==25342== Releasing lock... [2024-12-25 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:53:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:54:05 [end_date_ymd] => 2024-12-25 13:54:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:54:05' and `end` < '2024-12-25 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-25 13:54:18] Production.INFO: count ==1155 [2024-12-25 13:54:19] Production.ERROR: pbx CDR StartTime 2024-12-25 10:54:05 - End Time 2024-12-25 13:54:05 [2024-12-25 13:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099957', 'tblTempUsageDetail_20' ) start [2024-12-25 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099957', 'tblTempUsageDetail_20' ) end [2024-12-25 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099957', 'tblTempVendorCDR_20' ) start [2024-12-25 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099957', 'tblTempVendorCDR_20' ) end [2024-12-25 13:54:19] Production.INFO: ProcessCDR(1,14099957,1,1,2) [2024-12-25 13:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099957', 'tblTempUsageDetail_20' ) start [2024-12-25 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099957', 'tblTempUsageDetail_20' ) end [2024-12-25 13:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:54:22] Production.INFO: ==25444== Releasing lock... [2024-12-25 13:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:54:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 13:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:55:04 [end_date_ymd] => 2024-12-25 13:55:04 [RateCDR] => 1 ) [2024-12-25 13:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:55:04' and `end` < '2024-12-25 13:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:55:18] Production.INFO: count ==1146 [2024-12-25 13:55:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:55:04 - End Time 2024-12-25 13:55:04 [2024-12-25 13:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099962', 'tblTempUsageDetail_20' ) start [2024-12-25 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099962', 'tblTempUsageDetail_20' ) end [2024-12-25 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099962', 'tblTempVendorCDR_20' ) start [2024-12-25 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099962', 'tblTempVendorCDR_20' ) end [2024-12-25 13:55:18] Production.INFO: ProcessCDR(1,14099962,1,1,2) [2024-12-25 13:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099962', 'tblTempUsageDetail_20' ) start [2024-12-25 13:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099962', 'tblTempUsageDetail_20' ) end [2024-12-25 13:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:55:21] Production.INFO: ==25538== Releasing lock... [2024-12-25 13:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:55:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:56:05 [end_date_ymd] => 2024-12-25 13:56:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:56:05' and `end` < '2024-12-25 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-25 13:56:20] Production.INFO: count ==1143 [2024-12-25 13:56:21] Production.ERROR: pbx CDR StartTime 2024-12-25 10:56:05 - End Time 2024-12-25 13:56:05 [2024-12-25 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099967', 'tblTempUsageDetail_20' ) start [2024-12-25 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099967', 'tblTempUsageDetail_20' ) end [2024-12-25 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099967', 'tblTempVendorCDR_20' ) start [2024-12-25 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099967', 'tblTempVendorCDR_20' ) end [2024-12-25 13:56:21] Production.INFO: ProcessCDR(1,14099967,1,1,2) [2024-12-25 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099967', 'tblTempUsageDetail_20' ) start [2024-12-25 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099967', 'tblTempUsageDetail_20' ) end [2024-12-25 13:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:56:24] Production.INFO: ==25670== Releasing lock... [2024-12-25 13:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:56:24] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:57:05 [end_date_ymd] => 2024-12-25 13:57:05 [RateCDR] => 1 ) [2024-12-25 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:57:05' and `end` < '2024-12-25 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:57:17] Production.INFO: count ==1139 [2024-12-25 13:57:17] Production.ERROR: pbx CDR StartTime 2024-12-25 10:57:05 - End Time 2024-12-25 13:57:05 [2024-12-25 13:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099972', 'tblTempUsageDetail_20' ) start [2024-12-25 13:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099972', 'tblTempUsageDetail_20' ) end [2024-12-25 13:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099972', 'tblTempVendorCDR_20' ) start [2024-12-25 13:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099972', 'tblTempVendorCDR_20' ) end [2024-12-25 13:57:17] Production.INFO: ProcessCDR(1,14099972,1,1,2) [2024-12-25 13:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099972', 'tblTempUsageDetail_20' ) start [2024-12-25 13:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099972', 'tblTempUsageDetail_20' ) end [2024-12-25 13:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:57:20] Production.INFO: ==25763== Releasing lock... [2024-12-25 13:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:57:20] Production.INFO: 37 MB #Memory Used# [2024-12-25 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:58:05 [end_date_ymd] => 2024-12-25 13:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 10:58:05' and `end` < '2024-12-25 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-25 13:58:19] Production.INFO: count ==1136 [2024-12-25 13:58:19] Production.ERROR: pbx CDR StartTime 2024-12-25 10:58:05 - End Time 2024-12-25 13:58:05 [2024-12-25 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099977', 'tblTempUsageDetail_20' ) start [2024-12-25 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099977', 'tblTempUsageDetail_20' ) end [2024-12-25 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099977', 'tblTempVendorCDR_20' ) start [2024-12-25 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099977', 'tblTempVendorCDR_20' ) end [2024-12-25 13:58:19] Production.INFO: ProcessCDR(1,14099977,1,1,2) [2024-12-25 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099977', 'tblTempUsageDetail_20' ) start [2024-12-25 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099977', 'tblTempUsageDetail_20' ) end [2024-12-25 13:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:58:23] Production.INFO: ==25854== Releasing lock... [2024-12-25 13:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:58:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 10:59:05 [end_date_ymd] => 2024-12-25 13:59:05 [RateCDR] => 1 ) [2024-12-25 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 10:59:05' and `end` < '2024-12-25 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 13:59:18] Production.INFO: count ==1139 [2024-12-25 13:59:18] Production.ERROR: pbx CDR StartTime 2024-12-25 10:59:05 - End Time 2024-12-25 13:59:05 [2024-12-25 13:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099982', 'tblTempUsageDetail_20' ) start [2024-12-25 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099982', 'tblTempUsageDetail_20' ) end [2024-12-25 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099982', 'tblTempVendorCDR_20' ) start [2024-12-25 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099982', 'tblTempVendorCDR_20' ) end [2024-12-25 13:59:18] Production.INFO: ProcessCDR(1,14099982,1,1,2) [2024-12-25 13:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 13:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 13:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099982', 'tblTempUsageDetail_20' ) start [2024-12-25 13:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099982', 'tblTempUsageDetail_20' ) end [2024-12-25 13:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 13:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 13:59:21] Production.INFO: ==25950== Releasing lock... [2024-12-25 13:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 13:59:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:00:05 [end_date_ymd] => 2024-12-25 14:00:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:00:05' and `end` < '2024-12-25 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-25 14:00:18] Production.INFO: count ==1142 [2024-12-25 14:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:00:05 - End Time 2024-12-25 14:00:05 [2024-12-25 14:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099988', 'tblTempUsageDetail_20' ) start [2024-12-25 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099988', 'tblTempUsageDetail_20' ) end [2024-12-25 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099988', 'tblTempVendorCDR_20' ) start [2024-12-25 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099988', 'tblTempVendorCDR_20' ) end [2024-12-25 14:00:18] Production.INFO: ProcessCDR(1,14099988,1,1,2) [2024-12-25 14:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099988', 'tblTempUsageDetail_20' ) start [2024-12-25 14:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099988', 'tblTempUsageDetail_20' ) end [2024-12-25 14:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:00:21] Production.INFO: ==26053== Releasing lock... [2024-12-25 14:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:00:21] Production.INFO: 37 MB #Memory Used# [2024-12-25 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:01:05 [end_date_ymd] => 2024-12-25 14:01:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:01:05' and `end` < '2024-12-25 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-25 14:01:18] Production.INFO: count ==1166 [2024-12-25 14:01:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:01:05 - End Time 2024-12-25 14:01:05 [2024-12-25 14:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099993', 'tblTempUsageDetail_20' ) start [2024-12-25 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099993', 'tblTempUsageDetail_20' ) end [2024-12-25 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099993', 'tblTempVendorCDR_20' ) start [2024-12-25 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099993', 'tblTempVendorCDR_20' ) end [2024-12-25 14:01:18] Production.INFO: ProcessCDR(1,14099993,1,1,2) [2024-12-25 14:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099993', 'tblTempUsageDetail_20' ) start [2024-12-25 14:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099993', 'tblTempUsageDetail_20' ) end [2024-12-25 14:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:01:21] Production.INFO: ==26166== Releasing lock... [2024-12-25 14:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:01:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-25 14:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:02:04 [end_date_ymd] => 2024-12-25 14:02:04 [RateCDR] => 1 ) [2024-12-25 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-25 11:02:04' and `end` < '2024-12-25 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-25 14:02:17] Production.INFO: count ==1173 [2024-12-25 14:02:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:02:04 - End Time 2024-12-25 14:02:04 [2024-12-25 14:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099998', 'tblTempUsageDetail_20' ) start [2024-12-25 14:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14099998', 'tblTempUsageDetail_20' ) end [2024-12-25 14:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099998', 'tblTempVendorCDR_20' ) start [2024-12-25 14:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14099998', 'tblTempVendorCDR_20' ) end [2024-12-25 14:02:17] Production.INFO: ProcessCDR(1,14099998,1,1,2) [2024-12-25 14:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14099998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14099998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14099998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14099998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099998', 'tblTempUsageDetail_20' ) start [2024-12-25 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14099998', 'tblTempUsageDetail_20' ) end [2024-12-25 14:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:02:21] Production.INFO: ==26260== Releasing lock... [2024-12-25 14:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:02:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:03:05 [end_date_ymd] => 2024-12-25 14:03:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:03:05' and `end` < '2024-12-25 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-25 14:03:17] Production.INFO: count ==1174 [2024-12-25 14:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:03:05 - End Time 2024-12-25 14:03:05 [2024-12-25 14:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100003', 'tblTempUsageDetail_20' ) start [2024-12-25 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100003', 'tblTempUsageDetail_20' ) end [2024-12-25 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100003', 'tblTempVendorCDR_20' ) start [2024-12-25 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100003', 'tblTempVendorCDR_20' ) end [2024-12-25 14:03:18] Production.INFO: ProcessCDR(1,14100003,1,1,2) [2024-12-25 14:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100003', 'tblTempUsageDetail_20' ) start [2024-12-25 14:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100003', 'tblTempUsageDetail_20' ) end [2024-12-25 14:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:03:21] Production.INFO: ==26350== Releasing lock... [2024-12-25 14:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:03:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-25 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:04:05 [end_date_ymd] => 2024-12-25 14:04:05 [RateCDR] => 1 ) [2024-12-25 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:04:05' and `end` < '2024-12-25 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:04:17] Production.INFO: count ==1185 [2024-12-25 14:04:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:04:05 - End Time 2024-12-25 14:04:05 [2024-12-25 14:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100008', 'tblTempUsageDetail_20' ) start [2024-12-25 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100008', 'tblTempUsageDetail_20' ) end [2024-12-25 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100008', 'tblTempVendorCDR_20' ) start [2024-12-25 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100008', 'tblTempVendorCDR_20' ) end [2024-12-25 14:04:18] Production.INFO: ProcessCDR(1,14100008,1,1,2) [2024-12-25 14:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100008', 'tblTempUsageDetail_20' ) start [2024-12-25 14:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100008', 'tblTempUsageDetail_20' ) end [2024-12-25 14:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:04:21] Production.INFO: ==26442== Releasing lock... [2024-12-25 14:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:04:21] Production.INFO: 37 MB #Memory Used# [2024-12-25 14:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:05:04 [end_date_ymd] => 2024-12-25 14:05:04 [RateCDR] => 1 ) [2024-12-25 14: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-25 11:05:04' and `end` < '2024-12-25 14: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-25 14:05:17] Production.INFO: count ==1198 [2024-12-25 14:05:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:05:04 - End Time 2024-12-25 14:05:04 [2024-12-25 14:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100013', 'tblTempUsageDetail_20' ) start [2024-12-25 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100013', 'tblTempUsageDetail_20' ) end [2024-12-25 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100013', 'tblTempVendorCDR_20' ) start [2024-12-25 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100013', 'tblTempVendorCDR_20' ) end [2024-12-25 14:05:17] Production.INFO: ProcessCDR(1,14100013,1,1,2) [2024-12-25 14:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100013', 'tblTempUsageDetail_20' ) start [2024-12-25 14:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100013', 'tblTempUsageDetail_20' ) end [2024-12-25 14:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:05:20] Production.INFO: ==26532== Releasing lock... [2024-12-25 14:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:05:20] Production.INFO: 37 MB #Memory Used# [2024-12-25 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:06:05 [end_date_ymd] => 2024-12-25 14:06:05 [RateCDR] => 1 ) [2024-12-25 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:06:05' and `end` < '2024-12-25 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:06:17] Production.INFO: count ==1211 [2024-12-25 14:06:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:06:05 - End Time 2024-12-25 14:06:05 [2024-12-25 14:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100018', 'tblTempUsageDetail_20' ) start [2024-12-25 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100018', 'tblTempUsageDetail_20' ) end [2024-12-25 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100018', 'tblTempVendorCDR_20' ) start [2024-12-25 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100018', 'tblTempVendorCDR_20' ) end [2024-12-25 14:06:18] Production.INFO: ProcessCDR(1,14100018,1,1,2) [2024-12-25 14:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100018', 'tblTempUsageDetail_20' ) start [2024-12-25 14:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100018', 'tblTempUsageDetail_20' ) end [2024-12-25 14:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:06:21] Production.INFO: ==26631== Releasing lock... [2024-12-25 14:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:06:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 14:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:07:04 [end_date_ymd] => 2024-12-25 14:07:04 [RateCDR] => 1 ) [2024-12-25 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-25 11:07:04' and `end` < '2024-12-25 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-25 14:07:16] Production.INFO: count ==1223 [2024-12-25 14:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:07:04 - End Time 2024-12-25 14:07:04 [2024-12-25 14:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100023', 'tblTempUsageDetail_20' ) start [2024-12-25 14:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100023', 'tblTempUsageDetail_20' ) end [2024-12-25 14:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100023', 'tblTempVendorCDR_20' ) start [2024-12-25 14:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100023', 'tblTempVendorCDR_20' ) end [2024-12-25 14:07:17] Production.INFO: ProcessCDR(1,14100023,1,1,2) [2024-12-25 14:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100023', 'tblTempUsageDetail_20' ) start [2024-12-25 14:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100023', 'tblTempUsageDetail_20' ) end [2024-12-25 14:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:07:20] Production.INFO: ==26720== Releasing lock... [2024-12-25 14:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:07:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:08:05 [end_date_ymd] => 2024-12-25 14:08:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:08:05' and `end` < '2024-12-25 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-25 14:08:17] Production.INFO: count ==1233 [2024-12-25 14:08:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:08:05 - End Time 2024-12-25 14:08:05 [2024-12-25 14:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100028', 'tblTempUsageDetail_20' ) start [2024-12-25 14:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100028', 'tblTempUsageDetail_20' ) end [2024-12-25 14:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100028', 'tblTempVendorCDR_20' ) start [2024-12-25 14:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100028', 'tblTempVendorCDR_20' ) end [2024-12-25 14:08:17] Production.INFO: ProcessCDR(1,14100028,1,1,2) [2024-12-25 14:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100028', 'tblTempUsageDetail_20' ) start [2024-12-25 14:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100028', 'tblTempUsageDetail_20' ) end [2024-12-25 14:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:08:21] Production.INFO: ==26802== Releasing lock... [2024-12-25 14:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:08:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-25 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:09:05 [end_date_ymd] => 2024-12-25 14:09:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:09:05' and `end` < '2024-12-25 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-25 14:09:19] Production.INFO: count ==1241 [2024-12-25 14:09:19] Production.ERROR: pbx CDR StartTime 2024-12-25 11:09:05 - End Time 2024-12-25 14:09:05 [2024-12-25 14:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100033', 'tblTempUsageDetail_20' ) start [2024-12-25 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100033', 'tblTempUsageDetail_20' ) end [2024-12-25 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100033', 'tblTempVendorCDR_20' ) start [2024-12-25 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100033', 'tblTempVendorCDR_20' ) end [2024-12-25 14:09:19] Production.INFO: ProcessCDR(1,14100033,1,1,2) [2024-12-25 14:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100033', 'tblTempUsageDetail_20' ) start [2024-12-25 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100033', 'tblTempUsageDetail_20' ) end [2024-12-25 14:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:09:22] Production.INFO: ==26899== Releasing lock... [2024-12-25 14:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:09:22] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:10:05 [end_date_ymd] => 2024-12-25 14:10:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:10:05' and `end` < '2024-12-25 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-25 14:10:18] Production.INFO: count ==1252 [2024-12-25 14:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:10:05 - End Time 2024-12-25 14:10:05 [2024-12-25 14:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100039', 'tblTempUsageDetail_20' ) start [2024-12-25 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100039', 'tblTempUsageDetail_20' ) end [2024-12-25 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100039', 'tblTempVendorCDR_20' ) start [2024-12-25 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100039', 'tblTempVendorCDR_20' ) end [2024-12-25 14:10:18] Production.INFO: ProcessCDR(1,14100039,1,1,2) [2024-12-25 14:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100039', 'tblTempUsageDetail_20' ) start [2024-12-25 14:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100039', 'tblTempUsageDetail_20' ) end [2024-12-25 14:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:10:21] Production.INFO: ==26991== Releasing lock... [2024-12-25 14:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:10:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:11:05 [end_date_ymd] => 2024-12-25 14:11:05 [RateCDR] => 1 ) [2024-12-25 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:11:05' and `end` < '2024-12-25 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:11:17] Production.INFO: count ==1290 [2024-12-25 14:11:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:11:05 - End Time 2024-12-25 14:11:05 [2024-12-25 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100044', 'tblTempUsageDetail_20' ) start [2024-12-25 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100044', 'tblTempUsageDetail_20' ) end [2024-12-25 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100044', 'tblTempVendorCDR_20' ) start [2024-12-25 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100044', 'tblTempVendorCDR_20' ) end [2024-12-25 14:11:18] Production.INFO: ProcessCDR(1,14100044,1,1,2) [2024-12-25 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100044', 'tblTempUsageDetail_20' ) start [2024-12-25 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100044', 'tblTempUsageDetail_20' ) end [2024-12-25 14:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:11:21] Production.INFO: ==27120== Releasing lock... [2024-12-25 14:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:11:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:12:04 [end_date_ymd] => 2024-12-25 14:12:04 [RateCDR] => 1 ) [2024-12-25 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-25 11:12:04' and `end` < '2024-12-25 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-25 14:12:17] Production.INFO: count ==1292 [2024-12-25 14:12:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:12:04 - End Time 2024-12-25 14:12:04 [2024-12-25 14:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100049', 'tblTempUsageDetail_20' ) start [2024-12-25 14:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100049', 'tblTempUsageDetail_20' ) end [2024-12-25 14:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100049', 'tblTempVendorCDR_20' ) start [2024-12-25 14:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100049', 'tblTempVendorCDR_20' ) end [2024-12-25 14:12:17] Production.INFO: ProcessCDR(1,14100049,1,1,2) [2024-12-25 14:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100049', 'tblTempUsageDetail_20' ) start [2024-12-25 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100049', 'tblTempUsageDetail_20' ) end [2024-12-25 14:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:12:22] Production.INFO: ==27208== Releasing lock... [2024-12-25 14:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:12:22] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:13:05 [end_date_ymd] => 2024-12-25 14:13:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:13:05' and `end` < '2024-12-25 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-25 14:13:18] Production.INFO: count ==1312 [2024-12-25 14:13:19] Production.ERROR: pbx CDR StartTime 2024-12-25 11:13:05 - End Time 2024-12-25 14:13:05 [2024-12-25 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100054', 'tblTempUsageDetail_20' ) start [2024-12-25 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100054', 'tblTempUsageDetail_20' ) end [2024-12-25 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100054', 'tblTempVendorCDR_20' ) start [2024-12-25 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100054', 'tblTempVendorCDR_20' ) end [2024-12-25 14:13:19] Production.INFO: ProcessCDR(1,14100054,1,1,2) [2024-12-25 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100054', 'tblTempUsageDetail_20' ) start [2024-12-25 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100054', 'tblTempUsageDetail_20' ) end [2024-12-25 14:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:13:23] Production.INFO: ==27308== Releasing lock... [2024-12-25 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:13:23] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:14:05 [end_date_ymd] => 2024-12-25 14:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:14:05' and `end` < '2024-12-25 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-25 14:14:18] Production.INFO: count ==1317 [2024-12-25 14:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:14:05 - End Time 2024-12-25 14:14:05 [2024-12-25 14:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100059', 'tblTempUsageDetail_20' ) start [2024-12-25 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100059', 'tblTempUsageDetail_20' ) end [2024-12-25 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100059', 'tblTempVendorCDR_20' ) start [2024-12-25 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100059', 'tblTempVendorCDR_20' ) end [2024-12-25 14:14:18] Production.INFO: ProcessCDR(1,14100059,1,1,2) [2024-12-25 14:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100059', 'tblTempUsageDetail_20' ) start [2024-12-25 14:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100059', 'tblTempUsageDetail_20' ) end [2024-12-25 14:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:14:21] Production.INFO: ==27411== Releasing lock... [2024-12-25 14:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:14:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:15:05 [end_date_ymd] => 2024-12-25 14:15:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:15:05' and `end` < '2024-12-25 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-25 14:15:17] Production.INFO: count ==1316 [2024-12-25 14:15:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:15:05 - End Time 2024-12-25 14:15:05 [2024-12-25 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100064', 'tblTempUsageDetail_20' ) start [2024-12-25 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100064', 'tblTempUsageDetail_20' ) end [2024-12-25 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100064', 'tblTempVendorCDR_20' ) start [2024-12-25 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100064', 'tblTempVendorCDR_20' ) end [2024-12-25 14:15:18] Production.INFO: ProcessCDR(1,14100064,1,1,2) [2024-12-25 14:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100064', 'tblTempUsageDetail_20' ) start [2024-12-25 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100064', 'tblTempUsageDetail_20' ) end [2024-12-25 14:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:15:22] Production.INFO: ==27495== Releasing lock... [2024-12-25 14:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:15:22] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:16:04 [end_date_ymd] => 2024-12-25 14:16:04 [RateCDR] => 1 ) [2024-12-25 14:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:16:04' and `end` < '2024-12-25 14:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:16:16] Production.INFO: count ==1316 [2024-12-25 14:16:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:16:04 - End Time 2024-12-25 14:16:04 [2024-12-25 14:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100069', 'tblTempUsageDetail_20' ) start [2024-12-25 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100069', 'tblTempUsageDetail_20' ) end [2024-12-25 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100069', 'tblTempVendorCDR_20' ) start [2024-12-25 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100069', 'tblTempVendorCDR_20' ) end [2024-12-25 14:16:17] Production.INFO: ProcessCDR(1,14100069,1,1,2) [2024-12-25 14:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100069', 'tblTempUsageDetail_20' ) start [2024-12-25 14:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100069', 'tblTempUsageDetail_20' ) end [2024-12-25 14:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:16:20] Production.INFO: ==27592== Releasing lock... [2024-12-25 14:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:16:20] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:17:04 [end_date_ymd] => 2024-12-25 14:17:04 [RateCDR] => 1 ) [2024-12-25 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-25 11:17:04' and `end` < '2024-12-25 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-25 14:17:17] Production.INFO: count ==1304 [2024-12-25 14:17:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:17:04 - End Time 2024-12-25 14:17:04 [2024-12-25 14:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100074', 'tblTempUsageDetail_20' ) start [2024-12-25 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100074', 'tblTempUsageDetail_20' ) end [2024-12-25 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100074', 'tblTempVendorCDR_20' ) start [2024-12-25 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100074', 'tblTempVendorCDR_20' ) end [2024-12-25 14:17:17] Production.INFO: ProcessCDR(1,14100074,1,1,2) [2024-12-25 14:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100074', 'tblTempUsageDetail_20' ) start [2024-12-25 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100074', 'tblTempUsageDetail_20' ) end [2024-12-25 14:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:17:22] Production.INFO: ==27682== Releasing lock... [2024-12-25 14:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:17:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:18:05 [end_date_ymd] => 2024-12-25 14:18:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:18:05' and `end` < '2024-12-25 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-25 14:18:17] Production.INFO: count ==1309 [2024-12-25 14:18:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:18:05 - End Time 2024-12-25 14:18:05 [2024-12-25 14:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100079', 'tblTempUsageDetail_20' ) start [2024-12-25 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100079', 'tblTempUsageDetail_20' ) end [2024-12-25 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100079', 'tblTempVendorCDR_20' ) start [2024-12-25 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100079', 'tblTempVendorCDR_20' ) end [2024-12-25 14:18:18] Production.INFO: ProcessCDR(1,14100079,1,1,2) [2024-12-25 14:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100079', 'tblTempUsageDetail_20' ) start [2024-12-25 14:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100079', 'tblTempUsageDetail_20' ) end [2024-12-25 14:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:18:21] Production.INFO: ==27770== Releasing lock... [2024-12-25 14:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:18:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:19:05 [end_date_ymd] => 2024-12-25 14:19:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:19:05' and `end` < '2024-12-25 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-25 14:19:18] Production.INFO: count ==1311 [2024-12-25 14:19:19] Production.ERROR: pbx CDR StartTime 2024-12-25 11:19:05 - End Time 2024-12-25 14:19:05 [2024-12-25 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100084', 'tblTempUsageDetail_20' ) start [2024-12-25 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100084', 'tblTempUsageDetail_20' ) end [2024-12-25 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100084', 'tblTempVendorCDR_20' ) start [2024-12-25 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100084', 'tblTempVendorCDR_20' ) end [2024-12-25 14:19:19] Production.INFO: ProcessCDR(1,14100084,1,1,2) [2024-12-25 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100084', 'tblTempUsageDetail_20' ) start [2024-12-25 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100084', 'tblTempUsageDetail_20' ) end [2024-12-25 14:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:19:23] Production.INFO: ==27866== Releasing lock... [2024-12-25 14:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:19:23] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:20:06 [end_date_ymd] => 2024-12-25 14:20:06 [RateCDR] => 1 ) [2024-12-25 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:20:06' and `end` < '2024-12-25 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:20:18] Production.INFO: count ==1315 [2024-12-25 14:20:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:20:06 - End Time 2024-12-25 14:20:06 [2024-12-25 14:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100090', 'tblTempUsageDetail_20' ) start [2024-12-25 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100090', 'tblTempUsageDetail_20' ) end [2024-12-25 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100090', 'tblTempVendorCDR_20' ) start [2024-12-25 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100090', 'tblTempVendorCDR_20' ) end [2024-12-25 14:20:18] Production.INFO: ProcessCDR(1,14100090,1,1,2) [2024-12-25 14:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100090', 'tblTempUsageDetail_20' ) start [2024-12-25 14:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100090', 'tblTempUsageDetail_20' ) end [2024-12-25 14:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:20:21] Production.INFO: ==27960== Releasing lock... [2024-12-25 14:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:20:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:21:04 [end_date_ymd] => 2024-12-25 14:21:04 [RateCDR] => 1 ) [2024-12-25 14:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:21:04' and `end` < '2024-12-25 14:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:21:16] Production.INFO: count ==1319 [2024-12-25 14:21:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:21:04 - End Time 2024-12-25 14:21:04 [2024-12-25 14:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100095', 'tblTempUsageDetail_20' ) start [2024-12-25 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100095', 'tblTempUsageDetail_20' ) end [2024-12-25 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100095', 'tblTempVendorCDR_20' ) start [2024-12-25 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100095', 'tblTempVendorCDR_20' ) end [2024-12-25 14:21:17] Production.INFO: ProcessCDR(1,14100095,1,1,2) [2024-12-25 14:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100095', 'tblTempUsageDetail_20' ) start [2024-12-25 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100095', 'tblTempUsageDetail_20' ) end [2024-12-25 14:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:21:21] Production.INFO: ==28060== Releasing lock... [2024-12-25 14:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:21:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:22:05 [end_date_ymd] => 2024-12-25 14:22:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:22:05' and `end` < '2024-12-25 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-25 14:22:17] Production.INFO: count ==1322 [2024-12-25 14:22:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:22:05 - End Time 2024-12-25 14:22:05 [2024-12-25 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100100', 'tblTempUsageDetail_20' ) start [2024-12-25 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100100', 'tblTempUsageDetail_20' ) end [2024-12-25 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100100', 'tblTempVendorCDR_20' ) start [2024-12-25 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100100', 'tblTempVendorCDR_20' ) end [2024-12-25 14:22:18] Production.INFO: ProcessCDR(1,14100100,1,1,2) [2024-12-25 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100100', 'tblTempUsageDetail_20' ) start [2024-12-25 14:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100100', 'tblTempUsageDetail_20' ) end [2024-12-25 14:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:22:21] Production.INFO: ==28156== Releasing lock... [2024-12-25 14:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:22:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:23:05 [end_date_ymd] => 2024-12-25 14:23:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:23:05' and `end` < '2024-12-25 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-25 14:23:19] Production.INFO: count ==1321 [2024-12-25 14:23:19] Production.ERROR: pbx CDR StartTime 2024-12-25 11:23:05 - End Time 2024-12-25 14:23:05 [2024-12-25 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100105', 'tblTempUsageDetail_20' ) start [2024-12-25 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100105', 'tblTempUsageDetail_20' ) end [2024-12-25 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100105', 'tblTempVendorCDR_20' ) start [2024-12-25 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100105', 'tblTempVendorCDR_20' ) end [2024-12-25 14:23:19] Production.INFO: ProcessCDR(1,14100105,1,1,2) [2024-12-25 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100105', 'tblTempUsageDetail_20' ) start [2024-12-25 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100105', 'tblTempUsageDetail_20' ) end [2024-12-25 14:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:23:22] Production.INFO: ==28249== Releasing lock... [2024-12-25 14:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:23:22] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:24:05 [end_date_ymd] => 2024-12-25 14:24:05 [RateCDR] => 1 ) [2024-12-25 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:24:05' and `end` < '2024-12-25 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:24:18] Production.INFO: count ==1313 [2024-12-25 14:24:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:24:05 - End Time 2024-12-25 14:24:05 [2024-12-25 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100110', 'tblTempUsageDetail_20' ) start [2024-12-25 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100110', 'tblTempUsageDetail_20' ) end [2024-12-25 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100110', 'tblTempVendorCDR_20' ) start [2024-12-25 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100110', 'tblTempVendorCDR_20' ) end [2024-12-25 14:24:18] Production.INFO: ProcessCDR(1,14100110,1,1,2) [2024-12-25 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100110', 'tblTempUsageDetail_20' ) start [2024-12-25 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100110', 'tblTempUsageDetail_20' ) end [2024-12-25 14:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:24:21] Production.INFO: ==28347== Releasing lock... [2024-12-25 14:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:24:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:25:05 [end_date_ymd] => 2024-12-25 14:25:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:25:05' and `end` < '2024-12-25 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-25 14:25:18] Production.INFO: count ==1310 [2024-12-25 14:25:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:25:05 - End Time 2024-12-25 14:25:05 [2024-12-25 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100115', 'tblTempUsageDetail_20' ) start [2024-12-25 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100115', 'tblTempUsageDetail_20' ) end [2024-12-25 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100115', 'tblTempVendorCDR_20' ) start [2024-12-25 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100115', 'tblTempVendorCDR_20' ) end [2024-12-25 14:25:18] Production.INFO: ProcessCDR(1,14100115,1,1,2) [2024-12-25 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100115', 'tblTempUsageDetail_20' ) start [2024-12-25 14:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100115', 'tblTempUsageDetail_20' ) end [2024-12-25 14:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:25:21] Production.INFO: ==28443== Releasing lock... [2024-12-25 14:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:25:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:26:05 [end_date_ymd] => 2024-12-25 14:26:05 [RateCDR] => 1 ) [2024-12-25 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:26:05' and `end` < '2024-12-25 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:26:17] Production.INFO: count ==1310 [2024-12-25 14:26:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:26:05 - End Time 2024-12-25 14:26:05 [2024-12-25 14:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100120', 'tblTempUsageDetail_20' ) start [2024-12-25 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100120', 'tblTempUsageDetail_20' ) end [2024-12-25 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100120', 'tblTempVendorCDR_20' ) start [2024-12-25 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100120', 'tblTempVendorCDR_20' ) end [2024-12-25 14:26:17] Production.INFO: ProcessCDR(1,14100120,1,1,2) [2024-12-25 14:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100120', 'tblTempUsageDetail_20' ) start [2024-12-25 14:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100120', 'tblTempUsageDetail_20' ) end [2024-12-25 14:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:26:20] Production.INFO: ==28549== Releasing lock... [2024-12-25 14:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:26:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:27:05 [end_date_ymd] => 2024-12-25 14:27:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:27:05' and `end` < '2024-12-25 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-25 14:27:18] Production.INFO: count ==1309 [2024-12-25 14:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:27:05 - End Time 2024-12-25 14:27:05 [2024-12-25 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100125', 'tblTempUsageDetail_20' ) start [2024-12-25 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100125', 'tblTempUsageDetail_20' ) end [2024-12-25 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100125', 'tblTempVendorCDR_20' ) start [2024-12-25 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100125', 'tblTempVendorCDR_20' ) end [2024-12-25 14:27:18] Production.INFO: ProcessCDR(1,14100125,1,1,2) [2024-12-25 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100125', 'tblTempUsageDetail_20' ) start [2024-12-25 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100125', 'tblTempUsageDetail_20' ) end [2024-12-25 14:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:27:21] Production.INFO: ==28720== Releasing lock... [2024-12-25 14:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:27:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:28:05 [end_date_ymd] => 2024-12-25 14:28:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:28:05' and `end` < '2024-12-25 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-25 14:28:17] Production.INFO: count ==1309 [2024-12-25 14:28:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:28:05 - End Time 2024-12-25 14:28:05 [2024-12-25 14:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100130', 'tblTempUsageDetail_20' ) start [2024-12-25 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100130', 'tblTempUsageDetail_20' ) end [2024-12-25 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100130', 'tblTempVendorCDR_20' ) start [2024-12-25 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100130', 'tblTempVendorCDR_20' ) end [2024-12-25 14:28:17] Production.INFO: ProcessCDR(1,14100130,1,1,2) [2024-12-25 14:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100130', 'tblTempUsageDetail_20' ) start [2024-12-25 14:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100130', 'tblTempUsageDetail_20' ) end [2024-12-25 14:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:28:22] Production.INFO: ==28856== Releasing lock... [2024-12-25 14:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:28:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:29:05 [end_date_ymd] => 2024-12-25 14:29:05 [RateCDR] => 1 ) [2024-12-25 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:29:05' and `end` < '2024-12-25 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:29:17] Production.INFO: count ==1310 [2024-12-25 14:29:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:29:05 - End Time 2024-12-25 14:29:05 [2024-12-25 14:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100135', 'tblTempUsageDetail_20' ) start [2024-12-25 14:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100135', 'tblTempUsageDetail_20' ) end [2024-12-25 14:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100135', 'tblTempVendorCDR_20' ) start [2024-12-25 14:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100135', 'tblTempVendorCDR_20' ) end [2024-12-25 14:29:17] Production.INFO: ProcessCDR(1,14100135,1,1,2) [2024-12-25 14:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100135', 'tblTempUsageDetail_20' ) start [2024-12-25 14:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100135', 'tblTempUsageDetail_20' ) end [2024-12-25 14:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:29:20] Production.INFO: ==28982== Releasing lock... [2024-12-25 14:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:29:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:30:05 [end_date_ymd] => 2024-12-25 14:30:05 [RateCDR] => 1 ) [2024-12-25 14:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:30:05' and `end` < '2024-12-25 14:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:30:17] Production.INFO: count ==1310 [2024-12-25 14:30:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:30:05 - End Time 2024-12-25 14:30:05 [2024-12-25 14:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100141', 'tblTempUsageDetail_20' ) start [2024-12-25 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100141', 'tblTempUsageDetail_20' ) end [2024-12-25 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100141', 'tblTempVendorCDR_20' ) start [2024-12-25 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100141', 'tblTempVendorCDR_20' ) end [2024-12-25 14:30:18] Production.INFO: ProcessCDR(1,14100141,1,1,2) [2024-12-25 14:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100141', 'tblTempUsageDetail_20' ) start [2024-12-25 14:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100141', 'tblTempUsageDetail_20' ) end [2024-12-25 14:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:30:21] Production.INFO: ==29117== Releasing lock... [2024-12-25 14:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:30:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:31:05 [end_date_ymd] => 2024-12-25 14:31:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:31:05' and `end` < '2024-12-25 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-25 14:31:17] Production.INFO: count ==1320 [2024-12-25 14:31:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:31:05 - End Time 2024-12-25 14:31:05 [2024-12-25 14:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100146', 'tblTempUsageDetail_20' ) start [2024-12-25 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100146', 'tblTempUsageDetail_20' ) end [2024-12-25 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100146', 'tblTempVendorCDR_20' ) start [2024-12-25 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100146', 'tblTempVendorCDR_20' ) end [2024-12-25 14:31:17] Production.INFO: ProcessCDR(1,14100146,1,1,2) [2024-12-25 14:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100146', 'tblTempUsageDetail_20' ) start [2024-12-25 14:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100146', 'tblTempUsageDetail_20' ) end [2024-12-25 14:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:31:21] Production.INFO: ==29252== Releasing lock... [2024-12-25 14:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:31:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:32:05 [end_date_ymd] => 2024-12-25 14:32:05 [RateCDR] => 1 ) [2024-12-25 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:32:05' and `end` < '2024-12-25 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:32:17] Production.INFO: count ==1323 [2024-12-25 14:32:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:32:05 - End Time 2024-12-25 14:32:05 [2024-12-25 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100151', 'tblTempUsageDetail_20' ) start [2024-12-25 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100151', 'tblTempUsageDetail_20' ) end [2024-12-25 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100151', 'tblTempVendorCDR_20' ) start [2024-12-25 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100151', 'tblTempVendorCDR_20' ) end [2024-12-25 14:32:18] Production.INFO: ProcessCDR(1,14100151,1,1,2) [2024-12-25 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100151', 'tblTempUsageDetail_20' ) start [2024-12-25 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100151', 'tblTempUsageDetail_20' ) end [2024-12-25 14:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:32:21] Production.INFO: ==29378== Releasing lock... [2024-12-25 14:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:32:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:33:05 [end_date_ymd] => 2024-12-25 14:33:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:33:05' and `end` < '2024-12-25 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-25 14:33:17] Production.INFO: count ==1327 [2024-12-25 14:33:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:33:05 - End Time 2024-12-25 14:33:05 [2024-12-25 14:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100156', 'tblTempUsageDetail_20' ) start [2024-12-25 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100156', 'tblTempUsageDetail_20' ) end [2024-12-25 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100156', 'tblTempVendorCDR_20' ) start [2024-12-25 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100156', 'tblTempVendorCDR_20' ) end [2024-12-25 14:33:17] Production.INFO: ProcessCDR(1,14100156,1,1,2) [2024-12-25 14:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100156', 'tblTempUsageDetail_20' ) start [2024-12-25 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100156', 'tblTempUsageDetail_20' ) end [2024-12-25 14:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:33:22] Production.INFO: ==29520== Releasing lock... [2024-12-25 14:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:33:22] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:34:06 [end_date_ymd] => 2024-12-25 14:34:06 [RateCDR] => 1 ) [2024-12-25 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:34:06' and `end` < '2024-12-25 14:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:34:19] Production.INFO: count ==1331 [2024-12-25 14:34:19] Production.ERROR: pbx CDR StartTime 2024-12-25 11:34:06 - End Time 2024-12-25 14:34:06 [2024-12-25 14:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100161', 'tblTempUsageDetail_20' ) start [2024-12-25 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100161', 'tblTempUsageDetail_20' ) end [2024-12-25 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100161', 'tblTempVendorCDR_20' ) start [2024-12-25 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100161', 'tblTempVendorCDR_20' ) end [2024-12-25 14:34:20] Production.INFO: ProcessCDR(1,14100161,1,1,2) [2024-12-25 14:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100161', 'tblTempUsageDetail_20' ) start [2024-12-25 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100161', 'tblTempUsageDetail_20' ) end [2024-12-25 14:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:34:23] Production.INFO: ==29668== Releasing lock... [2024-12-25 14:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:34:23] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:35:05 [end_date_ymd] => 2024-12-25 14:35:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:35:05' and `end` < '2024-12-25 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-25 14:35:17] Production.INFO: count ==1331 [2024-12-25 14:35:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:35:05 - End Time 2024-12-25 14:35:05 [2024-12-25 14:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100166', 'tblTempUsageDetail_20' ) start [2024-12-25 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100166', 'tblTempUsageDetail_20' ) end [2024-12-25 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100166', 'tblTempVendorCDR_20' ) start [2024-12-25 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100166', 'tblTempVendorCDR_20' ) end [2024-12-25 14:35:17] Production.INFO: ProcessCDR(1,14100166,1,1,2) [2024-12-25 14:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100166', 'tblTempUsageDetail_20' ) start [2024-12-25 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100166', 'tblTempUsageDetail_20' ) end [2024-12-25 14:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:35:21] Production.INFO: ==29818== Releasing lock... [2024-12-25 14:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:35:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:36:05 [end_date_ymd] => 2024-12-25 14:36:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:36:05' and `end` < '2024-12-25 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-25 14:36:17] Production.INFO: count ==1329 [2024-12-25 14:36:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:36:05 - End Time 2024-12-25 14:36:05 [2024-12-25 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100171', 'tblTempUsageDetail_20' ) start [2024-12-25 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100171', 'tblTempUsageDetail_20' ) end [2024-12-25 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100171', 'tblTempVendorCDR_20' ) start [2024-12-25 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100171', 'tblTempVendorCDR_20' ) end [2024-12-25 14:36:18] Production.INFO: ProcessCDR(1,14100171,1,1,2) [2024-12-25 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100171', 'tblTempUsageDetail_20' ) start [2024-12-25 14:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100171', 'tblTempUsageDetail_20' ) end [2024-12-25 14:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:36:21] Production.INFO: ==29960== Releasing lock... [2024-12-25 14:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:36:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:37:04 [end_date_ymd] => 2024-12-25 14:37:04 [RateCDR] => 1 ) [2024-12-25 14:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:37:04' and `end` < '2024-12-25 14:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:37:16] Production.INFO: count ==1325 [2024-12-25 14:37:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:37:04 - End Time 2024-12-25 14:37:04 [2024-12-25 14:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100176', 'tblTempUsageDetail_20' ) start [2024-12-25 14:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100176', 'tblTempUsageDetail_20' ) end [2024-12-25 14:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100176', 'tblTempVendorCDR_20' ) start [2024-12-25 14:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100176', 'tblTempVendorCDR_20' ) end [2024-12-25 14:37:17] Production.INFO: ProcessCDR(1,14100176,1,1,2) [2024-12-25 14:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100176', 'tblTempUsageDetail_20' ) start [2024-12-25 14:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100176', 'tblTempUsageDetail_20' ) end [2024-12-25 14:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:37:20] Production.INFO: ==30099== Releasing lock... [2024-12-25 14:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:37:20] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:38:05 [end_date_ymd] => 2024-12-25 14:38:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:38:05' and `end` < '2024-12-25 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-25 14:38:17] Production.INFO: count ==1324 [2024-12-25 14:38:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:38:05 - End Time 2024-12-25 14:38:05 [2024-12-25 14:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100181', 'tblTempUsageDetail_20' ) start [2024-12-25 14:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100181', 'tblTempUsageDetail_20' ) end [2024-12-25 14:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100181', 'tblTempVendorCDR_20' ) start [2024-12-25 14:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100181', 'tblTempVendorCDR_20' ) end [2024-12-25 14:38:17] Production.INFO: ProcessCDR(1,14100181,1,1,2) [2024-12-25 14:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100181', 'tblTempUsageDetail_20' ) start [2024-12-25 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100181', 'tblTempUsageDetail_20' ) end [2024-12-25 14:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:38:21] Production.INFO: ==30239== Releasing lock... [2024-12-25 14:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:38:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:39:04 [end_date_ymd] => 2024-12-25 14:39:04 [RateCDR] => 1 ) [2024-12-25 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-25 11:39:04' and `end` < '2024-12-25 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-25 14:39:17] Production.INFO: count ==1322 [2024-12-25 14:39:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:39:04 - End Time 2024-12-25 14:39:04 [2024-12-25 14:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100186', 'tblTempUsageDetail_20' ) start [2024-12-25 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100186', 'tblTempUsageDetail_20' ) end [2024-12-25 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100186', 'tblTempVendorCDR_20' ) start [2024-12-25 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100186', 'tblTempVendorCDR_20' ) end [2024-12-25 14:39:17] Production.INFO: ProcessCDR(1,14100186,1,1,2) [2024-12-25 14:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100186', 'tblTempUsageDetail_20' ) start [2024-12-25 14:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100186', 'tblTempUsageDetail_20' ) end [2024-12-25 14:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:39:20] Production.INFO: ==30382== Releasing lock... [2024-12-25 14:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:39:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:40:05 [end_date_ymd] => 2024-12-25 14:40:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:40:05' and `end` < '2024-12-25 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-25 14:40:18] Production.INFO: count ==1325 [2024-12-25 14:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:40:05 - End Time 2024-12-25 14:40:05 [2024-12-25 14:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100191', 'tblTempUsageDetail_20' ) start [2024-12-25 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100191', 'tblTempUsageDetail_20' ) end [2024-12-25 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100191', 'tblTempVendorCDR_20' ) start [2024-12-25 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100191', 'tblTempVendorCDR_20' ) end [2024-12-25 14:40:18] Production.INFO: ProcessCDR(1,14100191,1,1,2) [2024-12-25 14:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100191', 'tblTempUsageDetail_20' ) start [2024-12-25 14:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100191', 'tblTempUsageDetail_20' ) end [2024-12-25 14:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:40:21] Production.INFO: ==30499== Releasing lock... [2024-12-25 14:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:40:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:41:04 [end_date_ymd] => 2024-12-25 14:41:04 [RateCDR] => 1 ) [2024-12-25 14: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-25 11:41:04' and `end` < '2024-12-25 14: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-25 14:41:17] Production.INFO: count ==1335 [2024-12-25 14:41:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:41:04 - End Time 2024-12-25 14:41:04 [2024-12-25 14:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100197', 'tblTempUsageDetail_20' ) start [2024-12-25 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100197', 'tblTempUsageDetail_20' ) end [2024-12-25 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100197', 'tblTempVendorCDR_20' ) start [2024-12-25 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100197', 'tblTempVendorCDR_20' ) end [2024-12-25 14:41:17] Production.INFO: ProcessCDR(1,14100197,1,1,2) [2024-12-25 14:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100197', 'tblTempUsageDetail_20' ) start [2024-12-25 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100197', 'tblTempUsageDetail_20' ) end [2024-12-25 14:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:41:22] Production.INFO: ==30604== Releasing lock... [2024-12-25 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:41:22] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:42:05 [end_date_ymd] => 2024-12-25 14:42:05 [RateCDR] => 1 ) [2024-12-25 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:42:05' and `end` < '2024-12-25 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:42:19] Production.INFO: count ==1333 [2024-12-25 14:42:19] Production.ERROR: pbx CDR StartTime 2024-12-25 11:42:05 - End Time 2024-12-25 14:42:05 [2024-12-25 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100202', 'tblTempUsageDetail_20' ) start [2024-12-25 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100202', 'tblTempUsageDetail_20' ) end [2024-12-25 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100202', 'tblTempVendorCDR_20' ) start [2024-12-25 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100202', 'tblTempVendorCDR_20' ) end [2024-12-25 14:42:19] Production.INFO: ProcessCDR(1,14100202,1,1,2) [2024-12-25 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100202', 'tblTempUsageDetail_20' ) start [2024-12-25 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100202', 'tblTempUsageDetail_20' ) end [2024-12-25 14:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:42:22] Production.INFO: ==30704== Releasing lock... [2024-12-25 14:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:42:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:43:06 [end_date_ymd] => 2024-12-25 14:43:06 [RateCDR] => 1 ) [2024-12-25 14:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:43:06' and `end` < '2024-12-25 14:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:43:19] Production.INFO: count ==1334 [2024-12-25 14:43:20] Production.ERROR: pbx CDR StartTime 2024-12-25 11:43:06 - End Time 2024-12-25 14:43:06 [2024-12-25 14:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100207', 'tblTempUsageDetail_20' ) start [2024-12-25 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100207', 'tblTempUsageDetail_20' ) end [2024-12-25 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100207', 'tblTempVendorCDR_20' ) start [2024-12-25 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100207', 'tblTempVendorCDR_20' ) end [2024-12-25 14:43:20] Production.INFO: ProcessCDR(1,14100207,1,1,2) [2024-12-25 14:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100207', 'tblTempUsageDetail_20' ) start [2024-12-25 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100207', 'tblTempUsageDetail_20' ) end [2024-12-25 14:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:43:23] Production.INFO: ==30848== Releasing lock... [2024-12-25 14:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:43:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:44:05 [end_date_ymd] => 2024-12-25 14:44:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:44:05' and `end` < '2024-12-25 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-25 14:44:17] Production.INFO: count ==1341 [2024-12-25 14:44:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:44:05 - End Time 2024-12-25 14:44:05 [2024-12-25 14:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100212', 'tblTempUsageDetail_20' ) start [2024-12-25 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100212', 'tblTempUsageDetail_20' ) end [2024-12-25 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100212', 'tblTempVendorCDR_20' ) start [2024-12-25 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100212', 'tblTempVendorCDR_20' ) end [2024-12-25 14:44:18] Production.INFO: ProcessCDR(1,14100212,1,1,2) [2024-12-25 14:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100212', 'tblTempUsageDetail_20' ) start [2024-12-25 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100212', 'tblTempUsageDetail_20' ) end [2024-12-25 14:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:44:21] Production.INFO: ==30950== Releasing lock... [2024-12-25 14:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:44:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:45:05 [end_date_ymd] => 2024-12-25 14:45:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:45:05' and `end` < '2024-12-25 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-25 14:45:19] Production.INFO: count ==1344 [2024-12-25 14:45:19] Production.ERROR: pbx CDR StartTime 2024-12-25 11:45:05 - End Time 2024-12-25 14:45:05 [2024-12-25 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100217', 'tblTempUsageDetail_20' ) start [2024-12-25 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100217', 'tblTempUsageDetail_20' ) end [2024-12-25 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100217', 'tblTempVendorCDR_20' ) start [2024-12-25 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100217', 'tblTempVendorCDR_20' ) end [2024-12-25 14:45:19] Production.INFO: ProcessCDR(1,14100217,1,1,2) [2024-12-25 14:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100217', 'tblTempUsageDetail_20' ) start [2024-12-25 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100217', 'tblTempUsageDetail_20' ) end [2024-12-25 14:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:45:22] Production.INFO: ==31052== Releasing lock... [2024-12-25 14:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:45:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:46:05 [end_date_ymd] => 2024-12-25 14:46:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:46:05' and `end` < '2024-12-25 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-25 14:46:17] Production.INFO: count ==1342 [2024-12-25 14:46:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:46:05 - End Time 2024-12-25 14:46:05 [2024-12-25 14:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100222', 'tblTempUsageDetail_20' ) start [2024-12-25 14:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100222', 'tblTempUsageDetail_20' ) end [2024-12-25 14:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100222', 'tblTempVendorCDR_20' ) start [2024-12-25 14:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100222', 'tblTempVendorCDR_20' ) end [2024-12-25 14:46:17] Production.INFO: ProcessCDR(1,14100222,1,1,2) [2024-12-25 14:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100222', 'tblTempUsageDetail_20' ) start [2024-12-25 14:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100222', 'tblTempUsageDetail_20' ) end [2024-12-25 14:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:46:21] Production.INFO: ==31155== Releasing lock... [2024-12-25 14:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:46:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:47:05 [end_date_ymd] => 2024-12-25 14:47:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:47:05' and `end` < '2024-12-25 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-25 14:47:18] Production.INFO: count ==1338 [2024-12-25 14:47:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:47:05 - End Time 2024-12-25 14:47:05 [2024-12-25 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100227', 'tblTempUsageDetail_20' ) start [2024-12-25 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100227', 'tblTempUsageDetail_20' ) end [2024-12-25 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100227', 'tblTempVendorCDR_20' ) start [2024-12-25 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100227', 'tblTempVendorCDR_20' ) end [2024-12-25 14:47:18] Production.INFO: ProcessCDR(1,14100227,1,1,2) [2024-12-25 14:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100227', 'tblTempUsageDetail_20' ) start [2024-12-25 14:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100227', 'tblTempUsageDetail_20' ) end [2024-12-25 14:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:47:21] Production.INFO: ==31260== Releasing lock... [2024-12-25 14:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:47:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:48:05 [end_date_ymd] => 2024-12-25 14:48:05 [RateCDR] => 1 ) [2024-12-25 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:48:05' and `end` < '2024-12-25 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:48:17] Production.INFO: count ==1328 [2024-12-25 14:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:48:05 - End Time 2024-12-25 14:48:05 [2024-12-25 14:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100232', 'tblTempUsageDetail_20' ) start [2024-12-25 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100232', 'tblTempUsageDetail_20' ) end [2024-12-25 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100232', 'tblTempVendorCDR_20' ) start [2024-12-25 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100232', 'tblTempVendorCDR_20' ) end [2024-12-25 14:48:18] Production.INFO: ProcessCDR(1,14100232,1,1,2) [2024-12-25 14:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100232', 'tblTempUsageDetail_20' ) start [2024-12-25 14:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100232', 'tblTempUsageDetail_20' ) end [2024-12-25 14:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:48:21] Production.INFO: ==31354== Releasing lock... [2024-12-25 14:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:48:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-25 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:49:05 [end_date_ymd] => 2024-12-25 14:49:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:49:05' and `end` < '2024-12-25 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-25 14:49:17] Production.INFO: count ==1328 [2024-12-25 14:49:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:49:05 - End Time 2024-12-25 14:49:05 [2024-12-25 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100237', 'tblTempUsageDetail_20' ) start [2024-12-25 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100237', 'tblTempUsageDetail_20' ) end [2024-12-25 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100237', 'tblTempVendorCDR_20' ) start [2024-12-25 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100237', 'tblTempVendorCDR_20' ) end [2024-12-25 14:49:18] Production.INFO: ProcessCDR(1,14100237,1,1,2) [2024-12-25 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100237', 'tblTempUsageDetail_20' ) start [2024-12-25 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100237', 'tblTempUsageDetail_20' ) end [2024-12-25 14:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:49:21] Production.INFO: ==31442== Releasing lock... [2024-12-25 14:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:49:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-25 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:50:05 [end_date_ymd] => 2024-12-25 14:50:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:50:05' and `end` < '2024-12-25 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-25 14:50:18] Production.INFO: count ==1329 [2024-12-25 14:50:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:50:05 - End Time 2024-12-25 14:50:05 [2024-12-25 14:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100243', 'tblTempUsageDetail_20' ) start [2024-12-25 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100243', 'tblTempUsageDetail_20' ) end [2024-12-25 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100243', 'tblTempVendorCDR_20' ) start [2024-12-25 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100243', 'tblTempVendorCDR_20' ) end [2024-12-25 14:50:18] Production.INFO: ProcessCDR(1,14100243,1,1,2) [2024-12-25 14:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100243', 'tblTempUsageDetail_20' ) start [2024-12-25 14:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100243', 'tblTempUsageDetail_20' ) end [2024-12-25 14:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:50:21] Production.INFO: ==31525== Releasing lock... [2024-12-25 14:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:50:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-25 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:51:05 [end_date_ymd] => 2024-12-25 14:51:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:51:05' and `end` < '2024-12-25 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-25 14:51:17] Production.INFO: count ==1320 [2024-12-25 14:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:51:05 - End Time 2024-12-25 14:51:05 [2024-12-25 14:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100248', 'tblTempUsageDetail_20' ) start [2024-12-25 14:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100248', 'tblTempUsageDetail_20' ) end [2024-12-25 14:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100248', 'tblTempVendorCDR_20' ) start [2024-12-25 14:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100248', 'tblTempVendorCDR_20' ) end [2024-12-25 14:51:17] Production.INFO: ProcessCDR(1,14100248,1,1,2) [2024-12-25 14:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100248', 'tblTempUsageDetail_20' ) start [2024-12-25 14:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100248', 'tblTempUsageDetail_20' ) end [2024-12-25 14:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:51:20] Production.INFO: ==31615== Releasing lock... [2024-12-25 14:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:51:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:52:05 [end_date_ymd] => 2024-12-25 14:52:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:52:05' and `end` < '2024-12-25 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-25 14:52:18] Production.INFO: count ==1321 [2024-12-25 14:52:19] Production.ERROR: pbx CDR StartTime 2024-12-25 11:52:05 - End Time 2024-12-25 14:52:05 [2024-12-25 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100253', 'tblTempUsageDetail_20' ) start [2024-12-25 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100253', 'tblTempUsageDetail_20' ) end [2024-12-25 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100253', 'tblTempVendorCDR_20' ) start [2024-12-25 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100253', 'tblTempVendorCDR_20' ) end [2024-12-25 14:52:19] Production.INFO: ProcessCDR(1,14100253,1,1,2) [2024-12-25 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100253', 'tblTempUsageDetail_20' ) start [2024-12-25 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100253', 'tblTempUsageDetail_20' ) end [2024-12-25 14:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:52:22] Production.INFO: ==31696== Releasing lock... [2024-12-25 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:52:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:53:05 [end_date_ymd] => 2024-12-25 14:53:05 [RateCDR] => 1 ) [2024-12-25 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 11:53:05' and `end` < '2024-12-25 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 14:53:17] Production.INFO: count ==1323 [2024-12-25 14:53:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:53:05 - End Time 2024-12-25 14:53:05 [2024-12-25 14:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100258', 'tblTempUsageDetail_20' ) start [2024-12-25 14:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100258', 'tblTempUsageDetail_20' ) end [2024-12-25 14:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100258', 'tblTempVendorCDR_20' ) start [2024-12-25 14:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100258', 'tblTempVendorCDR_20' ) end [2024-12-25 14:53:17] Production.INFO: ProcessCDR(1,14100258,1,1,2) [2024-12-25 14:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100258', 'tblTempUsageDetail_20' ) start [2024-12-25 14:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100258', 'tblTempUsageDetail_20' ) end [2024-12-25 14:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:53:20] Production.INFO: ==31782== Releasing lock... [2024-12-25 14:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:53:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:54:05 [end_date_ymd] => 2024-12-25 14:54:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:54:05' and `end` < '2024-12-25 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-25 14:54:17] Production.INFO: count ==1326 [2024-12-25 14:54:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:54:05 - End Time 2024-12-25 14:54:05 [2024-12-25 14:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100263', 'tblTempUsageDetail_20' ) start [2024-12-25 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100263', 'tblTempUsageDetail_20' ) end [2024-12-25 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100263', 'tblTempVendorCDR_20' ) start [2024-12-25 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100263', 'tblTempVendorCDR_20' ) end [2024-12-25 14:54:18] Production.INFO: ProcessCDR(1,14100263,1,1,2) [2024-12-25 14:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100263', 'tblTempUsageDetail_20' ) start [2024-12-25 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100263', 'tblTempUsageDetail_20' ) end [2024-12-25 14:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:54:21] Production.INFO: ==31866== Releasing lock... [2024-12-25 14:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:54:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:55:04 [end_date_ymd] => 2024-12-25 14:55:04 [RateCDR] => 1 ) [2024-12-25 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-25 11:55:04' and `end` < '2024-12-25 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-25 14:55:17] Production.INFO: count ==1312 [2024-12-25 14:55:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:55:04 - End Time 2024-12-25 14:55:04 [2024-12-25 14:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100268', 'tblTempUsageDetail_20' ) start [2024-12-25 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100268', 'tblTempUsageDetail_20' ) end [2024-12-25 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100268', 'tblTempVendorCDR_20' ) start [2024-12-25 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100268', 'tblTempVendorCDR_20' ) end [2024-12-25 14:55:17] Production.INFO: ProcessCDR(1,14100268,1,1,2) [2024-12-25 14:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100268', 'tblTempUsageDetail_20' ) start [2024-12-25 14:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100268', 'tblTempUsageDetail_20' ) end [2024-12-25 14:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:55:20] Production.INFO: ==31954== Releasing lock... [2024-12-25 14:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:55:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:56:05 [end_date_ymd] => 2024-12-25 14:56:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:56:05' and `end` < '2024-12-25 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-25 14:56:17] Production.INFO: count ==1308 [2024-12-25 14:56:17] Production.ERROR: pbx CDR StartTime 2024-12-25 11:56:05 - End Time 2024-12-25 14:56:05 [2024-12-25 14:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100273', 'tblTempUsageDetail_20' ) start [2024-12-25 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100273', 'tblTempUsageDetail_20' ) end [2024-12-25 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100273', 'tblTempVendorCDR_20' ) start [2024-12-25 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100273', 'tblTempVendorCDR_20' ) end [2024-12-25 14:56:18] Production.INFO: ProcessCDR(1,14100273,1,1,2) [2024-12-25 14:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100273', 'tblTempUsageDetail_20' ) start [2024-12-25 14:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100273', 'tblTempUsageDetail_20' ) end [2024-12-25 14:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:56:21] Production.INFO: ==32049== Releasing lock... [2024-12-25 14:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:56:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:57:05 [end_date_ymd] => 2024-12-25 14:57:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:57:05' and `end` < '2024-12-25 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-25 14:57:21] Production.INFO: count ==1299 [2024-12-25 14:57:21] Production.ERROR: pbx CDR StartTime 2024-12-25 11:57:05 - End Time 2024-12-25 14:57:05 [2024-12-25 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100278', 'tblTempUsageDetail_20' ) start [2024-12-25 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100278', 'tblTempUsageDetail_20' ) end [2024-12-25 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100278', 'tblTempVendorCDR_20' ) start [2024-12-25 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100278', 'tblTempVendorCDR_20' ) end [2024-12-25 14:57:21] Production.INFO: ProcessCDR(1,14100278,1,1,2) [2024-12-25 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100278', 'tblTempUsageDetail_20' ) start [2024-12-25 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100278', 'tblTempUsageDetail_20' ) end [2024-12-25 14:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:57:24] Production.INFO: ==32137== Releasing lock... [2024-12-25 14:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:57:24] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:58:05 [end_date_ymd] => 2024-12-25 14:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:58:05' and `end` < '2024-12-25 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-25 14:58:18] Production.INFO: count ==1294 [2024-12-25 14:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:58:05 - End Time 2024-12-25 14:58:05 [2024-12-25 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100283', 'tblTempUsageDetail_20' ) start [2024-12-25 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100283', 'tblTempUsageDetail_20' ) end [2024-12-25 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100283', 'tblTempVendorCDR_20' ) start [2024-12-25 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100283', 'tblTempVendorCDR_20' ) end [2024-12-25 14:58:18] Production.INFO: ProcessCDR(1,14100283,1,1,2) [2024-12-25 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100283', 'tblTempUsageDetail_20' ) start [2024-12-25 14:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100283', 'tblTempUsageDetail_20' ) end [2024-12-25 14:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:58:21] Production.INFO: ==32265== Releasing lock... [2024-12-25 14:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:58:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 11:59:05 [end_date_ymd] => 2024-12-25 14:59:05 [RateCDR] => 1 ) [2024-12-25 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-25 11:59:05' and `end` < '2024-12-25 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-25 14:59:17] Production.INFO: count ==1305 [2024-12-25 14:59:18] Production.ERROR: pbx CDR StartTime 2024-12-25 11:59:05 - End Time 2024-12-25 14:59:05 [2024-12-25 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100288', 'tblTempUsageDetail_20' ) start [2024-12-25 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100288', 'tblTempUsageDetail_20' ) end [2024-12-25 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100288', 'tblTempVendorCDR_20' ) start [2024-12-25 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100288', 'tblTempVendorCDR_20' ) end [2024-12-25 14:59:18] Production.INFO: ProcessCDR(1,14100288,1,1,2) [2024-12-25 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 14:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 14:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100288', 'tblTempUsageDetail_20' ) start [2024-12-25 14:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100288', 'tblTempUsageDetail_20' ) end [2024-12-25 14:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 14:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 14:59:21] Production.INFO: ==32347== Releasing lock... [2024-12-25 14:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 14:59:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-25 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:00:05 [end_date_ymd] => 2024-12-25 15:00:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:00:05' and `end` < '2024-12-25 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-25 15:00:18] Production.INFO: count ==1299 [2024-12-25 15:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:00:05 - End Time 2024-12-25 15:00:05 [2024-12-25 15:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100294', 'tblTempUsageDetail_20' ) start [2024-12-25 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100294', 'tblTempUsageDetail_20' ) end [2024-12-25 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100294', 'tblTempVendorCDR_20' ) start [2024-12-25 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100294', 'tblTempVendorCDR_20' ) end [2024-12-25 15:00:18] Production.INFO: ProcessCDR(1,14100294,1,1,2) [2024-12-25 15:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100294', 'tblTempUsageDetail_20' ) start [2024-12-25 15:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100294', 'tblTempUsageDetail_20' ) end [2024-12-25 15:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:00:21] Production.INFO: ==32435== Releasing lock... [2024-12-25 15:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:00:21] Production.INFO: 38 MB #Memory Used# [2024-12-25 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:01:05 [end_date_ymd] => 2024-12-25 15:01:05 [RateCDR] => 1 ) [2024-12-25 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:01:05' and `end` < '2024-12-25 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:01:19] Production.INFO: count ==1342 [2024-12-25 15:01:19] Production.ERROR: pbx CDR StartTime 2024-12-25 12:01:05 - End Time 2024-12-25 15:01:05 [2024-12-25 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100299', 'tblTempUsageDetail_20' ) start [2024-12-25 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100299', 'tblTempUsageDetail_20' ) end [2024-12-25 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100299', 'tblTempVendorCDR_20' ) start [2024-12-25 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100299', 'tblTempVendorCDR_20' ) end [2024-12-25 15:01:19] Production.INFO: ProcessCDR(1,14100299,1,1,2) [2024-12-25 15:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100299', 'tblTempUsageDetail_20' ) start [2024-12-25 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100299', 'tblTempUsageDetail_20' ) end [2024-12-25 15:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:01:22] Production.INFO: ==32612== Releasing lock... [2024-12-25 15:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:01:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:02:05 [end_date_ymd] => 2024-12-25 15:02:05 [RateCDR] => 1 ) [2024-12-25 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:02:05' and `end` < '2024-12-25 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:02:17] Production.INFO: count ==1347 [2024-12-25 15:02:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:02:05 - End Time 2024-12-25 15:02:05 [2024-12-25 15:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100304', 'tblTempUsageDetail_20' ) start [2024-12-25 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100304', 'tblTempUsageDetail_20' ) end [2024-12-25 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100304', 'tblTempVendorCDR_20' ) start [2024-12-25 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100304', 'tblTempVendorCDR_20' ) end [2024-12-25 15:02:18] Production.INFO: ProcessCDR(1,14100304,1,1,2) [2024-12-25 15:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100304', 'tblTempUsageDetail_20' ) start [2024-12-25 15:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100304', 'tblTempUsageDetail_20' ) end [2024-12-25 15:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:02:21] Production.INFO: ==32693== Releasing lock... [2024-12-25 15:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:02:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:03:05 [end_date_ymd] => 2024-12-25 15:03:05 [RateCDR] => 1 ) [2024-12-25 15: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-25 12:03:05' and `end` < '2024-12-25 15: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-25 15:03:17] Production.INFO: count ==1349 [2024-12-25 15:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:03:05 - End Time 2024-12-25 15:03:05 [2024-12-25 15:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100309', 'tblTempUsageDetail_20' ) start [2024-12-25 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100309', 'tblTempUsageDetail_20' ) end [2024-12-25 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100309', 'tblTempVendorCDR_20' ) start [2024-12-25 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100309', 'tblTempVendorCDR_20' ) end [2024-12-25 15:03:18] Production.INFO: ProcessCDR(1,14100309,1,1,2) [2024-12-25 15:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100309', 'tblTempUsageDetail_20' ) start [2024-12-25 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100309', 'tblTempUsageDetail_20' ) end [2024-12-25 15:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:03:22] Production.INFO: ==317== Releasing lock... [2024-12-25 15:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:03:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:04:05 [end_date_ymd] => 2024-12-25 15:04:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:04:05' and `end` < '2024-12-25 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-25 15:04:17] Production.INFO: count ==1349 [2024-12-25 15:04:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:04:05 - End Time 2024-12-25 15:04:05 [2024-12-25 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100314', 'tblTempUsageDetail_20' ) start [2024-12-25 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100314', 'tblTempUsageDetail_20' ) end [2024-12-25 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100314', 'tblTempVendorCDR_20' ) start [2024-12-25 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100314', 'tblTempVendorCDR_20' ) end [2024-12-25 15:04:18] Production.INFO: ProcessCDR(1,14100314,1,1,2) [2024-12-25 15:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100314', 'tblTempUsageDetail_20' ) start [2024-12-25 15:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100314', 'tblTempUsageDetail_20' ) end [2024-12-25 15:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:04:21] Production.INFO: ==417== Releasing lock... [2024-12-25 15:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:04:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:05:05 [end_date_ymd] => 2024-12-25 15:05:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:05:05' and `end` < '2024-12-25 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-25 15:05:18] Production.INFO: count ==1349 [2024-12-25 15:05:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:05:05 - End Time 2024-12-25 15:05:05 [2024-12-25 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100319', 'tblTempUsageDetail_20' ) start [2024-12-25 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100319', 'tblTempUsageDetail_20' ) end [2024-12-25 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100319', 'tblTempVendorCDR_20' ) start [2024-12-25 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100319', 'tblTempVendorCDR_20' ) end [2024-12-25 15:05:18] Production.INFO: ProcessCDR(1,14100319,1,1,2) [2024-12-25 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100319', 'tblTempUsageDetail_20' ) start [2024-12-25 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100319', 'tblTempUsageDetail_20' ) end [2024-12-25 15:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:05:21] Production.INFO: ==587== Releasing lock... [2024-12-25 15:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:05:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:06:04 [end_date_ymd] => 2024-12-25 15:06:04 [RateCDR] => 1 ) [2024-12-25 15:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:06:04' and `end` < '2024-12-25 15:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:06:18] Production.INFO: count ==1353 [2024-12-25 15:06:19] Production.ERROR: pbx CDR StartTime 2024-12-25 12:06:04 - End Time 2024-12-25 15:06:04 [2024-12-25 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100324', 'tblTempUsageDetail_20' ) start [2024-12-25 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100324', 'tblTempUsageDetail_20' ) end [2024-12-25 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100324', 'tblTempVendorCDR_20' ) start [2024-12-25 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100324', 'tblTempVendorCDR_20' ) end [2024-12-25 15:06:19] Production.INFO: ProcessCDR(1,14100324,1,1,2) [2024-12-25 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100324', 'tblTempUsageDetail_20' ) start [2024-12-25 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100324', 'tblTempUsageDetail_20' ) end [2024-12-25 15:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:06:22] Production.INFO: ==698== Releasing lock... [2024-12-25 15:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:06:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:07:05 [end_date_ymd] => 2024-12-25 15:07:05 [RateCDR] => 1 ) [2024-12-25 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:07:05' and `end` < '2024-12-25 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:07:17] Production.INFO: count ==1363 [2024-12-25 15:07:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:07:05 - End Time 2024-12-25 15:07:05 [2024-12-25 15:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100329', 'tblTempUsageDetail_20' ) start [2024-12-25 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100329', 'tblTempUsageDetail_20' ) end [2024-12-25 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100329', 'tblTempVendorCDR_20' ) start [2024-12-25 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100329', 'tblTempVendorCDR_20' ) end [2024-12-25 15:07:18] Production.INFO: ProcessCDR(1,14100329,1,1,2) [2024-12-25 15:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100329', 'tblTempUsageDetail_20' ) start [2024-12-25 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100329', 'tblTempUsageDetail_20' ) end [2024-12-25 15:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:07:22] Production.INFO: ==789== Releasing lock... [2024-12-25 15:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:07:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:08:04 [end_date_ymd] => 2024-12-25 15:08:04 [RateCDR] => 1 ) [2024-12-25 15: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-25 12:08:04' and `end` < '2024-12-25 15: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-25 15:08:18] Production.INFO: count ==1364 [2024-12-25 15:08:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:08:04 - End Time 2024-12-25 15:08:04 [2024-12-25 15:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100334', 'tblTempUsageDetail_20' ) start [2024-12-25 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100334', 'tblTempUsageDetail_20' ) end [2024-12-25 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100334', 'tblTempVendorCDR_20' ) start [2024-12-25 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100334', 'tblTempVendorCDR_20' ) end [2024-12-25 15:08:18] Production.INFO: ProcessCDR(1,14100334,1,1,2) [2024-12-25 15:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100334', 'tblTempUsageDetail_20' ) start [2024-12-25 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100334', 'tblTempUsageDetail_20' ) end [2024-12-25 15:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:08:22] Production.INFO: ==954== Releasing lock... [2024-12-25 15:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:08:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:09:05 [end_date_ymd] => 2024-12-25 15:09:05 [RateCDR] => 1 ) [2024-12-25 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:09:05' and `end` < '2024-12-25 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:09:17] Production.INFO: count ==1369 [2024-12-25 15:09:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:09:05 - End Time 2024-12-25 15:09:05 [2024-12-25 15:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100339', 'tblTempUsageDetail_20' ) start [2024-12-25 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100339', 'tblTempUsageDetail_20' ) end [2024-12-25 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100339', 'tblTempVendorCDR_20' ) start [2024-12-25 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100339', 'tblTempVendorCDR_20' ) end [2024-12-25 15:09:18] Production.INFO: ProcessCDR(1,14100339,1,1,2) [2024-12-25 15:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100339', 'tblTempUsageDetail_20' ) start [2024-12-25 15:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100339', 'tblTempUsageDetail_20' ) end [2024-12-25 15:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:09:21] Production.INFO: ==1041== Releasing lock... [2024-12-25 15:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:09:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:10:06 [end_date_ymd] => 2024-12-25 15:10:06 [RateCDR] => 1 ) [2024-12-25 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:10:06' and `end` < '2024-12-25 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:10:18] Production.INFO: count ==1358 [2024-12-25 15:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:10:06 - End Time 2024-12-25 15:10:06 [2024-12-25 15:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100344', 'tblTempUsageDetail_20' ) start [2024-12-25 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100344', 'tblTempUsageDetail_20' ) end [2024-12-25 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100344', 'tblTempVendorCDR_20' ) start [2024-12-25 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100344', 'tblTempVendorCDR_20' ) end [2024-12-25 15:10:18] Production.INFO: ProcessCDR(1,14100344,1,1,2) [2024-12-25 15:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100344', 'tblTempUsageDetail_20' ) start [2024-12-25 15:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100344', 'tblTempUsageDetail_20' ) end [2024-12-25 15:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:10:21] Production.INFO: ==1137== Releasing lock... [2024-12-25 15:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:10:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:11:04 [end_date_ymd] => 2024-12-25 15:11:04 [RateCDR] => 1 ) [2024-12-25 15: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-25 12:11:04' and `end` < '2024-12-25 15: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-25 15:11:17] Production.INFO: count ==1353 [2024-12-25 15:11:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:11:04 - End Time 2024-12-25 15:11:04 [2024-12-25 15:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100350', 'tblTempUsageDetail_20' ) start [2024-12-25 15:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100350', 'tblTempUsageDetail_20' ) end [2024-12-25 15:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100350', 'tblTempVendorCDR_20' ) start [2024-12-25 15:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100350', 'tblTempVendorCDR_20' ) end [2024-12-25 15:11:17] Production.INFO: ProcessCDR(1,14100350,1,1,2) [2024-12-25 15:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100350', 'tblTempUsageDetail_20' ) start [2024-12-25 15:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100350', 'tblTempUsageDetail_20' ) end [2024-12-25 15:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:11:20] Production.INFO: ==1228== Releasing lock... [2024-12-25 15:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:11:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:12:05 [end_date_ymd] => 2024-12-25 15:12:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:12:05' and `end` < '2024-12-25 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-25 15:12:17] Production.INFO: count ==1343 [2024-12-25 15:12:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:12:05 - End Time 2024-12-25 15:12:05 [2024-12-25 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100355', 'tblTempUsageDetail_20' ) start [2024-12-25 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100355', 'tblTempUsageDetail_20' ) end [2024-12-25 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100355', 'tblTempVendorCDR_20' ) start [2024-12-25 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100355', 'tblTempVendorCDR_20' ) end [2024-12-25 15:12:18] Production.INFO: ProcessCDR(1,14100355,1,1,2) [2024-12-25 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100355', 'tblTempUsageDetail_20' ) start [2024-12-25 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100355', 'tblTempUsageDetail_20' ) end [2024-12-25 15:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:12:21] Production.INFO: ==1404== Releasing lock... [2024-12-25 15:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:12:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:13:04 [end_date_ymd] => 2024-12-25 15:13:04 [RateCDR] => 1 ) [2024-12-25 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-25 12:13:04' and `end` < '2024-12-25 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-25 15:13:18] Production.INFO: count ==1345 [2024-12-25 15:13:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:13:04 - End Time 2024-12-25 15:13:04 [2024-12-25 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100360', 'tblTempUsageDetail_20' ) start [2024-12-25 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100360', 'tblTempUsageDetail_20' ) end [2024-12-25 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100360', 'tblTempVendorCDR_20' ) start [2024-12-25 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100360', 'tblTempVendorCDR_20' ) end [2024-12-25 15:13:18] Production.INFO: ProcessCDR(1,14100360,1,1,2) [2024-12-25 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100360', 'tblTempUsageDetail_20' ) start [2024-12-25 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100360', 'tblTempUsageDetail_20' ) end [2024-12-25 15:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:13:21] Production.INFO: ==1491== Releasing lock... [2024-12-25 15:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:13:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-25 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:14:05 [end_date_ymd] => 2024-12-25 15:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:14:05' and `end` < '2024-12-25 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-25 15:14:17] Production.INFO: count ==1345 [2024-12-25 15:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:14:05 - End Time 2024-12-25 15:14:05 [2024-12-25 15:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100365', 'tblTempUsageDetail_20' ) start [2024-12-25 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100365', 'tblTempUsageDetail_20' ) end [2024-12-25 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100365', 'tblTempVendorCDR_20' ) start [2024-12-25 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100365', 'tblTempVendorCDR_20' ) end [2024-12-25 15:14:18] Production.INFO: ProcessCDR(1,14100365,1,1,2) [2024-12-25 15:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100365', 'tblTempUsageDetail_20' ) start [2024-12-25 15:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100365', 'tblTempUsageDetail_20' ) end [2024-12-25 15:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:14:21] Production.INFO: ==1649== Releasing lock... [2024-12-25 15:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:14:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:15:04 [end_date_ymd] => 2024-12-25 15:15:04 [RateCDR] => 1 ) [2024-12-25 15:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:15:04' and `end` < '2024-12-25 15:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:15:17] Production.INFO: count ==1342 [2024-12-25 15:15:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:15:04 - End Time 2024-12-25 15:15:04 [2024-12-25 15:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100370', 'tblTempUsageDetail_20' ) start [2024-12-25 15:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100370', 'tblTempUsageDetail_20' ) end [2024-12-25 15:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100370', 'tblTempVendorCDR_20' ) start [2024-12-25 15:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100370', 'tblTempVendorCDR_20' ) end [2024-12-25 15:15:17] Production.INFO: ProcessCDR(1,14100370,1,1,2) [2024-12-25 15:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100370', 'tblTempUsageDetail_20' ) start [2024-12-25 15:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100370', 'tblTempUsageDetail_20' ) end [2024-12-25 15:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:15:20] Production.INFO: ==1811== Releasing lock... [2024-12-25 15:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:15:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:16:05 [end_date_ymd] => 2024-12-25 15:16:05 [RateCDR] => 1 ) [2024-12-25 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:16:05' and `end` < '2024-12-25 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:16:19] Production.INFO: count ==1337 [2024-12-25 15:16:19] Production.ERROR: pbx CDR StartTime 2024-12-25 12:16:05 - End Time 2024-12-25 15:16:05 [2024-12-25 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100375', 'tblTempUsageDetail_20' ) start [2024-12-25 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100375', 'tblTempUsageDetail_20' ) end [2024-12-25 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100375', 'tblTempVendorCDR_20' ) start [2024-12-25 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100375', 'tblTempVendorCDR_20' ) end [2024-12-25 15:16:19] Production.INFO: ProcessCDR(1,14100375,1,1,2) [2024-12-25 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100375', 'tblTempUsageDetail_20' ) start [2024-12-25 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100375', 'tblTempUsageDetail_20' ) end [2024-12-25 15:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:16:22] Production.INFO: ==1898== Releasing lock... [2024-12-25 15:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:16:22] Production.INFO: 38 MB #Memory Used# [2024-12-25 15:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:17:04 [end_date_ymd] => 2024-12-25 15:17:04 [RateCDR] => 1 ) [2024-12-25 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-25 12:17:04' and `end` < '2024-12-25 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-25 15:17:16] Production.INFO: count ==1340 [2024-12-25 15:17:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:17:04 - End Time 2024-12-25 15:17:04 [2024-12-25 15:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100380', 'tblTempUsageDetail_20' ) start [2024-12-25 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100380', 'tblTempUsageDetail_20' ) end [2024-12-25 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100380', 'tblTempVendorCDR_20' ) start [2024-12-25 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100380', 'tblTempVendorCDR_20' ) end [2024-12-25 15:17:17] Production.INFO: ProcessCDR(1,14100380,1,1,2) [2024-12-25 15:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100380', 'tblTempUsageDetail_20' ) start [2024-12-25 15:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100380', 'tblTempUsageDetail_20' ) end [2024-12-25 15:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:17:20] Production.INFO: ==1986== Releasing lock... [2024-12-25 15:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:17:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:18:05 [end_date_ymd] => 2024-12-25 15:18:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:18:05' and `end` < '2024-12-25 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-25 15:18:18] Production.INFO: count ==1337 [2024-12-25 15:18:19] Production.ERROR: pbx CDR StartTime 2024-12-25 12:18:05 - End Time 2024-12-25 15:18:05 [2024-12-25 15:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100385', 'tblTempUsageDetail_20' ) start [2024-12-25 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100385', 'tblTempUsageDetail_20' ) end [2024-12-25 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100385', 'tblTempVendorCDR_20' ) start [2024-12-25 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100385', 'tblTempVendorCDR_20' ) end [2024-12-25 15:18:19] Production.INFO: ProcessCDR(1,14100385,1,1,2) [2024-12-25 15:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100385', 'tblTempUsageDetail_20' ) start [2024-12-25 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100385', 'tblTempUsageDetail_20' ) end [2024-12-25 15:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:18:22] Production.INFO: ==2080== Releasing lock... [2024-12-25 15:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:18:22] Production.INFO: 38 MB #Memory Used# [2024-12-25 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:19:04 [end_date_ymd] => 2024-12-25 15:19:04 [RateCDR] => 1 ) [2024-12-25 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-25 12:19:04' and `end` < '2024-12-25 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-25 15:19:16] Production.INFO: count ==1340 [2024-12-25 15:19:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:19:04 - End Time 2024-12-25 15:19:04 [2024-12-25 15:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100390', 'tblTempUsageDetail_20' ) start [2024-12-25 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100390', 'tblTempUsageDetail_20' ) end [2024-12-25 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100390', 'tblTempVendorCDR_20' ) start [2024-12-25 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100390', 'tblTempVendorCDR_20' ) end [2024-12-25 15:19:17] Production.INFO: ProcessCDR(1,14100390,1,1,2) [2024-12-25 15:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100390', 'tblTempUsageDetail_20' ) start [2024-12-25 15:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100390', 'tblTempUsageDetail_20' ) end [2024-12-25 15:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:19:20] Production.INFO: ==2164== Releasing lock... [2024-12-25 15:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:19:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:20:05 [end_date_ymd] => 2024-12-25 15:20:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:20:05' and `end` < '2024-12-25 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-25 15:20:17] Production.INFO: count ==1342 [2024-12-25 15:20:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:20:05 - End Time 2024-12-25 15:20:05 [2024-12-25 15:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100395', 'tblTempUsageDetail_20' ) start [2024-12-25 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100395', 'tblTempUsageDetail_20' ) end [2024-12-25 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100395', 'tblTempVendorCDR_20' ) start [2024-12-25 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100395', 'tblTempVendorCDR_20' ) end [2024-12-25 15:20:18] Production.INFO: ProcessCDR(1,14100395,1,1,2) [2024-12-25 15:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100395', 'tblTempUsageDetail_20' ) start [2024-12-25 15:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100395', 'tblTempUsageDetail_20' ) end [2024-12-25 15:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:20:21] Production.INFO: ==2244== Releasing lock... [2024-12-25 15:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:20:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:21:05 [end_date_ymd] => 2024-12-25 15:21:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:21:05' and `end` < '2024-12-25 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-25 15:21:18] Production.INFO: count ==1352 [2024-12-25 15:21:19] Production.ERROR: pbx CDR StartTime 2024-12-25 12:21:05 - End Time 2024-12-25 15:21:05 [2024-12-25 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100401', 'tblTempUsageDetail_20' ) start [2024-12-25 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100401', 'tblTempUsageDetail_20' ) end [2024-12-25 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100401', 'tblTempVendorCDR_20' ) start [2024-12-25 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100401', 'tblTempVendorCDR_20' ) end [2024-12-25 15:21:19] Production.INFO: ProcessCDR(1,14100401,1,1,2) [2024-12-25 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100401', 'tblTempUsageDetail_20' ) start [2024-12-25 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100401', 'tblTempUsageDetail_20' ) end [2024-12-25 15:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:21:22] Production.INFO: ==2321== Releasing lock... [2024-12-25 15:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:21:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:22:05 [end_date_ymd] => 2024-12-25 15:22:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:22:05' and `end` < '2024-12-25 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-25 15:22:18] Production.INFO: count ==1370 [2024-12-25 15:22:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:22:05 - End Time 2024-12-25 15:22:05 [2024-12-25 15:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100406', 'tblTempUsageDetail_20' ) start [2024-12-25 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100406', 'tblTempUsageDetail_20' ) end [2024-12-25 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100406', 'tblTempVendorCDR_20' ) start [2024-12-25 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100406', 'tblTempVendorCDR_20' ) end [2024-12-25 15:22:18] Production.INFO: ProcessCDR(1,14100406,1,1,2) [2024-12-25 15:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100406', 'tblTempUsageDetail_20' ) start [2024-12-25 15:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100406', 'tblTempUsageDetail_20' ) end [2024-12-25 15:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:22:21] Production.INFO: ==2394== Releasing lock... [2024-12-25 15:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:22:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:23:05 [end_date_ymd] => 2024-12-25 15:23:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:23:05' and `end` < '2024-12-25 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-25 15:23:17] Production.INFO: count ==1366 [2024-12-25 15:23:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:23:05 - End Time 2024-12-25 15:23:05 [2024-12-25 15:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100411', 'tblTempUsageDetail_20' ) start [2024-12-25 15:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100411', 'tblTempUsageDetail_20' ) end [2024-12-25 15:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100411', 'tblTempVendorCDR_20' ) start [2024-12-25 15:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100411', 'tblTempVendorCDR_20' ) end [2024-12-25 15:23:17] Production.INFO: ProcessCDR(1,14100411,1,1,2) [2024-12-25 15:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100411', 'tblTempUsageDetail_20' ) start [2024-12-25 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100411', 'tblTempUsageDetail_20' ) end [2024-12-25 15:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:23:22] Production.INFO: ==2468== Releasing lock... [2024-12-25 15:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:23:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 15:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:24:04 [end_date_ymd] => 2024-12-25 15:24:04 [RateCDR] => 1 ) [2024-12-25 15: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-25 12:24:04' and `end` < '2024-12-25 15: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-25 15:24:16] Production.INFO: count ==1366 [2024-12-25 15:24:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:24:04 - End Time 2024-12-25 15:24:04 [2024-12-25 15:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100416', 'tblTempUsageDetail_20' ) start [2024-12-25 15:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100416', 'tblTempUsageDetail_20' ) end [2024-12-25 15:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100416', 'tblTempVendorCDR_20' ) start [2024-12-25 15:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100416', 'tblTempVendorCDR_20' ) end [2024-12-25 15:24:17] Production.INFO: ProcessCDR(1,14100416,1,1,2) [2024-12-25 15:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100416', 'tblTempUsageDetail_20' ) start [2024-12-25 15:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100416', 'tblTempUsageDetail_20' ) end [2024-12-25 15:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:24:21] Production.INFO: ==2550== Releasing lock... [2024-12-25 15:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:24:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:25:05 [end_date_ymd] => 2024-12-25 15:25:05 [RateCDR] => 1 ) [2024-12-25 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:25:05' and `end` < '2024-12-25 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:25:17] Production.INFO: count ==1362 [2024-12-25 15:25:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:25:05 - End Time 2024-12-25 15:25:05 [2024-12-25 15:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100421', 'tblTempUsageDetail_20' ) start [2024-12-25 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100421', 'tblTempUsageDetail_20' ) end [2024-12-25 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100421', 'tblTempVendorCDR_20' ) start [2024-12-25 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100421', 'tblTempVendorCDR_20' ) end [2024-12-25 15:25:17] Production.INFO: ProcessCDR(1,14100421,1,1,2) [2024-12-25 15:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100421', 'tblTempUsageDetail_20' ) start [2024-12-25 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100421', 'tblTempUsageDetail_20' ) end [2024-12-25 15:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:25:22] Production.INFO: ==2625== Releasing lock... [2024-12-25 15:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:25:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-25 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:26:05 [end_date_ymd] => 2024-12-25 15:26:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:26:05' and `end` < '2024-12-25 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-25 15:26:18] Production.INFO: count ==1365 [2024-12-25 15:26:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:26:05 - End Time 2024-12-25 15:26:05 [2024-12-25 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100426', 'tblTempUsageDetail_20' ) start [2024-12-25 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100426', 'tblTempUsageDetail_20' ) end [2024-12-25 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100426', 'tblTempVendorCDR_20' ) start [2024-12-25 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100426', 'tblTempVendorCDR_20' ) end [2024-12-25 15:26:18] Production.INFO: ProcessCDR(1,14100426,1,1,2) [2024-12-25 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100426', 'tblTempUsageDetail_20' ) start [2024-12-25 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100426', 'tblTempUsageDetail_20' ) end [2024-12-25 15:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:26:23] Production.INFO: ==2703== Releasing lock... [2024-12-25 15:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:26:23] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:27:05 [end_date_ymd] => 2024-12-25 15:27:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:27:05' and `end` < '2024-12-25 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-25 15:27:17] Production.INFO: count ==1373 [2024-12-25 15:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:27:05 - End Time 2024-12-25 15:27:05 [2024-12-25 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100431', 'tblTempUsageDetail_20' ) start [2024-12-25 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100431', 'tblTempUsageDetail_20' ) end [2024-12-25 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100431', 'tblTempVendorCDR_20' ) start [2024-12-25 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100431', 'tblTempVendorCDR_20' ) end [2024-12-25 15:27:18] Production.INFO: ProcessCDR(1,14100431,1,1,2) [2024-12-25 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100431', 'tblTempUsageDetail_20' ) start [2024-12-25 15:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100431', 'tblTempUsageDetail_20' ) end [2024-12-25 15:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:27:21] Production.INFO: ==2779== Releasing lock... [2024-12-25 15:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:27:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-25 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:28:05 [end_date_ymd] => 2024-12-25 15:28:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:28:05' and `end` < '2024-12-25 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-25 15:28:19] Production.INFO: count ==1377 [2024-12-25 15:28:19] Production.ERROR: pbx CDR StartTime 2024-12-25 12:28:05 - End Time 2024-12-25 15:28:05 [2024-12-25 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100433', 'tblTempUsageDetail_20' ) start [2024-12-25 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100433', 'tblTempUsageDetail_20' ) end [2024-12-25 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100433', 'tblTempVendorCDR_20' ) start [2024-12-25 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100433', 'tblTempVendorCDR_20' ) end [2024-12-25 15:28:20] Production.INFO: ProcessCDR(1,14100433,1,1,2) [2024-12-25 15:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100433', 'tblTempUsageDetail_20' ) start [2024-12-25 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100433', 'tblTempUsageDetail_20' ) end [2024-12-25 15:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:28:24] Production.INFO: ==2852== Releasing lock... [2024-12-25 15:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:28:24] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:29:05 [end_date_ymd] => 2024-12-25 15:29:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:29:05' and `end` < '2024-12-25 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-25 15:29:18] Production.INFO: count ==1382 [2024-12-25 15:29:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:29:05 - End Time 2024-12-25 15:29:05 [2024-12-25 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100441', 'tblTempUsageDetail_20' ) start [2024-12-25 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100441', 'tblTempUsageDetail_20' ) end [2024-12-25 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100441', 'tblTempVendorCDR_20' ) start [2024-12-25 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100441', 'tblTempVendorCDR_20' ) end [2024-12-25 15:29:18] Production.INFO: ProcessCDR(1,14100441,1,1,2) [2024-12-25 15:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100441', 'tblTempUsageDetail_20' ) start [2024-12-25 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100441', 'tblTempUsageDetail_20' ) end [2024-12-25 15:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:29:23] Production.INFO: ==2929== Releasing lock... [2024-12-25 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:29:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-25 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:30:06 [end_date_ymd] => 2024-12-25 15:30:06 [RateCDR] => 1 ) [2024-12-25 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:30:06' and `end` < '2024-12-25 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:30:18] Production.INFO: count ==1381 [2024-12-25 15:30:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:30:06 - End Time 2024-12-25 15:30:06 [2024-12-25 15:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100447', 'tblTempUsageDetail_20' ) start [2024-12-25 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100447', 'tblTempUsageDetail_20' ) end [2024-12-25 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100447', 'tblTempVendorCDR_20' ) start [2024-12-25 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100447', 'tblTempVendorCDR_20' ) end [2024-12-25 15:30:18] Production.INFO: ProcessCDR(1,14100447,1,1,2) [2024-12-25 15:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100447', 'tblTempUsageDetail_20' ) start [2024-12-25 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100447', 'tblTempUsageDetail_20' ) end [2024-12-25 15:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:30:23] Production.INFO: ==3049== Releasing lock... [2024-12-25 15:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:30:23] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:31:04 [end_date_ymd] => 2024-12-25 15:31:04 [RateCDR] => 1 ) [2024-12-25 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-25 12:31:04' and `end` < '2024-12-25 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-25 15:31:17] Production.INFO: count ==1397 [2024-12-25 15:31:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:31:04 - End Time 2024-12-25 15:31:04 [2024-12-25 15:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100452', 'tblTempUsageDetail_20' ) start [2024-12-25 15:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100452', 'tblTempUsageDetail_20' ) end [2024-12-25 15:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100452', 'tblTempVendorCDR_20' ) start [2024-12-25 15:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100452', 'tblTempVendorCDR_20' ) end [2024-12-25 15:31:17] Production.INFO: ProcessCDR(1,14100452,1,1,2) [2024-12-25 15:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100452', 'tblTempUsageDetail_20' ) start [2024-12-25 15:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100452', 'tblTempUsageDetail_20' ) end [2024-12-25 15:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:31:20] Production.INFO: ==3126== Releasing lock... [2024-12-25 15:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:31:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:32:05 [end_date_ymd] => 2024-12-25 15:32:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:32:05' and `end` < '2024-12-25 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-25 15:32:17] Production.INFO: count ==1415 [2024-12-25 15:32:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:32:05 - End Time 2024-12-25 15:32:05 [2024-12-25 15:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100457', 'tblTempUsageDetail_20' ) start [2024-12-25 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100457', 'tblTempUsageDetail_20' ) end [2024-12-25 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100457', 'tblTempVendorCDR_20' ) start [2024-12-25 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100457', 'tblTempVendorCDR_20' ) end [2024-12-25 15:32:18] Production.INFO: ProcessCDR(1,14100457,1,1,2) [2024-12-25 15:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100457', 'tblTempUsageDetail_20' ) start [2024-12-25 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100457', 'tblTempUsageDetail_20' ) end [2024-12-25 15:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:32:21] Production.INFO: ==3199== Releasing lock... [2024-12-25 15:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:32:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-25 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:33:05 [end_date_ymd] => 2024-12-25 15:33:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:33:05' and `end` < '2024-12-25 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-25 15:33:19] Production.INFO: count ==1415 [2024-12-25 15:33:19] Production.ERROR: pbx CDR StartTime 2024-12-25 12:33:05 - End Time 2024-12-25 15:33:05 [2024-12-25 15:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100462', 'tblTempUsageDetail_20' ) start [2024-12-25 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100462', 'tblTempUsageDetail_20' ) end [2024-12-25 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100462', 'tblTempVendorCDR_20' ) start [2024-12-25 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100462', 'tblTempVendorCDR_20' ) end [2024-12-25 15:33:19] Production.INFO: ProcessCDR(1,14100462,1,1,2) [2024-12-25 15:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100462', 'tblTempUsageDetail_20' ) start [2024-12-25 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100462', 'tblTempUsageDetail_20' ) end [2024-12-25 15:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:33:22] Production.INFO: ==3275== Releasing lock... [2024-12-25 15:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:33:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-25 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:34:05 [end_date_ymd] => 2024-12-25 15:34:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:34:05' and `end` < '2024-12-25 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-25 15:34:17] Production.INFO: count ==1419 [2024-12-25 15:34:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:34:05 - End Time 2024-12-25 15:34:05 [2024-12-25 15:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100467', 'tblTempUsageDetail_20' ) start [2024-12-25 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100467', 'tblTempUsageDetail_20' ) end [2024-12-25 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100467', 'tblTempVendorCDR_20' ) start [2024-12-25 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100467', 'tblTempVendorCDR_20' ) end [2024-12-25 15:34:17] Production.INFO: ProcessCDR(1,14100467,1,1,2) [2024-12-25 15:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100467', 'tblTempUsageDetail_20' ) start [2024-12-25 15:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100467', 'tblTempUsageDetail_20' ) end [2024-12-25 15:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:34:21] Production.INFO: ==3348== Releasing lock... [2024-12-25 15:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:34:21] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:35:05 [end_date_ymd] => 2024-12-25 15:35:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:35:05' and `end` < '2024-12-25 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-25 15:35:18] Production.INFO: count ==1419 [2024-12-25 15:35:19] Production.ERROR: pbx CDR StartTime 2024-12-25 12:35:05 - End Time 2024-12-25 15:35:05 [2024-12-25 15:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100472', 'tblTempUsageDetail_20' ) start [2024-12-25 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100472', 'tblTempUsageDetail_20' ) end [2024-12-25 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100472', 'tblTempVendorCDR_20' ) start [2024-12-25 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100472', 'tblTempVendorCDR_20' ) end [2024-12-25 15:35:19] Production.INFO: ProcessCDR(1,14100472,1,1,2) [2024-12-25 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100472', 'tblTempUsageDetail_20' ) start [2024-12-25 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100472', 'tblTempUsageDetail_20' ) end [2024-12-25 15:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:35:22] Production.INFO: ==3426== Releasing lock... [2024-12-25 15:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:35:22] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:36:05 [end_date_ymd] => 2024-12-25 15:36:05 [RateCDR] => 1 ) [2024-12-25 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:36:05' and `end` < '2024-12-25 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:36:17] Production.INFO: count ==1418 [2024-12-25 15:36:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:36:05 - End Time 2024-12-25 15:36:05 [2024-12-25 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100477', 'tblTempUsageDetail_20' ) start [2024-12-25 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100477', 'tblTempUsageDetail_20' ) end [2024-12-25 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100477', 'tblTempVendorCDR_20' ) start [2024-12-25 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100477', 'tblTempVendorCDR_20' ) end [2024-12-25 15:36:18] Production.INFO: ProcessCDR(1,14100477,1,1,2) [2024-12-25 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100477', 'tblTempUsageDetail_20' ) start [2024-12-25 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100477', 'tblTempUsageDetail_20' ) end [2024-12-25 15:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:36:21] Production.INFO: ==3503== Releasing lock... [2024-12-25 15:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:36:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-25 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:37:05 [end_date_ymd] => 2024-12-25 15:37:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:37:05' and `end` < '2024-12-25 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-25 15:37:19] Production.INFO: count ==1419 [2024-12-25 15:37:19] Production.ERROR: pbx CDR StartTime 2024-12-25 12:37:05 - End Time 2024-12-25 15:37:05 [2024-12-25 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100482', 'tblTempUsageDetail_20' ) start [2024-12-25 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100482', 'tblTempUsageDetail_20' ) end [2024-12-25 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100482', 'tblTempVendorCDR_20' ) start [2024-12-25 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100482', 'tblTempVendorCDR_20' ) end [2024-12-25 15:37:19] Production.INFO: ProcessCDR(1,14100482,1,1,2) [2024-12-25 15:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100482', 'tblTempUsageDetail_20' ) start [2024-12-25 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100482', 'tblTempUsageDetail_20' ) end [2024-12-25 15:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:37:23] Production.INFO: ==3584== Releasing lock... [2024-12-25 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:37:23] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:38:04 [end_date_ymd] => 2024-12-25 15:38:04 [RateCDR] => 1 ) [2024-12-25 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-25 12:38:04' and `end` < '2024-12-25 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-25 15:38:17] Production.INFO: count ==1419 [2024-12-25 15:38:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:38:04 - End Time 2024-12-25 15:38:04 [2024-12-25 15:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100487', 'tblTempUsageDetail_20' ) start [2024-12-25 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100487', 'tblTempUsageDetail_20' ) end [2024-12-25 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100487', 'tblTempVendorCDR_20' ) start [2024-12-25 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100487', 'tblTempVendorCDR_20' ) end [2024-12-25 15:38:17] Production.INFO: ProcessCDR(1,14100487,1,1,2) [2024-12-25 15:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100487', 'tblTempUsageDetail_20' ) start [2024-12-25 15:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100487', 'tblTempUsageDetail_20' ) end [2024-12-25 15:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:38:20] Production.INFO: ==3661== Releasing lock... [2024-12-25 15:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:38:20] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:39:05 [end_date_ymd] => 2024-12-25 15:39:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:39:05' and `end` < '2024-12-25 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-25 15:39:17] Production.INFO: count ==1417 [2024-12-25 15:39:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:39:05 - End Time 2024-12-25 15:39:05 [2024-12-25 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100492', 'tblTempUsageDetail_20' ) start [2024-12-25 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100492', 'tblTempUsageDetail_20' ) end [2024-12-25 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100492', 'tblTempVendorCDR_20' ) start [2024-12-25 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100492', 'tblTempVendorCDR_20' ) end [2024-12-25 15:39:18] Production.INFO: ProcessCDR(1,14100492,1,1,2) [2024-12-25 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100492', 'tblTempUsageDetail_20' ) start [2024-12-25 15:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100492', 'tblTempUsageDetail_20' ) end [2024-12-25 15:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:39:21] Production.INFO: ==3738== Releasing lock... [2024-12-25 15:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:39:21] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:40:05 [end_date_ymd] => 2024-12-25 15:40:05 [RateCDR] => 1 ) [2024-12-25 15: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-25 12:40:05' and `end` < '2024-12-25 15: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-25 15:40:18] Production.INFO: count ==1423 [2024-12-25 15:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:40:05 - End Time 2024-12-25 15:40:05 [2024-12-25 15:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100498', 'tblTempUsageDetail_20' ) start [2024-12-25 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100498', 'tblTempUsageDetail_20' ) end [2024-12-25 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100498', 'tblTempVendorCDR_20' ) start [2024-12-25 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100498', 'tblTempVendorCDR_20' ) end [2024-12-25 15:40:18] Production.INFO: ProcessCDR(1,14100498,1,1,2) [2024-12-25 15:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100498', 'tblTempUsageDetail_20' ) start [2024-12-25 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100498', 'tblTempUsageDetail_20' ) end [2024-12-25 15:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:40:22] Production.INFO: ==3814== Releasing lock... [2024-12-25 15:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:40:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 15:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:41:04 [end_date_ymd] => 2024-12-25 15:41:04 [RateCDR] => 1 ) [2024-12-25 15: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-25 12:41:04' and `end` < '2024-12-25 15: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-25 15:41:17] Production.INFO: count ==1459 [2024-12-25 15:41:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:41:04 - End Time 2024-12-25 15:41:04 [2024-12-25 15:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100501', 'tblTempUsageDetail_20' ) start [2024-12-25 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100501', 'tblTempUsageDetail_20' ) end [2024-12-25 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100501', 'tblTempVendorCDR_20' ) start [2024-12-25 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100501', 'tblTempVendorCDR_20' ) end [2024-12-25 15:41:17] Production.INFO: ProcessCDR(1,14100501,1,1,2) [2024-12-25 15:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100501', 'tblTempUsageDetail_20' ) start [2024-12-25 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100501', 'tblTempUsageDetail_20' ) end [2024-12-25 15:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:41:21] Production.INFO: ==3890== Releasing lock... [2024-12-25 15:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:41:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:42:05 [end_date_ymd] => 2024-12-25 15:42:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:42:05' and `end` < '2024-12-25 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-25 15:42:17] Production.INFO: count ==1464 [2024-12-25 15:42:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:42:05 - End Time 2024-12-25 15:42:05 [2024-12-25 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100508', 'tblTempUsageDetail_20' ) start [2024-12-25 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100508', 'tblTempUsageDetail_20' ) end [2024-12-25 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100508', 'tblTempVendorCDR_20' ) start [2024-12-25 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100508', 'tblTempVendorCDR_20' ) end [2024-12-25 15:42:18] Production.INFO: ProcessCDR(1,14100508,1,1,2) [2024-12-25 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100508', 'tblTempUsageDetail_20' ) start [2024-12-25 15:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100508', 'tblTempUsageDetail_20' ) end [2024-12-25 15:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:42:21] Production.INFO: ==3969== Releasing lock... [2024-12-25 15:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:42:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:43:05 [end_date_ymd] => 2024-12-25 15:43:05 [RateCDR] => 1 ) [2024-12-25 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:43:05' and `end` < '2024-12-25 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:43:17] Production.INFO: count ==1460 [2024-12-25 15:43:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:43:05 - End Time 2024-12-25 15:43:05 [2024-12-25 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100513', 'tblTempUsageDetail_20' ) start [2024-12-25 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100513', 'tblTempUsageDetail_20' ) end [2024-12-25 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100513', 'tblTempVendorCDR_20' ) start [2024-12-25 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100513', 'tblTempVendorCDR_20' ) end [2024-12-25 15:43:18] Production.INFO: ProcessCDR(1,14100513,1,1,2) [2024-12-25 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100513', 'tblTempUsageDetail_20' ) start [2024-12-25 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100513', 'tblTempUsageDetail_20' ) end [2024-12-25 15:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:43:23] Production.INFO: ==4051== Releasing lock... [2024-12-25 15:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:43:23] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:44:06 [end_date_ymd] => 2024-12-25 15:44:06 [RateCDR] => 1 ) [2024-12-25 15: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-25 12:44:06' and `end` < '2024-12-25 15: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-25 15:44:19] Production.INFO: count ==1464 [2024-12-25 15:44:20] Production.ERROR: pbx CDR StartTime 2024-12-25 12:44:06 - End Time 2024-12-25 15:44:06 [2024-12-25 15:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100518', 'tblTempUsageDetail_20' ) start [2024-12-25 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100518', 'tblTempUsageDetail_20' ) end [2024-12-25 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100518', 'tblTempVendorCDR_20' ) start [2024-12-25 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100518', 'tblTempVendorCDR_20' ) end [2024-12-25 15:44:20] Production.INFO: ProcessCDR(1,14100518,1,1,2) [2024-12-25 15:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100518', 'tblTempUsageDetail_20' ) start [2024-12-25 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100518', 'tblTempUsageDetail_20' ) end [2024-12-25 15:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:44:23] Production.INFO: ==4130== Releasing lock... [2024-12-25 15:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:44:23] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:45:05 [end_date_ymd] => 2024-12-25 15:45:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:45:05' and `end` < '2024-12-25 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-25 15:45:17] Production.INFO: count ==1457 [2024-12-25 15:45:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:45:05 - End Time 2024-12-25 15:45:05 [2024-12-25 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100523', 'tblTempUsageDetail_20' ) start [2024-12-25 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100523', 'tblTempUsageDetail_20' ) end [2024-12-25 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100523', 'tblTempVendorCDR_20' ) start [2024-12-25 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100523', 'tblTempVendorCDR_20' ) end [2024-12-25 15:45:18] Production.INFO: ProcessCDR(1,14100523,1,1,2) [2024-12-25 15:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100523', 'tblTempUsageDetail_20' ) start [2024-12-25 15:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100523', 'tblTempUsageDetail_20' ) end [2024-12-25 15:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:45:21] Production.INFO: ==4209== Releasing lock... [2024-12-25 15:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:45:21] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:46:04 [end_date_ymd] => 2024-12-25 15:46:04 [RateCDR] => 1 ) [2024-12-25 15: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-25 12:46:04' and `end` < '2024-12-25 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-25 15:46:17] Production.INFO: count ==1430 [2024-12-25 15:46:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:46:04 - End Time 2024-12-25 15:46:04 [2024-12-25 15:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100528', 'tblTempUsageDetail_20' ) start [2024-12-25 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100528', 'tblTempUsageDetail_20' ) end [2024-12-25 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100528', 'tblTempVendorCDR_20' ) start [2024-12-25 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100528', 'tblTempVendorCDR_20' ) end [2024-12-25 15:46:17] Production.INFO: ProcessCDR(1,14100528,1,1,2) [2024-12-25 15:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100528', 'tblTempUsageDetail_20' ) start [2024-12-25 15:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100528', 'tblTempUsageDetail_20' ) end [2024-12-25 15:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:46:20] Production.INFO: ==4321== Releasing lock... [2024-12-25 15:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:46:20] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:47:05 [end_date_ymd] => 2024-12-25 15:47:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:47:05' and `end` < '2024-12-25 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-25 15:47:17] Production.INFO: count ==1428 [2024-12-25 15:47:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:47:05 - End Time 2024-12-25 15:47:05 [2024-12-25 15:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100533', 'tblTempUsageDetail_20' ) start [2024-12-25 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100533', 'tblTempUsageDetail_20' ) end [2024-12-25 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100533', 'tblTempVendorCDR_20' ) start [2024-12-25 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100533', 'tblTempVendorCDR_20' ) end [2024-12-25 15:47:18] Production.INFO: ProcessCDR(1,14100533,1,1,2) [2024-12-25 15:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100533', 'tblTempUsageDetail_20' ) start [2024-12-25 15:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100533', 'tblTempUsageDetail_20' ) end [2024-12-25 15:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:47:21] Production.INFO: ==4396== Releasing lock... [2024-12-25 15:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:47:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-25 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:48:05 [end_date_ymd] => 2024-12-25 15:48:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:48:05' and `end` < '2024-12-25 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-25 15:48:19] Production.INFO: count ==1417 [2024-12-25 15:48:19] Production.ERROR: pbx CDR StartTime 2024-12-25 12:48:05 - End Time 2024-12-25 15:48:05 [2024-12-25 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100538', 'tblTempUsageDetail_20' ) start [2024-12-25 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100538', 'tblTempUsageDetail_20' ) end [2024-12-25 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100538', 'tblTempVendorCDR_20' ) start [2024-12-25 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100538', 'tblTempVendorCDR_20' ) end [2024-12-25 15:48:19] Production.INFO: ProcessCDR(1,14100538,1,1,2) [2024-12-25 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100538', 'tblTempUsageDetail_20' ) start [2024-12-25 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100538', 'tblTempUsageDetail_20' ) end [2024-12-25 15:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:48:22] Production.INFO: ==4471== Releasing lock... [2024-12-25 15:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:48:22] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:49:05 [end_date_ymd] => 2024-12-25 15:49:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:49:05' and `end` < '2024-12-25 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-25 15:49:18] Production.INFO: count ==1415 [2024-12-25 15:49:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:49:05 - End Time 2024-12-25 15:49:05 [2024-12-25 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100543', 'tblTempUsageDetail_20' ) start [2024-12-25 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100543', 'tblTempUsageDetail_20' ) end [2024-12-25 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100543', 'tblTempVendorCDR_20' ) start [2024-12-25 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100543', 'tblTempVendorCDR_20' ) end [2024-12-25 15:49:18] Production.INFO: ProcessCDR(1,14100543,1,1,2) [2024-12-25 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100543', 'tblTempUsageDetail_20' ) start [2024-12-25 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100543', 'tblTempUsageDetail_20' ) end [2024-12-25 15:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:49:22] Production.INFO: ==4548== Releasing lock... [2024-12-25 15:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:49:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-25 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:50:06 [end_date_ymd] => 2024-12-25 15:50:06 [RateCDR] => 1 ) [2024-12-25 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:50:06' and `end` < '2024-12-25 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:50:18] Production.INFO: count ==1413 [2024-12-25 15:50:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:50:06 - End Time 2024-12-25 15:50:06 [2024-12-25 15:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100548', 'tblTempUsageDetail_20' ) start [2024-12-25 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100548', 'tblTempUsageDetail_20' ) end [2024-12-25 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100548', 'tblTempVendorCDR_20' ) start [2024-12-25 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100548', 'tblTempVendorCDR_20' ) end [2024-12-25 15:50:18] Production.INFO: ProcessCDR(1,14100548,1,1,2) [2024-12-25 15:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100548', 'tblTempUsageDetail_20' ) start [2024-12-25 15:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100548', 'tblTempUsageDetail_20' ) end [2024-12-25 15:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:50:21] Production.INFO: ==4636== Releasing lock... [2024-12-25 15:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:50:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-25 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:51:05 [end_date_ymd] => 2024-12-25 15:51:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:51:05' and `end` < '2024-12-25 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-25 15:51:17] Production.INFO: count ==1434 [2024-12-25 15:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:51:05 - End Time 2024-12-25 15:51:05 [2024-12-25 15:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100554', 'tblTempUsageDetail_20' ) start [2024-12-25 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100554', 'tblTempUsageDetail_20' ) end [2024-12-25 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100554', 'tblTempVendorCDR_20' ) start [2024-12-25 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100554', 'tblTempVendorCDR_20' ) end [2024-12-25 15:51:17] Production.INFO: ProcessCDR(1,14100554,1,1,2) [2024-12-25 15:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100554', 'tblTempUsageDetail_20' ) start [2024-12-25 15:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100554', 'tblTempUsageDetail_20' ) end [2024-12-25 15:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:51:20] Production.INFO: ==4712== Releasing lock... [2024-12-25 15:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:51:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-25 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:52:05 [end_date_ymd] => 2024-12-25 15:52:05 [RateCDR] => 1 ) [2024-12-25 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:52:05' and `end` < '2024-12-25 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:52:19] Production.INFO: count ==1442 [2024-12-25 15:52:19] Production.ERROR: pbx CDR StartTime 2024-12-25 12:52:05 - End Time 2024-12-25 15:52:05 [2024-12-25 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100559', 'tblTempUsageDetail_20' ) start [2024-12-25 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100559', 'tblTempUsageDetail_20' ) end [2024-12-25 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100559', 'tblTempVendorCDR_20' ) start [2024-12-25 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100559', 'tblTempVendorCDR_20' ) end [2024-12-25 15:52:19] Production.INFO: ProcessCDR(1,14100559,1,1,2) [2024-12-25 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100559', 'tblTempUsageDetail_20' ) start [2024-12-25 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100559', 'tblTempUsageDetail_20' ) end [2024-12-25 15:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:52:23] Production.INFO: ==4787== Releasing lock... [2024-12-25 15:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:52:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-25 15:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:53:04 [end_date_ymd] => 2024-12-25 15:53:04 [RateCDR] => 1 ) [2024-12-25 15:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:53:04' and `end` < '2024-12-25 15:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:53:16] Production.INFO: count ==1448 [2024-12-25 15:53:16] Production.ERROR: pbx CDR StartTime 2024-12-25 12:53:04 - End Time 2024-12-25 15:53:04 [2024-12-25 15:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100564', 'tblTempUsageDetail_20' ) start [2024-12-25 15:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100564', 'tblTempUsageDetail_20' ) end [2024-12-25 15:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100564', 'tblTempVendorCDR_20' ) start [2024-12-25 15:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100564', 'tblTempVendorCDR_20' ) end [2024-12-25 15:53:16] Production.INFO: ProcessCDR(1,14100564,1,1,2) [2024-12-25 15:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100564', 'tblTempUsageDetail_20' ) start [2024-12-25 15:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100564', 'tblTempUsageDetail_20' ) end [2024-12-25 15:53:19] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:53:19] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:53:19] Production.INFO: ==4860== Releasing lock... [2024-12-25 15:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:53:19] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:54:05 [end_date_ymd] => 2024-12-25 15:54:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:54:05' and `end` < '2024-12-25 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-25 15:54:19] Production.INFO: count ==1469 [2024-12-25 15:54:19] Production.ERROR: pbx CDR StartTime 2024-12-25 12:54:05 - End Time 2024-12-25 15:54:05 [2024-12-25 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100569', 'tblTempUsageDetail_20' ) start [2024-12-25 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100569', 'tblTempUsageDetail_20' ) end [2024-12-25 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100569', 'tblTempVendorCDR_20' ) start [2024-12-25 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100569', 'tblTempVendorCDR_20' ) end [2024-12-25 15:54:19] Production.INFO: ProcessCDR(1,14100569,1,1,2) [2024-12-25 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100569', 'tblTempUsageDetail_20' ) start [2024-12-25 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100569', 'tblTempUsageDetail_20' ) end [2024-12-25 15:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:54:22] Production.INFO: ==4939== Releasing lock... [2024-12-25 15:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:54:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:55:05 [end_date_ymd] => 2024-12-25 15:55:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:55:05' and `end` < '2024-12-25 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-25 15:55:18] Production.INFO: count ==1471 [2024-12-25 15:55:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:55:05 - End Time 2024-12-25 15:55:05 [2024-12-25 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100574', 'tblTempUsageDetail_20' ) start [2024-12-25 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100574', 'tblTempUsageDetail_20' ) end [2024-12-25 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100574', 'tblTempVendorCDR_20' ) start [2024-12-25 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100574', 'tblTempVendorCDR_20' ) end [2024-12-25 15:55:18] Production.INFO: ProcessCDR(1,14100574,1,1,2) [2024-12-25 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100574', 'tblTempUsageDetail_20' ) start [2024-12-25 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100574', 'tblTempUsageDetail_20' ) end [2024-12-25 15:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:55:21] Production.INFO: ==5015== Releasing lock... [2024-12-25 15:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:55:21] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:56:05 [end_date_ymd] => 2024-12-25 15:56:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:56:05' and `end` < '2024-12-25 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-25 15:56:18] Production.INFO: count ==1469 [2024-12-25 15:56:18] Production.ERROR: pbx CDR StartTime 2024-12-25 12:56:05 - End Time 2024-12-25 15:56:05 [2024-12-25 15:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100579', 'tblTempUsageDetail_20' ) start [2024-12-25 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100579', 'tblTempUsageDetail_20' ) end [2024-12-25 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100579', 'tblTempVendorCDR_20' ) start [2024-12-25 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100579', 'tblTempVendorCDR_20' ) end [2024-12-25 15:56:18] Production.INFO: ProcessCDR(1,14100579,1,1,2) [2024-12-25 15:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100579', 'tblTempUsageDetail_20' ) start [2024-12-25 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100579', 'tblTempUsageDetail_20' ) end [2024-12-25 15:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:56:22] Production.INFO: ==5096== Releasing lock... [2024-12-25 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:56:22] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:57:05 [end_date_ymd] => 2024-12-25 15:57:05 [RateCDR] => 1 ) [2024-12-25 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:57:05' and `end` < '2024-12-25 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:57:17] Production.INFO: count ==1472 [2024-12-25 15:57:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:57:05 - End Time 2024-12-25 15:57:05 [2024-12-25 15:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100584', 'tblTempUsageDetail_20' ) start [2024-12-25 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100584', 'tblTempUsageDetail_20' ) end [2024-12-25 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100584', 'tblTempVendorCDR_20' ) start [2024-12-25 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100584', 'tblTempVendorCDR_20' ) end [2024-12-25 15:57:18] Production.INFO: ProcessCDR(1,14100584,1,1,2) [2024-12-25 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100584', 'tblTempUsageDetail_20' ) start [2024-12-25 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100584', 'tblTempUsageDetail_20' ) end [2024-12-25 15:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:57:21] Production.INFO: ==5171== Releasing lock... [2024-12-25 15:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:57:21] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:58:05 [end_date_ymd] => 2024-12-25 15:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 12:58:05' and `end` < '2024-12-25 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-25 15:58:17] Production.INFO: count ==1476 [2024-12-25 15:58:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:58:05 - End Time 2024-12-25 15:58:05 [2024-12-25 15:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100589', 'tblTempUsageDetail_20' ) start [2024-12-25 15:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100589', 'tblTempUsageDetail_20' ) end [2024-12-25 15:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100589', 'tblTempVendorCDR_20' ) start [2024-12-25 15:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100589', 'tblTempVendorCDR_20' ) end [2024-12-25 15:58:17] Production.INFO: ProcessCDR(1,14100589,1,1,2) [2024-12-25 15:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100589', 'tblTempUsageDetail_20' ) start [2024-12-25 15:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100589', 'tblTempUsageDetail_20' ) end [2024-12-25 15:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:58:20] Production.INFO: ==5245== Releasing lock... [2024-12-25 15:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:58:20] Production.INFO: 39 MB #Memory Used# [2024-12-25 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 12:59:05 [end_date_ymd] => 2024-12-25 15:59:05 [RateCDR] => 1 ) [2024-12-25 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 12:59:05' and `end` < '2024-12-25 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 15:59:17] Production.INFO: count ==1478 [2024-12-25 15:59:17] Production.ERROR: pbx CDR StartTime 2024-12-25 12:59:05 - End Time 2024-12-25 15:59:05 [2024-12-25 15:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100594', 'tblTempUsageDetail_20' ) start [2024-12-25 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100594', 'tblTempUsageDetail_20' ) end [2024-12-25 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100594', 'tblTempVendorCDR_20' ) start [2024-12-25 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100594', 'tblTempVendorCDR_20' ) end [2024-12-25 15:59:17] Production.INFO: ProcessCDR(1,14100594,1,1,2) [2024-12-25 15:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 15:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100594', 'tblTempUsageDetail_20' ) start [2024-12-25 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100594', 'tblTempUsageDetail_20' ) end [2024-12-25 15:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 15:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 15:59:21] Production.INFO: ==5324== Releasing lock... [2024-12-25 15:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 15:59:21] Production.INFO: 39 MB #Memory Used# [2024-12-25 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:00:06 [end_date_ymd] => 2024-12-25 16:00:06 [RateCDR] => 1 ) [2024-12-25 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-25 13:00:06' and `end` < '2024-12-25 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-25 16:00:18] Production.INFO: count ==1479 [2024-12-25 16:00:19] Production.ERROR: pbx CDR StartTime 2024-12-25 13:00:06 - End Time 2024-12-25 16:00:06 [2024-12-25 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100600', 'tblTempUsageDetail_20' ) start [2024-12-25 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100600', 'tblTempUsageDetail_20' ) end [2024-12-25 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100600', 'tblTempVendorCDR_20' ) start [2024-12-25 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100600', 'tblTempVendorCDR_20' ) end [2024-12-25 16:00:19] Production.INFO: ProcessCDR(1,14100600,1,1,2) [2024-12-25 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100600', 'tblTempUsageDetail_20' ) start [2024-12-25 16:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100600', 'tblTempUsageDetail_20' ) end [2024-12-25 16:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:00:22] Production.INFO: ==5401== Releasing lock... [2024-12-25 16:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:00:22] Production.INFO: 39 MB #Memory Used# [2024-12-25 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:01:05 [end_date_ymd] => 2024-12-25 16:01:05 [RateCDR] => 1 ) [2024-12-25 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:01:05' and `end` < '2024-12-25 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:01:17] Production.INFO: count ==1479 [2024-12-25 16:01:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:01:05 - End Time 2024-12-25 16:01:05 [2024-12-25 16:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100605', 'tblTempUsageDetail_20' ) start [2024-12-25 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100605', 'tblTempUsageDetail_20' ) end [2024-12-25 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100605', 'tblTempVendorCDR_20' ) start [2024-12-25 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100605', 'tblTempVendorCDR_20' ) end [2024-12-25 16:01:18] Production.INFO: ProcessCDR(1,14100605,1,1,2) [2024-12-25 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100605', 'tblTempUsageDetail_20' ) start [2024-12-25 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100605', 'tblTempUsageDetail_20' ) end [2024-12-25 16:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:01:22] Production.INFO: ==5528== Releasing lock... [2024-12-25 16:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:01:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:02:05 [end_date_ymd] => 2024-12-25 16:02:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:02:05' and `end` < '2024-12-25 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-25 16:02:17] Production.INFO: count ==1481 [2024-12-25 16:02:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:02:05 - End Time 2024-12-25 16:02:05 [2024-12-25 16:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100610', 'tblTempUsageDetail_20' ) start [2024-12-25 16:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100610', 'tblTempUsageDetail_20' ) end [2024-12-25 16:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100610', 'tblTempVendorCDR_20' ) start [2024-12-25 16:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100610', 'tblTempVendorCDR_20' ) end [2024-12-25 16:02:17] Production.INFO: ProcessCDR(1,14100610,1,1,2) [2024-12-25 16:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100610', 'tblTempUsageDetail_20' ) start [2024-12-25 16:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100610', 'tblTempUsageDetail_20' ) end [2024-12-25 16:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:02:20] Production.INFO: ==5606== Releasing lock... [2024-12-25 16:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:02:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:03:04 [end_date_ymd] => 2024-12-25 16:03:04 [RateCDR] => 1 ) [2024-12-25 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-25 13:03:04' and `end` < '2024-12-25 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-25 16:03:17] Production.INFO: count ==1484 [2024-12-25 16:03:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:03:04 - End Time 2024-12-25 16:03:04 [2024-12-25 16:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100615', 'tblTempUsageDetail_20' ) start [2024-12-25 16:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100615', 'tblTempUsageDetail_20' ) end [2024-12-25 16:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100615', 'tblTempVendorCDR_20' ) start [2024-12-25 16:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100615', 'tblTempVendorCDR_20' ) end [2024-12-25 16:03:17] Production.INFO: ProcessCDR(1,14100615,1,1,2) [2024-12-25 16:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100615', 'tblTempUsageDetail_20' ) start [2024-12-25 16:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100615', 'tblTempUsageDetail_20' ) end [2024-12-25 16:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:03:20] Production.INFO: ==5681== Releasing lock... [2024-12-25 16:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:03:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-25 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:04:05 [end_date_ymd] => 2024-12-25 16:04:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:04:05' and `end` < '2024-12-25 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-25 16:04:18] Production.INFO: count ==1486 [2024-12-25 16:04:19] Production.ERROR: pbx CDR StartTime 2024-12-25 13:04:05 - End Time 2024-12-25 16:04:05 [2024-12-25 16:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100620', 'tblTempUsageDetail_20' ) start [2024-12-25 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100620', 'tblTempUsageDetail_20' ) end [2024-12-25 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100620', 'tblTempVendorCDR_20' ) start [2024-12-25 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100620', 'tblTempVendorCDR_20' ) end [2024-12-25 16:04:19] Production.INFO: ProcessCDR(1,14100620,1,1,2) [2024-12-25 16:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100620', 'tblTempUsageDetail_20' ) start [2024-12-25 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100620', 'tblTempUsageDetail_20' ) end [2024-12-25 16:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:04:22] Production.INFO: ==5755== Releasing lock... [2024-12-25 16:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:04:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-25 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:05:05 [end_date_ymd] => 2024-12-25 16:05:05 [RateCDR] => 1 ) [2024-12-25 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:05:05' and `end` < '2024-12-25 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:05:17] Production.INFO: count ==1501 [2024-12-25 16:05:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:05:05 - End Time 2024-12-25 16:05:05 [2024-12-25 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100625', 'tblTempUsageDetail_20' ) start [2024-12-25 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100625', 'tblTempUsageDetail_20' ) end [2024-12-25 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100625', 'tblTempVendorCDR_20' ) start [2024-12-25 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100625', 'tblTempVendorCDR_20' ) end [2024-12-25 16:05:18] Production.INFO: ProcessCDR(1,14100625,1,1,2) [2024-12-25 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100625', 'tblTempUsageDetail_20' ) start [2024-12-25 16:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100625', 'tblTempUsageDetail_20' ) end [2024-12-25 16:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:05:21] Production.INFO: ==5831== Releasing lock... [2024-12-25 16:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:05:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:06:05 [end_date_ymd] => 2024-12-25 16:06:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:06:05' and `end` < '2024-12-25 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-25 16:06:18] Production.INFO: count ==1491 [2024-12-25 16:06:19] Production.ERROR: pbx CDR StartTime 2024-12-25 13:06:05 - End Time 2024-12-25 16:06:05 [2024-12-25 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100630', 'tblTempUsageDetail_20' ) start [2024-12-25 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100630', 'tblTempUsageDetail_20' ) end [2024-12-25 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100630', 'tblTempVendorCDR_20' ) start [2024-12-25 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100630', 'tblTempVendorCDR_20' ) end [2024-12-25 16:06:19] Production.INFO: ProcessCDR(1,14100630,1,1,2) [2024-12-25 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100630', 'tblTempUsageDetail_20' ) start [2024-12-25 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100630', 'tblTempUsageDetail_20' ) end [2024-12-25 16:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:06:22] Production.INFO: ==5913== Releasing lock... [2024-12-25 16:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:06:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:07:04 [end_date_ymd] => 2024-12-25 16:07:04 [RateCDR] => 1 ) [2024-12-25 16:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:07:04' and `end` < '2024-12-25 16:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:07:17] Production.INFO: count ==1490 [2024-12-25 16:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:07:04 - End Time 2024-12-25 16:07:04 [2024-12-25 16:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100635', 'tblTempUsageDetail_20' ) start [2024-12-25 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100635', 'tblTempUsageDetail_20' ) end [2024-12-25 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100635', 'tblTempVendorCDR_20' ) start [2024-12-25 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100635', 'tblTempVendorCDR_20' ) end [2024-12-25 16:07:17] Production.INFO: ProcessCDR(1,14100635,1,1,2) [2024-12-25 16:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100635', 'tblTempUsageDetail_20' ) start [2024-12-25 16:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100635', 'tblTempUsageDetail_20' ) end [2024-12-25 16:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:07:20] Production.INFO: ==5992== Releasing lock... [2024-12-25 16:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:07:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-25 16:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:08:04 [end_date_ymd] => 2024-12-25 16:08:04 [RateCDR] => 1 ) [2024-12-25 16: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-25 13:08:04' and `end` < '2024-12-25 16: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-25 16:08:18] Production.INFO: count ==1487 [2024-12-25 16:08:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:08:04 - End Time 2024-12-25 16:08:04 [2024-12-25 16:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100640', 'tblTempUsageDetail_20' ) start [2024-12-25 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100640', 'tblTempUsageDetail_20' ) end [2024-12-25 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100640', 'tblTempVendorCDR_20' ) start [2024-12-25 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100640', 'tblTempVendorCDR_20' ) end [2024-12-25 16:08:19] Production.INFO: ProcessCDR(1,14100640,1,1,2) [2024-12-25 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100640', 'tblTempUsageDetail_20' ) start [2024-12-25 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100640', 'tblTempUsageDetail_20' ) end [2024-12-25 16:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:08:23] Production.INFO: ==6067== Releasing lock... [2024-12-25 16:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:08:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-25 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:09:05 [end_date_ymd] => 2024-12-25 16:09:05 [RateCDR] => 1 ) [2024-12-25 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:09:05' and `end` < '2024-12-25 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:09:18] Production.INFO: count ==1480 [2024-12-25 16:09:19] Production.ERROR: pbx CDR StartTime 2024-12-25 13:09:05 - End Time 2024-12-25 16:09:05 [2024-12-25 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100645', 'tblTempUsageDetail_20' ) start [2024-12-25 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100645', 'tblTempUsageDetail_20' ) end [2024-12-25 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100645', 'tblTempVendorCDR_20' ) start [2024-12-25 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100645', 'tblTempVendorCDR_20' ) end [2024-12-25 16:09:19] Production.INFO: ProcessCDR(1,14100645,1,1,2) [2024-12-25 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100645', 'tblTempUsageDetail_20' ) start [2024-12-25 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100645', 'tblTempUsageDetail_20' ) end [2024-12-25 16:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:09:22] Production.INFO: ==6144== Releasing lock... [2024-12-25 16:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:09:22] Production.INFO: 39 MB #Memory Used# [2024-12-25 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:10:06 [end_date_ymd] => 2024-12-25 16:10:06 [RateCDR] => 1 ) [2024-12-25 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:10:06' and `end` < '2024-12-25 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:10:18] Production.INFO: count ==1486 [2024-12-25 16:10:19] Production.ERROR: pbx CDR StartTime 2024-12-25 13:10:06 - End Time 2024-12-25 16:10:06 [2024-12-25 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100651', 'tblTempUsageDetail_20' ) start [2024-12-25 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100651', 'tblTempUsageDetail_20' ) end [2024-12-25 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100651', 'tblTempVendorCDR_20' ) start [2024-12-25 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100651', 'tblTempVendorCDR_20' ) end [2024-12-25 16:10:19] Production.INFO: ProcessCDR(1,14100651,1,1,2) [2024-12-25 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100651', 'tblTempUsageDetail_20' ) start [2024-12-25 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100651', 'tblTempUsageDetail_20' ) end [2024-12-25 16:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:10:22] Production.INFO: ==6221== Releasing lock... [2024-12-25 16:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:10:22] Production.INFO: 39 MB #Memory Used# [2024-12-25 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:11:05 [end_date_ymd] => 2024-12-25 16:11:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:11:05' and `end` < '2024-12-25 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-25 16:11:17] Production.INFO: count ==1497 [2024-12-25 16:11:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:11:05 - End Time 2024-12-25 16:11:05 [2024-12-25 16:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100656', 'tblTempUsageDetail_20' ) start [2024-12-25 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100656', 'tblTempUsageDetail_20' ) end [2024-12-25 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100656', 'tblTempVendorCDR_20' ) start [2024-12-25 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100656', 'tblTempVendorCDR_20' ) end [2024-12-25 16:11:17] Production.INFO: ProcessCDR(1,14100656,1,1,2) [2024-12-25 16:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100656', 'tblTempUsageDetail_20' ) start [2024-12-25 16:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100656', 'tblTempUsageDetail_20' ) end [2024-12-25 16:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:11:20] Production.INFO: ==6298== Releasing lock... [2024-12-25 16:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:11:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:12:05 [end_date_ymd] => 2024-12-25 16:12:05 [RateCDR] => 1 ) [2024-12-25 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:12:05' and `end` < '2024-12-25 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:12:17] Production.INFO: count ==1497 [2024-12-25 16:12:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:12:05 - End Time 2024-12-25 16:12:05 [2024-12-25 16:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100661', 'tblTempUsageDetail_20' ) start [2024-12-25 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100661', 'tblTempUsageDetail_20' ) end [2024-12-25 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100661', 'tblTempVendorCDR_20' ) start [2024-12-25 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100661', 'tblTempVendorCDR_20' ) end [2024-12-25 16:12:18] Production.INFO: ProcessCDR(1,14100661,1,1,2) [2024-12-25 16:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100661', 'tblTempUsageDetail_20' ) start [2024-12-25 16:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100661', 'tblTempUsageDetail_20' ) end [2024-12-25 16:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:12:21] Production.INFO: ==6372== Releasing lock... [2024-12-25 16:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:12:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:13:05 [end_date_ymd] => 2024-12-25 16:13:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:13:05' and `end` < '2024-12-25 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-25 16:13:18] Production.INFO: count ==1500 [2024-12-25 16:13:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:13:05 - End Time 2024-12-25 16:13:05 [2024-12-25 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100666', 'tblTempUsageDetail_20' ) start [2024-12-25 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100666', 'tblTempUsageDetail_20' ) end [2024-12-25 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100666', 'tblTempVendorCDR_20' ) start [2024-12-25 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100666', 'tblTempVendorCDR_20' ) end [2024-12-25 16:13:18] Production.INFO: ProcessCDR(1,14100666,1,1,2) [2024-12-25 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100666', 'tblTempUsageDetail_20' ) start [2024-12-25 16:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100666', 'tblTempUsageDetail_20' ) end [2024-12-25 16:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:13:22] Production.INFO: ==6447== Releasing lock... [2024-12-25 16:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:13:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:14:05 [end_date_ymd] => 2024-12-25 16:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:14:05' and `end` < '2024-12-25 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-25 16:14:18] Production.INFO: count ==1500 [2024-12-25 16:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:14:05 - End Time 2024-12-25 16:14:05 [2024-12-25 16:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100671', 'tblTempUsageDetail_20' ) start [2024-12-25 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100671', 'tblTempUsageDetail_20' ) end [2024-12-25 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100671', 'tblTempVendorCDR_20' ) start [2024-12-25 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100671', 'tblTempVendorCDR_20' ) end [2024-12-25 16:14:18] Production.INFO: ProcessCDR(1,14100671,1,1,2) [2024-12-25 16:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100671', 'tblTempUsageDetail_20' ) start [2024-12-25 16:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100671', 'tblTempUsageDetail_20' ) end [2024-12-25 16:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:14:21] Production.INFO: ==6523== Releasing lock... [2024-12-25 16:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:14:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:15:05 [end_date_ymd] => 2024-12-25 16:15:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:15:05' and `end` < '2024-12-25 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-25 16:15:17] Production.INFO: count ==1494 [2024-12-25 16:15:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:15:05 - End Time 2024-12-25 16:15:05 [2024-12-25 16:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100676', 'tblTempUsageDetail_20' ) start [2024-12-25 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100676', 'tblTempUsageDetail_20' ) end [2024-12-25 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100676', 'tblTempVendorCDR_20' ) start [2024-12-25 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100676', 'tblTempVendorCDR_20' ) end [2024-12-25 16:15:17] Production.INFO: ProcessCDR(1,14100676,1,1,2) [2024-12-25 16:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100676', 'tblTempUsageDetail_20' ) start [2024-12-25 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100676', 'tblTempUsageDetail_20' ) end [2024-12-25 16:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:15:21] Production.INFO: ==6601== Releasing lock... [2024-12-25 16:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:15:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:16:06 [end_date_ymd] => 2024-12-25 16:16:06 [RateCDR] => 1 ) [2024-12-25 16:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:16:06' and `end` < '2024-12-25 16:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:16:18] Production.INFO: count ==1479 [2024-12-25 16:16:19] Production.ERROR: pbx CDR StartTime 2024-12-25 13:16:06 - End Time 2024-12-25 16:16:06 [2024-12-25 16:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100681', 'tblTempUsageDetail_20' ) start [2024-12-25 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100681', 'tblTempUsageDetail_20' ) end [2024-12-25 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100681', 'tblTempVendorCDR_20' ) start [2024-12-25 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100681', 'tblTempVendorCDR_20' ) end [2024-12-25 16:16:19] Production.INFO: ProcessCDR(1,14100681,1,1,2) [2024-12-25 16:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100681', 'tblTempUsageDetail_20' ) start [2024-12-25 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100681', 'tblTempUsageDetail_20' ) end [2024-12-25 16:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:16:22] Production.INFO: ==6682== Releasing lock... [2024-12-25 16:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:16:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:17:05 [end_date_ymd] => 2024-12-25 16:17:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:17:05' and `end` < '2024-12-25 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-25 16:17:18] Production.INFO: count ==1472 [2024-12-25 16:17:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:17:05 - End Time 2024-12-25 16:17:05 [2024-12-25 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100686', 'tblTempUsageDetail_20' ) start [2024-12-25 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100686', 'tblTempUsageDetail_20' ) end [2024-12-25 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100686', 'tblTempVendorCDR_20' ) start [2024-12-25 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100686', 'tblTempVendorCDR_20' ) end [2024-12-25 16:17:19] Production.INFO: ProcessCDR(1,14100686,1,1,2) [2024-12-25 16:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100686', 'tblTempUsageDetail_20' ) start [2024-12-25 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100686', 'tblTempUsageDetail_20' ) end [2024-12-25 16:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:17:22] Production.INFO: ==6812== Releasing lock... [2024-12-25 16:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:17:22] Production.INFO: 39 MB #Memory Used# [2024-12-25 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:18:05 [end_date_ymd] => 2024-12-25 16:18:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:18:05' and `end` < '2024-12-25 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-25 16:18:18] Production.INFO: count ==1472 [2024-12-25 16:18:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:18:05 - End Time 2024-12-25 16:18:05 [2024-12-25 16:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100691', 'tblTempUsageDetail_20' ) start [2024-12-25 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100691', 'tblTempUsageDetail_20' ) end [2024-12-25 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100691', 'tblTempVendorCDR_20' ) start [2024-12-25 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100691', 'tblTempVendorCDR_20' ) end [2024-12-25 16:18:18] Production.INFO: ProcessCDR(1,14100691,1,1,2) [2024-12-25 16:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100691', 'tblTempUsageDetail_20' ) start [2024-12-25 16:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100691', 'tblTempUsageDetail_20' ) end [2024-12-25 16:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:18:21] Production.INFO: ==6886== Releasing lock... [2024-12-25 16:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:18:21] Production.INFO: 39 MB #Memory Used# [2024-12-25 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:19:04 [end_date_ymd] => 2024-12-25 16:19:04 [RateCDR] => 1 ) [2024-12-25 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-25 13:19:04' and `end` < '2024-12-25 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-25 16:19:17] Production.INFO: count ==1474 [2024-12-25 16:19:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:19:04 - End Time 2024-12-25 16:19:04 [2024-12-25 16:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100696', 'tblTempUsageDetail_20' ) start [2024-12-25 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100696', 'tblTempUsageDetail_20' ) end [2024-12-25 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100696', 'tblTempVendorCDR_20' ) start [2024-12-25 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100696', 'tblTempVendorCDR_20' ) end [2024-12-25 16:19:17] Production.INFO: ProcessCDR(1,14100696,1,1,2) [2024-12-25 16:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100696', 'tblTempUsageDetail_20' ) start [2024-12-25 16:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100696', 'tblTempUsageDetail_20' ) end [2024-12-25 16:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:19:20] Production.INFO: ==6968== Releasing lock... [2024-12-25 16:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:19:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:20:06 [end_date_ymd] => 2024-12-25 16:20:06 [RateCDR] => 1 ) [2024-12-25 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-25 13:20:06' and `end` < '2024-12-25 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-25 16:20:18] Production.INFO: count ==1480 [2024-12-25 16:20:19] Production.ERROR: pbx CDR StartTime 2024-12-25 13:20:06 - End Time 2024-12-25 16:20:06 [2024-12-25 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100702', 'tblTempUsageDetail_20' ) start [2024-12-25 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100702', 'tblTempUsageDetail_20' ) end [2024-12-25 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100702', 'tblTempVendorCDR_20' ) start [2024-12-25 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100702', 'tblTempVendorCDR_20' ) end [2024-12-25 16:20:19] Production.INFO: ProcessCDR(1,14100702,1,1,2) [2024-12-25 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100702', 'tblTempUsageDetail_20' ) start [2024-12-25 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100702', 'tblTempUsageDetail_20' ) end [2024-12-25 16:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:20:22] Production.INFO: ==7047== Releasing lock... [2024-12-25 16:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:20:22] Production.INFO: 39 MB #Memory Used# [2024-12-25 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:21:05 [end_date_ymd] => 2024-12-25 16:21:05 [RateCDR] => 1 ) [2024-12-25 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:21:05' and `end` < '2024-12-25 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:21:18] Production.INFO: count ==1488 [2024-12-25 16:21:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:21:05 - End Time 2024-12-25 16:21:05 [2024-12-25 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100707', 'tblTempUsageDetail_20' ) start [2024-12-25 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100707', 'tblTempUsageDetail_20' ) end [2024-12-25 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100707', 'tblTempVendorCDR_20' ) start [2024-12-25 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100707', 'tblTempVendorCDR_20' ) end [2024-12-25 16:21:18] Production.INFO: ProcessCDR(1,14100707,1,1,2) [2024-12-25 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100707', 'tblTempUsageDetail_20' ) start [2024-12-25 16:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100707', 'tblTempUsageDetail_20' ) end [2024-12-25 16:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:21:22] Production.INFO: ==7133== Releasing lock... [2024-12-25 16:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:21:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-25 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:22:05 [end_date_ymd] => 2024-12-25 16:22:05 [RateCDR] => 1 ) [2024-12-25 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:22:05' and `end` < '2024-12-25 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:22:19] Production.INFO: count ==1485 [2024-12-25 16:22:19] Production.ERROR: pbx CDR StartTime 2024-12-25 13:22:05 - End Time 2024-12-25 16:22:05 [2024-12-25 16:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100712', 'tblTempUsageDetail_20' ) start [2024-12-25 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100712', 'tblTempUsageDetail_20' ) end [2024-12-25 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100712', 'tblTempVendorCDR_20' ) start [2024-12-25 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100712', 'tblTempVendorCDR_20' ) end [2024-12-25 16:22:19] Production.INFO: ProcessCDR(1,14100712,1,1,2) [2024-12-25 16:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100712', 'tblTempUsageDetail_20' ) start [2024-12-25 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100712', 'tblTempUsageDetail_20' ) end [2024-12-25 16:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:22:22] Production.INFO: ==7283== Releasing lock... [2024-12-25 16:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:22:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:23:04 [end_date_ymd] => 2024-12-25 16:23:04 [RateCDR] => 1 ) [2024-12-25 16:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:23:04' and `end` < '2024-12-25 16:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:23:18] Production.INFO: count ==1484 [2024-12-25 16:23:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:23:04 - End Time 2024-12-25 16:23:04 [2024-12-25 16:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100717', 'tblTempUsageDetail_20' ) start [2024-12-25 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100717', 'tblTempUsageDetail_20' ) end [2024-12-25 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100717', 'tblTempVendorCDR_20' ) start [2024-12-25 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100717', 'tblTempVendorCDR_20' ) end [2024-12-25 16:23:18] Production.INFO: ProcessCDR(1,14100717,1,1,2) [2024-12-25 16:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100717', 'tblTempUsageDetail_20' ) start [2024-12-25 16:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100717', 'tblTempUsageDetail_20' ) end [2024-12-25 16:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:23:21] Production.INFO: ==7359== Releasing lock... [2024-12-25 16:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:23:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:24:05 [end_date_ymd] => 2024-12-25 16:24:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:24:05' and `end` < '2024-12-25 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-25 16:24:18] Production.INFO: count ==1481 [2024-12-25 16:24:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:24:05 - End Time 2024-12-25 16:24:05 [2024-12-25 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100722', 'tblTempUsageDetail_20' ) start [2024-12-25 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100722', 'tblTempUsageDetail_20' ) end [2024-12-25 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100722', 'tblTempVendorCDR_20' ) start [2024-12-25 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100722', 'tblTempVendorCDR_20' ) end [2024-12-25 16:24:18] Production.INFO: ProcessCDR(1,14100722,1,1,2) [2024-12-25 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100722', 'tblTempUsageDetail_20' ) start [2024-12-25 16:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100722', 'tblTempUsageDetail_20' ) end [2024-12-25 16:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:24:21] Production.INFO: ==7439== Releasing lock... [2024-12-25 16:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:24:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-25 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:25:05 [end_date_ymd] => 2024-12-25 16:25:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:25:05' and `end` < '2024-12-25 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-25 16:25:17] Production.INFO: count ==1481 [2024-12-25 16:25:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:25:05 - End Time 2024-12-25 16:25:05 [2024-12-25 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100727', 'tblTempUsageDetail_20' ) start [2024-12-25 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100727', 'tblTempUsageDetail_20' ) end [2024-12-25 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100727', 'tblTempVendorCDR_20' ) start [2024-12-25 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100727', 'tblTempVendorCDR_20' ) end [2024-12-25 16:25:18] Production.INFO: ProcessCDR(1,14100727,1,1,2) [2024-12-25 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100727', 'tblTempUsageDetail_20' ) start [2024-12-25 16:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100727', 'tblTempUsageDetail_20' ) end [2024-12-25 16:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:25:21] Production.INFO: ==7515== Releasing lock... [2024-12-25 16:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:25:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:26:05 [end_date_ymd] => 2024-12-25 16:26:05 [RateCDR] => 1 ) [2024-12-25 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:26:05' and `end` < '2024-12-25 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:26:17] Production.INFO: count ==1476 [2024-12-25 16:26:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:26:05 - End Time 2024-12-25 16:26:05 [2024-12-25 16:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100732', 'tblTempUsageDetail_20' ) start [2024-12-25 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100732', 'tblTempUsageDetail_20' ) end [2024-12-25 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100732', 'tblTempVendorCDR_20' ) start [2024-12-25 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100732', 'tblTempVendorCDR_20' ) end [2024-12-25 16:26:18] Production.INFO: ProcessCDR(1,14100732,1,1,2) [2024-12-25 16:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100732', 'tblTempUsageDetail_20' ) start [2024-12-25 16:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100732', 'tblTempUsageDetail_20' ) end [2024-12-25 16:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:26:21] Production.INFO: ==7597== Releasing lock... [2024-12-25 16:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:26:21] Production.INFO: 39 MB #Memory Used# [2024-12-25 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:27:05 [end_date_ymd] => 2024-12-25 16:27:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:27:05' and `end` < '2024-12-25 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-25 16:27:17] Production.INFO: count ==1471 [2024-12-25 16:27:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:27:05 - End Time 2024-12-25 16:27:05 [2024-12-25 16:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100737', 'tblTempUsageDetail_20' ) start [2024-12-25 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100737', 'tblTempUsageDetail_20' ) end [2024-12-25 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100737', 'tblTempVendorCDR_20' ) start [2024-12-25 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100737', 'tblTempVendorCDR_20' ) end [2024-12-25 16:27:17] Production.INFO: ProcessCDR(1,14100737,1,1,2) [2024-12-25 16:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100737', 'tblTempUsageDetail_20' ) start [2024-12-25 16:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100737', 'tblTempUsageDetail_20' ) end [2024-12-25 16:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:27:21] Production.INFO: ==7673== Releasing lock... [2024-12-25 16:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:27:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:28:05 [end_date_ymd] => 2024-12-25 16:28:05 [RateCDR] => 1 ) [2024-12-25 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:28:05' and `end` < '2024-12-25 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:28:17] Production.INFO: count ==1475 [2024-12-25 16:28:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:28:05 - End Time 2024-12-25 16:28:05 [2024-12-25 16:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100742', 'tblTempUsageDetail_20' ) start [2024-12-25 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100742', 'tblTempUsageDetail_20' ) end [2024-12-25 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100742', 'tblTempVendorCDR_20' ) start [2024-12-25 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100742', 'tblTempVendorCDR_20' ) end [2024-12-25 16:28:17] Production.INFO: ProcessCDR(1,14100742,1,1,2) [2024-12-25 16:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100742', 'tblTempUsageDetail_20' ) start [2024-12-25 16:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100742', 'tblTempUsageDetail_20' ) end [2024-12-25 16:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:28:21] Production.INFO: ==7753== Releasing lock... [2024-12-25 16:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:28:21] Production.INFO: 39 MB #Memory Used# [2024-12-25 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:29:05 [end_date_ymd] => 2024-12-25 16:29:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:29:05' and `end` < '2024-12-25 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-25 16:29:18] Production.INFO: count ==1477 [2024-12-25 16:29:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:29:05 - End Time 2024-12-25 16:29:05 [2024-12-25 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100747', 'tblTempUsageDetail_20' ) start [2024-12-25 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100747', 'tblTempUsageDetail_20' ) end [2024-12-25 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100747', 'tblTempVendorCDR_20' ) start [2024-12-25 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100747', 'tblTempVendorCDR_20' ) end [2024-12-25 16:29:18] Production.INFO: ProcessCDR(1,14100747,1,1,2) [2024-12-25 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100747', 'tblTempUsageDetail_20' ) start [2024-12-25 16:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100747', 'tblTempUsageDetail_20' ) end [2024-12-25 16:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:29:22] Production.INFO: ==7831== Releasing lock... [2024-12-25 16:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:29:22] Production.INFO: 39 MB #Memory Used# [2024-12-25 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:30:05 [end_date_ymd] => 2024-12-25 16:30:05 [RateCDR] => 1 ) [2024-12-25 16: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-25 13:30:05' and `end` < '2024-12-25 16: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-25 16:30:17] Production.INFO: count ==1487 [2024-12-25 16:30:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:30:05 - End Time 2024-12-25 16:30:05 [2024-12-25 16:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100753', 'tblTempUsageDetail_20' ) start [2024-12-25 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100753', 'tblTempUsageDetail_20' ) end [2024-12-25 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100753', 'tblTempVendorCDR_20' ) start [2024-12-25 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100753', 'tblTempVendorCDR_20' ) end [2024-12-25 16:30:18] Production.INFO: ProcessCDR(1,14100753,1,1,2) [2024-12-25 16:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100753', 'tblTempUsageDetail_20' ) start [2024-12-25 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100753', 'tblTempUsageDetail_20' ) end [2024-12-25 16:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:30:22] Production.INFO: ==7908== Releasing lock... [2024-12-25 16:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:30:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:31:05 [end_date_ymd] => 2024-12-25 16:31:05 [RateCDR] => 1 ) [2024-12-25 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:31:05' and `end` < '2024-12-25 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:31:17] Production.INFO: count ==1495 [2024-12-25 16:31:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:31:05 - End Time 2024-12-25 16:31:05 [2024-12-25 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100758', 'tblTempUsageDetail_20' ) start [2024-12-25 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100758', 'tblTempUsageDetail_20' ) end [2024-12-25 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100758', 'tblTempVendorCDR_20' ) start [2024-12-25 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100758', 'tblTempVendorCDR_20' ) end [2024-12-25 16:31:18] Production.INFO: ProcessCDR(1,14100758,1,1,2) [2024-12-25 16:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100758', 'tblTempUsageDetail_20' ) start [2024-12-25 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100758', 'tblTempUsageDetail_20' ) end [2024-12-25 16:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:31:21] Production.INFO: ==7987== Releasing lock... [2024-12-25 16:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:31:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:32:05 [end_date_ymd] => 2024-12-25 16:32:05 [RateCDR] => 1 ) [2024-12-25 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:32:05' and `end` < '2024-12-25 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:32:17] Production.INFO: count ==1498 [2024-12-25 16:32:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:32:05 - End Time 2024-12-25 16:32:05 [2024-12-25 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100763', 'tblTempUsageDetail_20' ) start [2024-12-25 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100763', 'tblTempUsageDetail_20' ) end [2024-12-25 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100763', 'tblTempVendorCDR_20' ) start [2024-12-25 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100763', 'tblTempVendorCDR_20' ) end [2024-12-25 16:32:18] Production.INFO: ProcessCDR(1,14100763,1,1,2) [2024-12-25 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100763', 'tblTempUsageDetail_20' ) start [2024-12-25 16:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100763', 'tblTempUsageDetail_20' ) end [2024-12-25 16:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:32:21] Production.INFO: ==8064== Releasing lock... [2024-12-25 16:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:32:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-25 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:33:05 [end_date_ymd] => 2024-12-25 16:33:05 [RateCDR] => 1 ) [2024-12-25 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:33:05' and `end` < '2024-12-25 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:33:18] Production.INFO: count ==1518 [2024-12-25 16:33:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:33:05 - End Time 2024-12-25 16:33:05 [2024-12-25 16:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100768', 'tblTempUsageDetail_20' ) start [2024-12-25 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100768', 'tblTempUsageDetail_20' ) end [2024-12-25 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100768', 'tblTempVendorCDR_20' ) start [2024-12-25 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100768', 'tblTempVendorCDR_20' ) end [2024-12-25 16:33:18] Production.INFO: ProcessCDR(1,14100768,1,1,2) [2024-12-25 16:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100768', 'tblTempUsageDetail_20' ) start [2024-12-25 16:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100768', 'tblTempUsageDetail_20' ) end [2024-12-25 16:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:33:21] Production.INFO: ==8180== Releasing lock... [2024-12-25 16:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:33:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-25 16:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:34:04 [end_date_ymd] => 2024-12-25 16:34:04 [RateCDR] => 1 ) [2024-12-25 16: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-25 13:34:04' and `end` < '2024-12-25 16: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-25 16:34:17] Production.INFO: count ==1520 [2024-12-25 16:34:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:34:04 - End Time 2024-12-25 16:34:04 [2024-12-25 16:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100773', 'tblTempUsageDetail_20' ) start [2024-12-25 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100773', 'tblTempUsageDetail_20' ) end [2024-12-25 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100773', 'tblTempVendorCDR_20' ) start [2024-12-25 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100773', 'tblTempVendorCDR_20' ) end [2024-12-25 16:34:17] Production.INFO: ProcessCDR(1,14100773,1,1,2) [2024-12-25 16:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100773', 'tblTempUsageDetail_20' ) start [2024-12-25 16:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100773', 'tblTempUsageDetail_20' ) end [2024-12-25 16:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:34:20] Production.INFO: ==8260== Releasing lock... [2024-12-25 16:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:34:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-25 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:35:05 [end_date_ymd] => 2024-12-25 16:35:05 [RateCDR] => 1 ) [2024-12-25 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:35:05' and `end` < '2024-12-25 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:35:19] Production.INFO: count ==1537 [2024-12-25 16:35:19] Production.ERROR: pbx CDR StartTime 2024-12-25 13:35:05 - End Time 2024-12-25 16:35:05 [2024-12-25 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100778', 'tblTempUsageDetail_20' ) start [2024-12-25 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100778', 'tblTempUsageDetail_20' ) end [2024-12-25 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100778', 'tblTempVendorCDR_20' ) start [2024-12-25 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100778', 'tblTempVendorCDR_20' ) end [2024-12-25 16:35:19] Production.INFO: ProcessCDR(1,14100778,1,1,2) [2024-12-25 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100778', 'tblTempUsageDetail_20' ) start [2024-12-25 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100778', 'tblTempUsageDetail_20' ) end [2024-12-25 16:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:35:22] Production.INFO: ==8341== Releasing lock... [2024-12-25 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:35:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-25 16:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:36:04 [end_date_ymd] => 2024-12-25 16:36:04 [RateCDR] => 1 ) [2024-12-25 16: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-25 13:36:04' and `end` < '2024-12-25 16: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-25 16:36:16] Production.INFO: count ==1528 [2024-12-25 16:36:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:36:04 - End Time 2024-12-25 16:36:04 [2024-12-25 16:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100783', 'tblTempUsageDetail_20' ) start [2024-12-25 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100783', 'tblTempUsageDetail_20' ) end [2024-12-25 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100783', 'tblTempVendorCDR_20' ) start [2024-12-25 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100783', 'tblTempVendorCDR_20' ) end [2024-12-25 16:36:17] Production.INFO: ProcessCDR(1,14100783,1,1,2) [2024-12-25 16:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100783', 'tblTempUsageDetail_20' ) start [2024-12-25 16:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100783', 'tblTempUsageDetail_20' ) end [2024-12-25 16:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:36:20] Production.INFO: ==8414== Releasing lock... [2024-12-25 16:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:36:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-25 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:37:05 [end_date_ymd] => 2024-12-25 16:37:05 [RateCDR] => 1 ) [2024-12-25 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:37:05' and `end` < '2024-12-25 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:37:19] Production.INFO: count ==1538 [2024-12-25 16:37:19] Production.ERROR: pbx CDR StartTime 2024-12-25 13:37:05 - End Time 2024-12-25 16:37:05 [2024-12-25 16:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100788', 'tblTempUsageDetail_20' ) start [2024-12-25 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100788', 'tblTempUsageDetail_20' ) end [2024-12-25 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100788', 'tblTempVendorCDR_20' ) start [2024-12-25 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100788', 'tblTempVendorCDR_20' ) end [2024-12-25 16:37:19] Production.INFO: ProcessCDR(1,14100788,1,1,2) [2024-12-25 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100788', 'tblTempUsageDetail_20' ) start [2024-12-25 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100788', 'tblTempUsageDetail_20' ) end [2024-12-25 16:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:37:22] Production.INFO: ==8493== Releasing lock... [2024-12-25 16:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:37:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-25 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:38:05 [end_date_ymd] => 2024-12-25 16:38:05 [RateCDR] => 1 ) [2024-12-25 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:38:05' and `end` < '2024-12-25 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:38:18] Production.INFO: count ==1541 [2024-12-25 16:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:38:05 - End Time 2024-12-25 16:38:05 [2024-12-25 16:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100793', 'tblTempUsageDetail_20' ) start [2024-12-25 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100793', 'tblTempUsageDetail_20' ) end [2024-12-25 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100793', 'tblTempVendorCDR_20' ) start [2024-12-25 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100793', 'tblTempVendorCDR_20' ) end [2024-12-25 16:38:18] Production.INFO: ProcessCDR(1,14100793,1,1,2) [2024-12-25 16:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100793', 'tblTempUsageDetail_20' ) start [2024-12-25 16:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100793', 'tblTempUsageDetail_20' ) end [2024-12-25 16:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:38:21] Production.INFO: ==8568== Releasing lock... [2024-12-25 16:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:38:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-25 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:39:04 [end_date_ymd] => 2024-12-25 16:39:04 [RateCDR] => 1 ) [2024-12-25 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-25 13:39:04' and `end` < '2024-12-25 16: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-25 16:39:17] Production.INFO: count ==1545 [2024-12-25 16:39:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:39:04 - End Time 2024-12-25 16:39:04 [2024-12-25 16:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100798', 'tblTempUsageDetail_20' ) start [2024-12-25 16:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100798', 'tblTempUsageDetail_20' ) end [2024-12-25 16:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100798', 'tblTempVendorCDR_20' ) start [2024-12-25 16:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100798', 'tblTempVendorCDR_20' ) end [2024-12-25 16:39:17] Production.INFO: ProcessCDR(1,14100798,1,1,2) [2024-12-25 16:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100798', 'tblTempUsageDetail_20' ) start [2024-12-25 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100798', 'tblTempUsageDetail_20' ) end [2024-12-25 16:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:39:22] Production.INFO: ==8647== Releasing lock... [2024-12-25 16:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:39:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-25 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:40:05 [end_date_ymd] => 2024-12-25 16:40:05 [RateCDR] => 1 ) [2024-12-25 16:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:40:05' and `end` < '2024-12-25 16:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:40:18] Production.INFO: count ==1573 [2024-12-25 16:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:40:05 - End Time 2024-12-25 16:40:05 [2024-12-25 16:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100804', 'tblTempUsageDetail_20' ) start [2024-12-25 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100804', 'tblTempUsageDetail_20' ) end [2024-12-25 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100804', 'tblTempVendorCDR_20' ) start [2024-12-25 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100804', 'tblTempVendorCDR_20' ) end [2024-12-25 16:40:18] Production.INFO: ProcessCDR(1,14100804,1,1,2) [2024-12-25 16:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100804', 'tblTempUsageDetail_20' ) start [2024-12-25 16:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100804', 'tblTempUsageDetail_20' ) end [2024-12-25 16:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:40:21] Production.INFO: ==8724== Releasing lock... [2024-12-25 16:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:40:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-25 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:41:05 [end_date_ymd] => 2024-12-25 16:41:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:41:05' and `end` < '2024-12-25 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-25 16:41:17] Production.INFO: count ==1635 [2024-12-25 16:41:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:41:05 - End Time 2024-12-25 16:41:05 [2024-12-25 16:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100809', 'tblTempUsageDetail_20' ) start [2024-12-25 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100809', 'tblTempUsageDetail_20' ) end [2024-12-25 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100809', 'tblTempVendorCDR_20' ) start [2024-12-25 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100809', 'tblTempVendorCDR_20' ) end [2024-12-25 16:41:18] Production.INFO: ProcessCDR(1,14100809,1,1,2) [2024-12-25 16:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100809', 'tblTempUsageDetail_20' ) start [2024-12-25 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100809', 'tblTempUsageDetail_20' ) end [2024-12-25 16:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:41:22] Production.INFO: ==8807== Releasing lock... [2024-12-25 16:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:41:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-25 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:42:05 [end_date_ymd] => 2024-12-25 16:42:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:42:05' and `end` < '2024-12-25 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-25 16:42:17] Production.INFO: count ==1617 [2024-12-25 16:42:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:42:05 - End Time 2024-12-25 16:42:05 [2024-12-25 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100814', 'tblTempUsageDetail_20' ) start [2024-12-25 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100814', 'tblTempUsageDetail_20' ) end [2024-12-25 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100814', 'tblTempVendorCDR_20' ) start [2024-12-25 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100814', 'tblTempVendorCDR_20' ) end [2024-12-25 16:42:18] Production.INFO: ProcessCDR(1,14100814,1,1,2) [2024-12-25 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100814', 'tblTempUsageDetail_20' ) start [2024-12-25 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100814', 'tblTempUsageDetail_20' ) end [2024-12-25 16:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:42:21] Production.INFO: ==8882== Releasing lock... [2024-12-25 16:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:42:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-25 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:43:04 [end_date_ymd] => 2024-12-25 16:43:04 [RateCDR] => 1 ) [2024-12-25 16:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:43:04' and `end` < '2024-12-25 16:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:43:18] Production.INFO: count ==1609 [2024-12-25 16:43:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:43:04 - End Time 2024-12-25 16:43:04 [2024-12-25 16:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100819', 'tblTempUsageDetail_20' ) start [2024-12-25 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100819', 'tblTempUsageDetail_20' ) end [2024-12-25 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100819', 'tblTempVendorCDR_20' ) start [2024-12-25 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100819', 'tblTempVendorCDR_20' ) end [2024-12-25 16:43:18] Production.INFO: ProcessCDR(1,14100819,1,1,2) [2024-12-25 16:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100819', 'tblTempUsageDetail_20' ) start [2024-12-25 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100819', 'tblTempUsageDetail_20' ) end [2024-12-25 16:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:43:21] Production.INFO: ==8961== Releasing lock... [2024-12-25 16:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:43:21] Production.INFO: 40 MB #Memory Used# [2024-12-25 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:44:05 [end_date_ymd] => 2024-12-25 16:44:05 [RateCDR] => 1 ) [2024-12-25 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:44:05' and `end` < '2024-12-25 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:44:18] Production.INFO: count ==1600 [2024-12-25 16:44:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:44:05 - End Time 2024-12-25 16:44:05 [2024-12-25 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100824', 'tblTempUsageDetail_20' ) start [2024-12-25 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100824', 'tblTempUsageDetail_20' ) end [2024-12-25 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100824', 'tblTempVendorCDR_20' ) start [2024-12-25 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100824', 'tblTempVendorCDR_20' ) end [2024-12-25 16:44:18] Production.INFO: ProcessCDR(1,14100824,1,1,2) [2024-12-25 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100824', 'tblTempUsageDetail_20' ) start [2024-12-25 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100824', 'tblTempUsageDetail_20' ) end [2024-12-25 16:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:44:22] Production.INFO: ==9039== Releasing lock... [2024-12-25 16:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:44:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-25 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:45:05 [end_date_ymd] => 2024-12-25 16:45:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:45:05' and `end` < '2024-12-25 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-25 16:45:17] Production.INFO: count ==1605 [2024-12-25 16:45:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:45:05 - End Time 2024-12-25 16:45:05 [2024-12-25 16:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100829', 'tblTempUsageDetail_20' ) start [2024-12-25 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100829', 'tblTempUsageDetail_20' ) end [2024-12-25 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100829', 'tblTempVendorCDR_20' ) start [2024-12-25 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100829', 'tblTempVendorCDR_20' ) end [2024-12-25 16:45:18] Production.INFO: ProcessCDR(1,14100829,1,1,2) [2024-12-25 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100829', 'tblTempUsageDetail_20' ) start [2024-12-25 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100829', 'tblTempUsageDetail_20' ) end [2024-12-25 16:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:45:21] Production.INFO: ==9118== Releasing lock... [2024-12-25 16:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:45:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-25 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:46:05 [end_date_ymd] => 2024-12-25 16:46:05 [RateCDR] => 1 ) [2024-12-25 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:46:05' and `end` < '2024-12-25 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:46:17] Production.INFO: count ==1614 [2024-12-25 16:46:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:46:05 - End Time 2024-12-25 16:46:05 [2024-12-25 16:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100834', 'tblTempUsageDetail_20' ) start [2024-12-25 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100834', 'tblTempUsageDetail_20' ) end [2024-12-25 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100834', 'tblTempVendorCDR_20' ) start [2024-12-25 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100834', 'tblTempVendorCDR_20' ) end [2024-12-25 16:46:17] Production.INFO: ProcessCDR(1,14100834,1,1,2) [2024-12-25 16:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100834', 'tblTempUsageDetail_20' ) start [2024-12-25 16:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100834', 'tblTempUsageDetail_20' ) end [2024-12-25 16:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:46:21] Production.INFO: ==9195== Releasing lock... [2024-12-25 16:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:46:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-25 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:47:05 [end_date_ymd] => 2024-12-25 16:47:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:47:05' and `end` < '2024-12-25 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-25 16:47:18] Production.INFO: count ==1622 [2024-12-25 16:47:19] Production.ERROR: pbx CDR StartTime 2024-12-25 13:47:05 - End Time 2024-12-25 16:47:05 [2024-12-25 16:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100839', 'tblTempUsageDetail_20' ) start [2024-12-25 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100839', 'tblTempUsageDetail_20' ) end [2024-12-25 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100839', 'tblTempVendorCDR_20' ) start [2024-12-25 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100839', 'tblTempVendorCDR_20' ) end [2024-12-25 16:47:19] Production.INFO: ProcessCDR(1,14100839,1,1,2) [2024-12-25 16:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100839', 'tblTempUsageDetail_20' ) start [2024-12-25 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100839', 'tblTempUsageDetail_20' ) end [2024-12-25 16:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:47:22] Production.INFO: ==9275== Releasing lock... [2024-12-25 16:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:47:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-25 16:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:48:04 [end_date_ymd] => 2024-12-25 16:48:04 [RateCDR] => 1 ) [2024-12-25 16: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-25 13:48:04' and `end` < '2024-12-25 16: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-25 16:48:17] Production.INFO: count ==1643 [2024-12-25 16:48:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:48:04 - End Time 2024-12-25 16:48:04 [2024-12-25 16:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100844', 'tblTempUsageDetail_20' ) start [2024-12-25 16:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100844', 'tblTempUsageDetail_20' ) end [2024-12-25 16:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100844', 'tblTempVendorCDR_20' ) start [2024-12-25 16:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100844', 'tblTempVendorCDR_20' ) end [2024-12-25 16:48:17] Production.INFO: ProcessCDR(1,14100844,1,1,2) [2024-12-25 16:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100844', 'tblTempUsageDetail_20' ) start [2024-12-25 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100844', 'tblTempUsageDetail_20' ) end [2024-12-25 16:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:48:22] Production.INFO: ==9394== Releasing lock... [2024-12-25 16:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:48:22] Production.INFO: 41 MB #Memory Used# [2024-12-25 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:49:05 [end_date_ymd] => 2024-12-25 16:49:05 [RateCDR] => 1 ) [2024-12-25 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:49:05' and `end` < '2024-12-25 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:49:17] Production.INFO: count ==1663 [2024-12-25 16:49:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:49:05 - End Time 2024-12-25 16:49:05 [2024-12-25 16:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100849', 'tblTempUsageDetail_20' ) start [2024-12-25 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100849', 'tblTempUsageDetail_20' ) end [2024-12-25 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100849', 'tblTempVendorCDR_20' ) start [2024-12-25 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100849', 'tblTempVendorCDR_20' ) end [2024-12-25 16:49:17] Production.INFO: ProcessCDR(1,14100849,1,1,2) [2024-12-25 16:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100849', 'tblTempUsageDetail_20' ) start [2024-12-25 16:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100849', 'tblTempUsageDetail_20' ) end [2024-12-25 16:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:49:20] Production.INFO: ==9475== Releasing lock... [2024-12-25 16:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:49:20] Production.INFO: 41 MB #Memory Used# [2024-12-25 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:50:06 [end_date_ymd] => 2024-12-25 16:50:06 [RateCDR] => 1 ) [2024-12-25 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-25 13:50:06' and `end` < '2024-12-25 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-25 16:50:18] Production.INFO: count ==1663 [2024-12-25 16:50:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:50:06 - End Time 2024-12-25 16:50:06 [2024-12-25 16:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100854', 'tblTempUsageDetail_20' ) start [2024-12-25 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100854', 'tblTempUsageDetail_20' ) end [2024-12-25 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100854', 'tblTempVendorCDR_20' ) start [2024-12-25 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100854', 'tblTempVendorCDR_20' ) end [2024-12-25 16:50:18] Production.INFO: ProcessCDR(1,14100854,1,1,2) [2024-12-25 16:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100854', 'tblTempUsageDetail_20' ) start [2024-12-25 16:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100854', 'tblTempUsageDetail_20' ) end [2024-12-25 16:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:50:21] Production.INFO: ==9554== Releasing lock... [2024-12-25 16:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:50:21] Production.INFO: 41 MB #Memory Used# [2024-12-25 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:51:05 [end_date_ymd] => 2024-12-25 16:51:05 [RateCDR] => 1 ) [2024-12-25 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:51:05' and `end` < '2024-12-25 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:51:17] Production.INFO: count ==1699 [2024-12-25 16:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:51:05 - End Time 2024-12-25 16:51:05 [2024-12-25 16:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100860', 'tblTempUsageDetail_20' ) start [2024-12-25 16:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100860', 'tblTempUsageDetail_20' ) end [2024-12-25 16:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100860', 'tblTempVendorCDR_20' ) start [2024-12-25 16:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100860', 'tblTempVendorCDR_20' ) end [2024-12-25 16:51:17] Production.INFO: ProcessCDR(1,14100860,1,1,2) [2024-12-25 16:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100860', 'tblTempUsageDetail_20' ) start [2024-12-25 16:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100860', 'tblTempUsageDetail_20' ) end [2024-12-25 16:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:51:20] Production.INFO: ==9631== Releasing lock... [2024-12-25 16:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:51:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-25 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:52:05 [end_date_ymd] => 2024-12-25 16:52:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:52:05' and `end` < '2024-12-25 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-25 16:52:18] Production.INFO: count ==1702 [2024-12-25 16:52:19] Production.ERROR: pbx CDR StartTime 2024-12-25 13:52:05 - End Time 2024-12-25 16:52:05 [2024-12-25 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100865', 'tblTempUsageDetail_20' ) start [2024-12-25 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100865', 'tblTempUsageDetail_20' ) end [2024-12-25 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100865', 'tblTempVendorCDR_20' ) start [2024-12-25 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100865', 'tblTempVendorCDR_20' ) end [2024-12-25 16:52:19] Production.INFO: ProcessCDR(1,14100865,1,1,2) [2024-12-25 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100865', 'tblTempUsageDetail_20' ) start [2024-12-25 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100865', 'tblTempUsageDetail_20' ) end [2024-12-25 16:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:52:23] Production.INFO: ==9709== Releasing lock... [2024-12-25 16:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:52:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-25 16:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:53:04 [end_date_ymd] => 2024-12-25 16:53:04 [RateCDR] => 1 ) [2024-12-25 16:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:53:04' and `end` < '2024-12-25 16:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:53:17] Production.INFO: count ==1704 [2024-12-25 16:53:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:53:04 - End Time 2024-12-25 16:53:04 [2024-12-25 16:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100870', 'tblTempUsageDetail_20' ) start [2024-12-25 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100870', 'tblTempUsageDetail_20' ) end [2024-12-25 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100870', 'tblTempVendorCDR_20' ) start [2024-12-25 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100870', 'tblTempVendorCDR_20' ) end [2024-12-25 16:53:17] Production.INFO: ProcessCDR(1,14100870,1,1,2) [2024-12-25 16:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100870', 'tblTempUsageDetail_20' ) start [2024-12-25 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100870', 'tblTempUsageDetail_20' ) end [2024-12-25 16:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:53:22] Production.INFO: ==9784== Releasing lock... [2024-12-25 16:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:53:22] Production.INFO: 41 MB #Memory Used# [2024-12-25 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:54:05 [end_date_ymd] => 2024-12-25 16:54:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:54:05' and `end` < '2024-12-25 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-25 16:54:17] Production.INFO: count ==1707 [2024-12-25 16:54:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:54:05 - End Time 2024-12-25 16:54:05 [2024-12-25 16:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100875', 'tblTempUsageDetail_20' ) start [2024-12-25 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100875', 'tblTempUsageDetail_20' ) end [2024-12-25 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100875', 'tblTempVendorCDR_20' ) start [2024-12-25 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100875', 'tblTempVendorCDR_20' ) end [2024-12-25 16:54:17] Production.INFO: ProcessCDR(1,14100875,1,1,2) [2024-12-25 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100875', 'tblTempUsageDetail_20' ) start [2024-12-25 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100875', 'tblTempUsageDetail_20' ) end [2024-12-25 16:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:54:21] Production.INFO: ==9862== Releasing lock... [2024-12-25 16:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:54:21] Production.INFO: 41 MB #Memory Used# [2024-12-25 16:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:55:04 [end_date_ymd] => 2024-12-25 16:55:04 [RateCDR] => 1 ) [2024-12-25 16:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:55:04' and `end` < '2024-12-25 16:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:55:16] Production.INFO: count ==1711 [2024-12-25 16:55:17] Production.ERROR: pbx CDR StartTime 2024-12-25 13:55:04 - End Time 2024-12-25 16:55:04 [2024-12-25 16:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100877', 'tblTempUsageDetail_20' ) start [2024-12-25 16:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100877', 'tblTempUsageDetail_20' ) end [2024-12-25 16:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100877', 'tblTempVendorCDR_20' ) start [2024-12-25 16:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100877', 'tblTempVendorCDR_20' ) end [2024-12-25 16:55:17] Production.INFO: ProcessCDR(1,14100877,1,1,2) [2024-12-25 16:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100877', 'tblTempUsageDetail_20' ) start [2024-12-25 16:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100877', 'tblTempUsageDetail_20' ) end [2024-12-25 16:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:55:20] Production.INFO: ==9941== Releasing lock... [2024-12-25 16:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:55:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-25 16:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:56:04 [end_date_ymd] => 2024-12-25 16:56:04 [RateCDR] => 1 ) [2024-12-25 16: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-25 13:56:04' and `end` < '2024-12-25 16:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:56:18] Production.INFO: count ==1714 [2024-12-25 16:56:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:56:04 - End Time 2024-12-25 16:56:04 [2024-12-25 16:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100885', 'tblTempUsageDetail_20' ) start [2024-12-25 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100885', 'tblTempUsageDetail_20' ) end [2024-12-25 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100885', 'tblTempVendorCDR_20' ) start [2024-12-25 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100885', 'tblTempVendorCDR_20' ) end [2024-12-25 16:56:18] Production.INFO: ProcessCDR(1,14100885,1,1,2) [2024-12-25 16:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100885', 'tblTempUsageDetail_20' ) start [2024-12-25 16:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100885', 'tblTempUsageDetail_20' ) end [2024-12-25 16:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:56:21] Production.INFO: ==10023== Releasing lock... [2024-12-25 16:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:56:21] Production.INFO: 41 MB #Memory Used# [2024-12-25 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:57:05 [end_date_ymd] => 2024-12-25 16:57:05 [RateCDR] => 1 ) [2024-12-25 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:57:05' and `end` < '2024-12-25 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:57:18] Production.INFO: count ==1712 [2024-12-25 16:57:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:57:05 - End Time 2024-12-25 16:57:05 [2024-12-25 16:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100890', 'tblTempUsageDetail_20' ) start [2024-12-25 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100890', 'tblTempUsageDetail_20' ) end [2024-12-25 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100890', 'tblTempVendorCDR_20' ) start [2024-12-25 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100890', 'tblTempVendorCDR_20' ) end [2024-12-25 16:57:18] Production.INFO: ProcessCDR(1,14100890,1,1,2) [2024-12-25 16:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100890', 'tblTempUsageDetail_20' ) start [2024-12-25 16:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100890', 'tblTempUsageDetail_20' ) end [2024-12-25 16:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:57:21] Production.INFO: ==10105== Releasing lock... [2024-12-25 16:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:57:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-25 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:58:05 [end_date_ymd] => 2024-12-25 16:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 13:58:05' and `end` < '2024-12-25 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-25 16:58:18] Production.INFO: count ==1711 [2024-12-25 16:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:58:05 - End Time 2024-12-25 16:58:05 [2024-12-25 16:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100895', 'tblTempUsageDetail_20' ) start [2024-12-25 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100895', 'tblTempUsageDetail_20' ) end [2024-12-25 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100895', 'tblTempVendorCDR_20' ) start [2024-12-25 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100895', 'tblTempVendorCDR_20' ) end [2024-12-25 16:58:19] Production.INFO: ProcessCDR(1,14100895,1,1,2) [2024-12-25 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100895', 'tblTempUsageDetail_20' ) start [2024-12-25 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100895', 'tblTempUsageDetail_20' ) end [2024-12-25 16:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:58:22] Production.INFO: ==10182== Releasing lock... [2024-12-25 16:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:58:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-25 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 13:59:05 [end_date_ymd] => 2024-12-25 16:59:05 [RateCDR] => 1 ) [2024-12-25 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 13:59:05' and `end` < '2024-12-25 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 16:59:17] Production.INFO: count ==1713 [2024-12-25 16:59:18] Production.ERROR: pbx CDR StartTime 2024-12-25 13:59:05 - End Time 2024-12-25 16:59:05 [2024-12-25 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100900', 'tblTempUsageDetail_20' ) start [2024-12-25 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100900', 'tblTempUsageDetail_20' ) end [2024-12-25 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100900', 'tblTempVendorCDR_20' ) start [2024-12-25 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100900', 'tblTempVendorCDR_20' ) end [2024-12-25 16:59:18] Production.INFO: ProcessCDR(1,14100900,1,1,2) [2024-12-25 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 16:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 16:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100900', 'tblTempUsageDetail_20' ) start [2024-12-25 16:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100900', 'tblTempUsageDetail_20' ) end [2024-12-25 16:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 16:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 16:59:21] Production.INFO: ==10262== Releasing lock... [2024-12-25 16:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 16:59:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-25 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:00:05 [end_date_ymd] => 2024-12-25 17:00:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:00:05' and `end` < '2024-12-25 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-25 17:00:17] Production.INFO: count ==1714 [2024-12-25 17:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:00:05 - End Time 2024-12-25 17:00:05 [2024-12-25 17:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100906', 'tblTempUsageDetail_20' ) start [2024-12-25 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100906', 'tblTempUsageDetail_20' ) end [2024-12-25 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100906', 'tblTempVendorCDR_20' ) start [2024-12-25 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100906', 'tblTempVendorCDR_20' ) end [2024-12-25 17:00:18] Production.INFO: ProcessCDR(1,14100906,1,1,2) [2024-12-25 17:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100906', 'tblTempUsageDetail_20' ) start [2024-12-25 17:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100906', 'tblTempUsageDetail_20' ) end [2024-12-25 17:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:00:21] Production.INFO: ==10339== Releasing lock... [2024-12-25 17:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:00:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-25 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:01:05 [end_date_ymd] => 2024-12-25 17:01:05 [RateCDR] => 1 ) [2024-12-25 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:01:05' and `end` < '2024-12-25 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:01:18] Production.INFO: count ==1727 [2024-12-25 17:01:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:01:05 - End Time 2024-12-25 17:01:05 [2024-12-25 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100911', 'tblTempUsageDetail_20' ) start [2024-12-25 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100911', 'tblTempUsageDetail_20' ) end [2024-12-25 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100911', 'tblTempVendorCDR_20' ) start [2024-12-25 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100911', 'tblTempVendorCDR_20' ) end [2024-12-25 17:01:18] Production.INFO: ProcessCDR(1,14100911,1,1,2) [2024-12-25 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100911', 'tblTempUsageDetail_20' ) start [2024-12-25 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100911', 'tblTempUsageDetail_20' ) end [2024-12-25 17:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:01:22] Production.INFO: ==10437== Releasing lock... [2024-12-25 17:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:01:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-25 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:02:05 [end_date_ymd] => 2024-12-25 17:02:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:02:05' and `end` < '2024-12-25 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-25 17:02:17] Production.INFO: count ==1734 [2024-12-25 17:02:17] Production.ERROR: pbx CDR StartTime 2024-12-25 14:02:05 - End Time 2024-12-25 17:02:05 [2024-12-25 17:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100916', 'tblTempUsageDetail_20' ) start [2024-12-25 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100916', 'tblTempUsageDetail_20' ) end [2024-12-25 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100916', 'tblTempVendorCDR_20' ) start [2024-12-25 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100916', 'tblTempVendorCDR_20' ) end [2024-12-25 17:02:17] Production.INFO: ProcessCDR(1,14100916,1,1,2) [2024-12-25 17:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100916', 'tblTempUsageDetail_20' ) start [2024-12-25 17:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100916', 'tblTempUsageDetail_20' ) end [2024-12-25 17:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:02:21] Production.INFO: ==10516== Releasing lock... [2024-12-25 17:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:02:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-25 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:03:05 [end_date_ymd] => 2024-12-25 17:03:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:03:05' and `end` < '2024-12-25 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-25 17:03:17] Production.INFO: count ==1732 [2024-12-25 17:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:03:05 - End Time 2024-12-25 17:03:05 [2024-12-25 17:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100921', 'tblTempUsageDetail_20' ) start [2024-12-25 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100921', 'tblTempUsageDetail_20' ) end [2024-12-25 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100921', 'tblTempVendorCDR_20' ) start [2024-12-25 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100921', 'tblTempVendorCDR_20' ) end [2024-12-25 17:03:18] Production.INFO: ProcessCDR(1,14100921,1,1,2) [2024-12-25 17:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100921', 'tblTempUsageDetail_20' ) start [2024-12-25 17:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100921', 'tblTempUsageDetail_20' ) end [2024-12-25 17:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:03:21] Production.INFO: ==10600== Releasing lock... [2024-12-25 17:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:03:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 17:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:04:04 [end_date_ymd] => 2024-12-25 17:04:04 [RateCDR] => 1 ) [2024-12-25 17: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-25 14:04:04' and `end` < '2024-12-25 17: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-25 17:04:17] Production.INFO: count ==1731 [2024-12-25 17:04:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:04:04 - End Time 2024-12-25 17:04:04 [2024-12-25 17:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100926', 'tblTempUsageDetail_20' ) start [2024-12-25 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100926', 'tblTempUsageDetail_20' ) end [2024-12-25 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100926', 'tblTempVendorCDR_20' ) start [2024-12-25 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100926', 'tblTempVendorCDR_20' ) end [2024-12-25 17:04:18] Production.INFO: ProcessCDR(1,14100926,1,1,2) [2024-12-25 17:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100926', 'tblTempUsageDetail_20' ) start [2024-12-25 17:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100926', 'tblTempUsageDetail_20' ) end [2024-12-25 17:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:04:21] Production.INFO: ==10715== Releasing lock... [2024-12-25 17:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:04:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-25 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:05:05 [end_date_ymd] => 2024-12-25 17:05:05 [RateCDR] => 1 ) [2024-12-25 17: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-25 14:05:05' and `end` < '2024-12-25 17: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-25 17:05:17] Production.INFO: count ==1717 [2024-12-25 17:05:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:05:05 - End Time 2024-12-25 17:05:05 [2024-12-25 17:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100931', 'tblTempUsageDetail_20' ) start [2024-12-25 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100931', 'tblTempUsageDetail_20' ) end [2024-12-25 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100931', 'tblTempVendorCDR_20' ) start [2024-12-25 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100931', 'tblTempVendorCDR_20' ) end [2024-12-25 17:05:18] Production.INFO: ProcessCDR(1,14100931,1,1,2) [2024-12-25 17:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100931', 'tblTempUsageDetail_20' ) start [2024-12-25 17:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100931', 'tblTempUsageDetail_20' ) end [2024-12-25 17:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:05:21] Production.INFO: ==10796== Releasing lock... [2024-12-25 17:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:05:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-25 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:06:05 [end_date_ymd] => 2024-12-25 17:06:05 [RateCDR] => 1 ) [2024-12-25 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:06:05' and `end` < '2024-12-25 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:06:18] Production.INFO: count ==1706 [2024-12-25 17:06:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:06:05 - End Time 2024-12-25 17:06:05 [2024-12-25 17:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100936', 'tblTempUsageDetail_20' ) start [2024-12-25 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100936', 'tblTempUsageDetail_20' ) end [2024-12-25 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100936', 'tblTempVendorCDR_20' ) start [2024-12-25 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100936', 'tblTempVendorCDR_20' ) end [2024-12-25 17:06:18] Production.INFO: ProcessCDR(1,14100936,1,1,2) [2024-12-25 17:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100936', 'tblTempUsageDetail_20' ) start [2024-12-25 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100936', 'tblTempUsageDetail_20' ) end [2024-12-25 17:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:06:22] Production.INFO: ==10872== Releasing lock... [2024-12-25 17:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:06:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-25 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:07:05 [end_date_ymd] => 2024-12-25 17:07:05 [RateCDR] => 1 ) [2024-12-25 17: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-25 14:07:05' and `end` < '2024-12-25 17: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-25 17:07:17] Production.INFO: count ==1694 [2024-12-25 17:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 14:07:05 - End Time 2024-12-25 17:07:05 [2024-12-25 17:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100941', 'tblTempUsageDetail_20' ) start [2024-12-25 17:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100941', 'tblTempUsageDetail_20' ) end [2024-12-25 17:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100941', 'tblTempVendorCDR_20' ) start [2024-12-25 17:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100941', 'tblTempVendorCDR_20' ) end [2024-12-25 17:07:17] Production.INFO: ProcessCDR(1,14100941,1,1,2) [2024-12-25 17:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100941', 'tblTempUsageDetail_20' ) start [2024-12-25 17:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100941', 'tblTempUsageDetail_20' ) end [2024-12-25 17:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:07:21] Production.INFO: ==10954== Releasing lock... [2024-12-25 17:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:07:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-25 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:08:05 [end_date_ymd] => 2024-12-25 17:08:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:08:05' and `end` < '2024-12-25 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-25 17:08:18] Production.INFO: count ==1694 [2024-12-25 17:08:19] Production.ERROR: pbx CDR StartTime 2024-12-25 14:08:05 - End Time 2024-12-25 17:08:05 [2024-12-25 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100946', 'tblTempUsageDetail_20' ) start [2024-12-25 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100946', 'tblTempUsageDetail_20' ) end [2024-12-25 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100946', 'tblTempVendorCDR_20' ) start [2024-12-25 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100946', 'tblTempVendorCDR_20' ) end [2024-12-25 17:08:19] Production.INFO: ProcessCDR(1,14100946,1,1,2) [2024-12-25 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100946', 'tblTempUsageDetail_20' ) start [2024-12-25 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100946', 'tblTempUsageDetail_20' ) end [2024-12-25 17:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:08:22] Production.INFO: ==11028== Releasing lock... [2024-12-25 17:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:08:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-25 17:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:09:04 [end_date_ymd] => 2024-12-25 17:09:04 [RateCDR] => 1 ) [2024-12-25 17: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-25 14:09:04' and `end` < '2024-12-25 17: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-25 17:09:17] Production.INFO: count ==1686 [2024-12-25 17:09:17] Production.ERROR: pbx CDR StartTime 2024-12-25 14:09:04 - End Time 2024-12-25 17:09:04 [2024-12-25 17:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100951', 'tblTempUsageDetail_20' ) start [2024-12-25 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100951', 'tblTempUsageDetail_20' ) end [2024-12-25 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100951', 'tblTempVendorCDR_20' ) start [2024-12-25 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100951', 'tblTempVendorCDR_20' ) end [2024-12-25 17:09:17] Production.INFO: ProcessCDR(1,14100951,1,1,2) [2024-12-25 17:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100951', 'tblTempUsageDetail_20' ) start [2024-12-25 17:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100951', 'tblTempUsageDetail_20' ) end [2024-12-25 17:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:09:20] Production.INFO: ==11109== Releasing lock... [2024-12-25 17:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:09:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-25 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:10:05 [end_date_ymd] => 2024-12-25 17:10:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:10:05' and `end` < '2024-12-25 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-25 17:10:18] Production.INFO: count ==1692 [2024-12-25 17:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:10:05 - End Time 2024-12-25 17:10:05 [2024-12-25 17:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100957', 'tblTempUsageDetail_20' ) start [2024-12-25 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100957', 'tblTempUsageDetail_20' ) end [2024-12-25 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100957', 'tblTempVendorCDR_20' ) start [2024-12-25 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100957', 'tblTempVendorCDR_20' ) end [2024-12-25 17:10:18] Production.INFO: ProcessCDR(1,14100957,1,1,2) [2024-12-25 17:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100957', 'tblTempUsageDetail_20' ) start [2024-12-25 17:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100957', 'tblTempUsageDetail_20' ) end [2024-12-25 17:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:10:21] Production.INFO: ==11188== Releasing lock... [2024-12-25 17:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:10:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-25 17:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:11:04 [end_date_ymd] => 2024-12-25 17:11:04 [RateCDR] => 1 ) [2024-12-25 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-25 14:11:04' and `end` < '2024-12-25 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-25 17:11:17] Production.INFO: count ==1706 [2024-12-25 17:11:17] Production.ERROR: pbx CDR StartTime 2024-12-25 14:11:04 - End Time 2024-12-25 17:11:04 [2024-12-25 17:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100962', 'tblTempUsageDetail_20' ) start [2024-12-25 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100962', 'tblTempUsageDetail_20' ) end [2024-12-25 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100962', 'tblTempVendorCDR_20' ) start [2024-12-25 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100962', 'tblTempVendorCDR_20' ) end [2024-12-25 17:11:17] Production.INFO: ProcessCDR(1,14100962,1,1,2) [2024-12-25 17:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100962', 'tblTempUsageDetail_20' ) start [2024-12-25 17:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100962', 'tblTempUsageDetail_20' ) end [2024-12-25 17:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:11:20] Production.INFO: ==11269== Releasing lock... [2024-12-25 17:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:11:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-25 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:12:05 [end_date_ymd] => 2024-12-25 17:12:05 [RateCDR] => 1 ) [2024-12-25 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:12:05' and `end` < '2024-12-25 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:12:18] Production.INFO: count ==1714 [2024-12-25 17:12:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:12:05 - End Time 2024-12-25 17:12:05 [2024-12-25 17:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100967', 'tblTempUsageDetail_20' ) start [2024-12-25 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100967', 'tblTempUsageDetail_20' ) end [2024-12-25 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100967', 'tblTempVendorCDR_20' ) start [2024-12-25 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100967', 'tblTempVendorCDR_20' ) end [2024-12-25 17:12:18] Production.INFO: ProcessCDR(1,14100967,1,1,2) [2024-12-25 17:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100967', 'tblTempUsageDetail_20' ) start [2024-12-25 17:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100967', 'tblTempUsageDetail_20' ) end [2024-12-25 17:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:12:21] Production.INFO: ==11350== Releasing lock... [2024-12-25 17:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:12:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-25 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:13:05 [end_date_ymd] => 2024-12-25 17:13:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:13:05' and `end` < '2024-12-25 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-25 17:13:19] Production.INFO: count ==1730 [2024-12-25 17:13:19] Production.ERROR: pbx CDR StartTime 2024-12-25 14:13:05 - End Time 2024-12-25 17:13:05 [2024-12-25 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100972', 'tblTempUsageDetail_20' ) start [2024-12-25 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100972', 'tblTempUsageDetail_20' ) end [2024-12-25 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100972', 'tblTempVendorCDR_20' ) start [2024-12-25 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100972', 'tblTempVendorCDR_20' ) end [2024-12-25 17:13:19] Production.INFO: ProcessCDR(1,14100972,1,1,2) [2024-12-25 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100972', 'tblTempUsageDetail_20' ) start [2024-12-25 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100972', 'tblTempUsageDetail_20' ) end [2024-12-25 17:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:13:22] Production.INFO: ==11427== Releasing lock... [2024-12-25 17:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:13:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 17:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:14:04 [end_date_ymd] => 2024-12-25 17:14:04 [RateCDR] => 1 ) [2024-12-25 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-25 14:14:04' and `end` < '2024-12-25 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-25 17:14:18] Production.INFO: count ==1732 [2024-12-25 17:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:14:04 - End Time 2024-12-25 17:14:04 [2024-12-25 17:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100977', 'tblTempUsageDetail_20' ) start [2024-12-25 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100977', 'tblTempUsageDetail_20' ) end [2024-12-25 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100977', 'tblTempVendorCDR_20' ) start [2024-12-25 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100977', 'tblTempVendorCDR_20' ) end [2024-12-25 17:14:18] Production.INFO: ProcessCDR(1,14100977,1,1,2) [2024-12-25 17:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100977', 'tblTempUsageDetail_20' ) start [2024-12-25 17:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100977', 'tblTempUsageDetail_20' ) end [2024-12-25 17:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:14:21] Production.INFO: ==11504== Releasing lock... [2024-12-25 17:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:14:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-25 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:15:05 [end_date_ymd] => 2024-12-25 17:15:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:15:05' and `end` < '2024-12-25 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-25 17:15:17] Production.INFO: count ==1732 [2024-12-25 17:15:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:15:05 - End Time 2024-12-25 17:15:05 [2024-12-25 17:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100982', 'tblTempUsageDetail_20' ) start [2024-12-25 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100982', 'tblTempUsageDetail_20' ) end [2024-12-25 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100982', 'tblTempVendorCDR_20' ) start [2024-12-25 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100982', 'tblTempVendorCDR_20' ) end [2024-12-25 17:15:18] Production.INFO: ProcessCDR(1,14100982,1,1,2) [2024-12-25 17:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100982', 'tblTempUsageDetail_20' ) start [2024-12-25 17:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100982', 'tblTempUsageDetail_20' ) end [2024-12-25 17:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:15:21] Production.INFO: ==11582== Releasing lock... [2024-12-25 17:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:15:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-25 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:16:05 [end_date_ymd] => 2024-12-25 17:16:05 [RateCDR] => 1 ) [2024-12-25 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:16:05' and `end` < '2024-12-25 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:16:19] Production.INFO: count ==1734 [2024-12-25 17:16:19] Production.ERROR: pbx CDR StartTime 2024-12-25 14:16:05 - End Time 2024-12-25 17:16:05 [2024-12-25 17:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100987', 'tblTempUsageDetail_20' ) start [2024-12-25 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100987', 'tblTempUsageDetail_20' ) end [2024-12-25 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100987', 'tblTempVendorCDR_20' ) start [2024-12-25 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100987', 'tblTempVendorCDR_20' ) end [2024-12-25 17:16:19] Production.INFO: ProcessCDR(1,14100987,1,1,2) [2024-12-25 17:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100987', 'tblTempUsageDetail_20' ) start [2024-12-25 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100987', 'tblTempUsageDetail_20' ) end [2024-12-25 17:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:16:23] Production.INFO: ==11667== Releasing lock... [2024-12-25 17:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:16:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:17:05 [end_date_ymd] => 2024-12-25 17:17:05 [RateCDR] => 1 ) [2024-12-25 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:17:05' and `end` < '2024-12-25 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:17:18] Production.INFO: count ==1742 [2024-12-25 17:17:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:17:05 - End Time 2024-12-25 17:17:05 [2024-12-25 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100992', 'tblTempUsageDetail_20' ) start [2024-12-25 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100992', 'tblTempUsageDetail_20' ) end [2024-12-25 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100992', 'tblTempVendorCDR_20' ) start [2024-12-25 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100992', 'tblTempVendorCDR_20' ) end [2024-12-25 17:17:18] Production.INFO: ProcessCDR(1,14100992,1,1,2) [2024-12-25 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100992', 'tblTempUsageDetail_20' ) start [2024-12-25 17:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100992', 'tblTempUsageDetail_20' ) end [2024-12-25 17:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:17:21] Production.INFO: ==11748== Releasing lock... [2024-12-25 17:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:17:21] Production.INFO: 41 MB #Memory Used# [2024-12-25 17:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:18:04 [end_date_ymd] => 2024-12-25 17:18:04 [RateCDR] => 1 ) [2024-12-25 17:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:18:04' and `end` < '2024-12-25 17:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:18:17] Production.INFO: count ==1743 [2024-12-25 17:18:17] Production.ERROR: pbx CDR StartTime 2024-12-25 14:18:04 - End Time 2024-12-25 17:18:04 [2024-12-25 17:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100997', 'tblTempUsageDetail_20' ) start [2024-12-25 17:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14100997', 'tblTempUsageDetail_20' ) end [2024-12-25 17:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100997', 'tblTempVendorCDR_20' ) start [2024-12-25 17:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14100997', 'tblTempVendorCDR_20' ) end [2024-12-25 17:18:17] Production.INFO: ProcessCDR(1,14100997,1,1,2) [2024-12-25 17:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14100997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14100997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14100997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14100997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100997', 'tblTempUsageDetail_20' ) start [2024-12-25 17:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14100997', 'tblTempUsageDetail_20' ) end [2024-12-25 17:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:18:20] Production.INFO: ==11829== Releasing lock... [2024-12-25 17:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:18:20] Production.INFO: 40.75 MB #Memory Used# [2024-12-25 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:19:05 [end_date_ymd] => 2024-12-25 17:19:05 [RateCDR] => 1 ) [2024-12-25 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:19:05' and `end` < '2024-12-25 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:19:17] Production.INFO: count ==1754 [2024-12-25 17:19:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:19:05 - End Time 2024-12-25 17:19:05 [2024-12-25 17:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101002', 'tblTempUsageDetail_20' ) start [2024-12-25 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101002', 'tblTempUsageDetail_20' ) end [2024-12-25 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101002', 'tblTempVendorCDR_20' ) start [2024-12-25 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101002', 'tblTempVendorCDR_20' ) end [2024-12-25 17:19:18] Production.INFO: ProcessCDR(1,14101002,1,1,2) [2024-12-25 17:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101002', 'tblTempUsageDetail_20' ) start [2024-12-25 17:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101002', 'tblTempUsageDetail_20' ) end [2024-12-25 17:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:19:21] Production.INFO: ==11910== Releasing lock... [2024-12-25 17:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:19:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:20:06 [end_date_ymd] => 2024-12-25 17:20:06 [RateCDR] => 1 ) [2024-12-25 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:20:06' and `end` < '2024-12-25 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:20:19] Production.INFO: count ==1759 [2024-12-25 17:20:19] Production.ERROR: pbx CDR StartTime 2024-12-25 14:20:06 - End Time 2024-12-25 17:20:06 [2024-12-25 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101008', 'tblTempUsageDetail_20' ) start [2024-12-25 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101008', 'tblTempUsageDetail_20' ) end [2024-12-25 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101008', 'tblTempVendorCDR_20' ) start [2024-12-25 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101008', 'tblTempVendorCDR_20' ) end [2024-12-25 17:20:19] Production.INFO: ProcessCDR(1,14101008,1,1,2) [2024-12-25 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101008', 'tblTempUsageDetail_20' ) start [2024-12-25 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101008', 'tblTempUsageDetail_20' ) end [2024-12-25 17:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:20:22] Production.INFO: ==12028== Releasing lock... [2024-12-25 17:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:20:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-25 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:21:05 [end_date_ymd] => 2024-12-25 17:21:05 [RateCDR] => 1 ) [2024-12-25 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:21:05' and `end` < '2024-12-25 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:21:19] Production.INFO: count ==1782 [2024-12-25 17:21:19] Production.ERROR: pbx CDR StartTime 2024-12-25 14:21:05 - End Time 2024-12-25 17:21:05 [2024-12-25 17:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101013', 'tblTempUsageDetail_20' ) start [2024-12-25 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101013', 'tblTempUsageDetail_20' ) end [2024-12-25 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101013', 'tblTempVendorCDR_20' ) start [2024-12-25 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101013', 'tblTempVendorCDR_20' ) end [2024-12-25 17:21:19] Production.INFO: ProcessCDR(1,14101013,1,1,2) [2024-12-25 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101013', 'tblTempUsageDetail_20' ) start [2024-12-25 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101013', 'tblTempUsageDetail_20' ) end [2024-12-25 17:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:21:22] Production.INFO: ==12113== Releasing lock... [2024-12-25 17:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:21:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:22:05 [end_date_ymd] => 2024-12-25 17:22:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:22:05' and `end` < '2024-12-25 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:22:18] Production.INFO: count ==1778 [2024-12-25 17:22:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:22:05 - End Time 2024-12-25 17:22:05 [2024-12-25 17:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101018', 'tblTempUsageDetail_20' ) start [2024-12-25 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101018', 'tblTempUsageDetail_20' ) end [2024-12-25 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101018', 'tblTempVendorCDR_20' ) start [2024-12-25 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101018', 'tblTempVendorCDR_20' ) end [2024-12-25 17:22:18] Production.INFO: ProcessCDR(1,14101018,1,1,2) [2024-12-25 17:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101018', 'tblTempUsageDetail_20' ) start [2024-12-25 17:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101018', 'tblTempUsageDetail_20' ) end [2024-12-25 17:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:22:21] Production.INFO: ==12192== Releasing lock... [2024-12-25 17:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:22:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-25 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:23:05 [end_date_ymd] => 2024-12-25 17:23:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:23:05' and `end` < '2024-12-25 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-25 17:23:17] Production.INFO: count ==1785 [2024-12-25 17:23:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:23:05 - End Time 2024-12-25 17:23:05 [2024-12-25 17:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101023', 'tblTempUsageDetail_20' ) start [2024-12-25 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101023', 'tblTempUsageDetail_20' ) end [2024-12-25 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101023', 'tblTempVendorCDR_20' ) start [2024-12-25 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101023', 'tblTempVendorCDR_20' ) end [2024-12-25 17:23:18] Production.INFO: ProcessCDR(1,14101023,1,1,2) [2024-12-25 17:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101023', 'tblTempUsageDetail_20' ) start [2024-12-25 17:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101023', 'tblTempUsageDetail_20' ) end [2024-12-25 17:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:23:21] Production.INFO: ==12278== Releasing lock... [2024-12-25 17:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:23:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 17:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:24:04 [end_date_ymd] => 2024-12-25 17:24:04 [RateCDR] => 1 ) [2024-12-25 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-25 14:24:04' and `end` < '2024-12-25 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-25 17:24:18] Production.INFO: count ==1789 [2024-12-25 17:24:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:24:04 - End Time 2024-12-25 17:24:04 [2024-12-25 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101028', 'tblTempUsageDetail_20' ) start [2024-12-25 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101028', 'tblTempUsageDetail_20' ) end [2024-12-25 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101028', 'tblTempVendorCDR_20' ) start [2024-12-25 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101028', 'tblTempVendorCDR_20' ) end [2024-12-25 17:24:18] Production.INFO: ProcessCDR(1,14101028,1,1,2) [2024-12-25 17:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101028', 'tblTempUsageDetail_20' ) start [2024-12-25 17:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101028', 'tblTempUsageDetail_20' ) end [2024-12-25 17:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:24:21] Production.INFO: ==12358== Releasing lock... [2024-12-25 17:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:24:21] Production.INFO: 42 MB #Memory Used# [2024-12-25 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:25:05 [end_date_ymd] => 2024-12-25 17:25:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:25:05' and `end` < '2024-12-25 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-25 17:25:18] Production.INFO: count ==1791 [2024-12-25 17:25:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:25:05 - End Time 2024-12-25 17:25:05 [2024-12-25 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101033', 'tblTempUsageDetail_20' ) start [2024-12-25 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101033', 'tblTempUsageDetail_20' ) end [2024-12-25 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101033', 'tblTempVendorCDR_20' ) start [2024-12-25 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101033', 'tblTempVendorCDR_20' ) end [2024-12-25 17:25:18] Production.INFO: ProcessCDR(1,14101033,1,1,2) [2024-12-25 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101033', 'tblTempUsageDetail_20' ) start [2024-12-25 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101033', 'tblTempUsageDetail_20' ) end [2024-12-25 17:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:25:22] Production.INFO: ==12441== Releasing lock... [2024-12-25 17:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:25:22] Production.INFO: 42 MB #Memory Used# [2024-12-25 17:26:22] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:26:21 [end_date_ymd] => 2024-12-25 17:26:21 [RateCDR] => 1 ) [2024-12-25 17:26:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:26:21' and `end` < '2024-12-25 17:26:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:26:36] Production.INFO: count ==1805 [2024-12-25 17:26:37] Production.ERROR: pbx CDR StartTime 2024-12-25 14:26:21 - End Time 2024-12-25 17:26:21 [2024-12-25 17:26:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:26:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101038', 'tblTempUsageDetail_20' ) start [2024-12-25 17:26:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101038', 'tblTempUsageDetail_20' ) end [2024-12-25 17:26:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101038', 'tblTempVendorCDR_20' ) start [2024-12-25 17:26:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101038', 'tblTempVendorCDR_20' ) end [2024-12-25 17:26:42] Production.INFO: ProcessCDR(1,14101038,1,1,2) [2024-12-25 17:26:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:27:08] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:27:08] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101038', 'tblTempUsageDetail_20' ) start [2024-12-25 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101038', 'tblTempUsageDetail_20' ) end [2024-12-25 17:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:27:28] Production.INFO: ==12519== Releasing lock... [2024-12-25 17:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:27:28] Production.INFO: 42 MB #Memory Used# [2024-12-25 17:28:15] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:28:15 [end_date_ymd] => 2024-12-25 17:28:15 [RateCDR] => 1 ) [2024-12-25 17:28: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-25 14:28:15' and `end` < '2024-12-25 17:28: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-25 17:28:27] Production.INFO: count ==1826 [2024-12-25 17:28:31] Production.ERROR: pbx CDR StartTime 2024-12-25 14:28:15 - End Time 2024-12-25 17:28:15 [2024-12-25 17:28:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101045', 'tblTempUsageDetail_20' ) start [2024-12-25 17:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101045', 'tblTempUsageDetail_20' ) end [2024-12-25 17:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101045', 'tblTempVendorCDR_20' ) start [2024-12-25 17:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101045', 'tblTempVendorCDR_20' ) end [2024-12-25 17:28:31] Production.INFO: ProcessCDR(1,14101045,1,1,2) [2024-12-25 17:28:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:28:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:28:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:28:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:28:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101045', 'tblTempUsageDetail_20' ) start [2024-12-25 17:28:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101045', 'tblTempUsageDetail_20' ) end [2024-12-25 17:28:47] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:28:47] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:28:47] Production.INFO: ==12667== Releasing lock... [2024-12-25 17:28:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:28:47] Production.INFO: 42.25 MB #Memory Used# [2024-12-25 17:29:16] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:29:16 [end_date_ymd] => 2024-12-25 17:29:16 [RateCDR] => 1 ) [2024-12-25 17:29:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:29:16' and `end` < '2024-12-25 17:29:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:29:30] Production.INFO: count ==1838 [2024-12-25 17:29:36] Production.ERROR: pbx CDR StartTime 2024-12-25 14:29:16 - End Time 2024-12-25 17:29:16 [2024-12-25 17:29:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101050', 'tblTempUsageDetail_20' ) start [2024-12-25 17:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101050', 'tblTempUsageDetail_20' ) end [2024-12-25 17:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101050', 'tblTempVendorCDR_20' ) start [2024-12-25 17:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101050', 'tblTempVendorCDR_20' ) end [2024-12-25 17:29:36] Production.INFO: ProcessCDR(1,14101050,1,1,2) [2024-12-25 17:29:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:29:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:29:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:29:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:29:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101050', 'tblTempUsageDetail_20' ) start [2024-12-25 17:29:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101050', 'tblTempUsageDetail_20' ) end [2024-12-25 17:29:52] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:29:52] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:29:53] Production.INFO: ==12746== Releasing lock... [2024-12-25 17:29:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:29:53] Production.INFO: 42.25 MB #Memory Used# [2024-12-25 17:30:19] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:30:19 [end_date_ymd] => 2024-12-25 17:30:19 [RateCDR] => 1 ) [2024-12-25 17:30:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:30:19' and `end` < '2024-12-25 17:30:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:30:31] Production.INFO: count ==1837 [2024-12-25 17:30:44] Production.ERROR: pbx CDR StartTime 2024-12-25 14:30:19 - End Time 2024-12-25 17:30:19 [2024-12-25 17:30:44] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:30:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101055', 'tblTempUsageDetail_20' ) start [2024-12-25 17:30:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101055', 'tblTempUsageDetail_20' ) end [2024-12-25 17:30:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101055', 'tblTempVendorCDR_20' ) start [2024-12-25 17:30:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101055', 'tblTempVendorCDR_20' ) end [2024-12-25 17:30:44] Production.INFO: ProcessCDR(1,14101055,1,1,2) [2024-12-25 17:30:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:30:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:30:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:30:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:30:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101055', 'tblTempUsageDetail_20' ) start [2024-12-25 17:30:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101055', 'tblTempUsageDetail_20' ) end [2024-12-25 17:30:57] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:30:57] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:31:00] Production.INFO: ==12821== Releasing lock... [2024-12-25 17:31:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:31:00] Production.INFO: 42.25 MB #Memory Used# [2024-12-25 17:31:17] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:31:17 [end_date_ymd] => 2024-12-25 17:31:17 [RateCDR] => 1 ) [2024-12-25 17:31:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:31:17' and `end` < '2024-12-25 17:31:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:31:30] Production.INFO: count ==1839 [2024-12-25 17:31:33] Production.ERROR: pbx CDR StartTime 2024-12-25 14:31:17 - End Time 2024-12-25 17:31:17 [2024-12-25 17:31:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101060', 'tblTempUsageDetail_20' ) start [2024-12-25 17:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101060', 'tblTempUsageDetail_20' ) end [2024-12-25 17:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101060', 'tblTempVendorCDR_20' ) start [2024-12-25 17:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101060', 'tblTempVendorCDR_20' ) end [2024-12-25 17:31:33] Production.INFO: ProcessCDR(1,14101060,1,1,2) [2024-12-25 17:31:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:31:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:31:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:31:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:31:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101060', 'tblTempUsageDetail_20' ) start [2024-12-25 17:31:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101060', 'tblTempUsageDetail_20' ) end [2024-12-25 17:31:50] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:31:50] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:31:50] Production.INFO: ==12900== Releasing lock... [2024-12-25 17:31:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:31:50] Production.INFO: 42.25 MB #Memory Used# [2024-12-25 17:32:23] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:32:23 [end_date_ymd] => 2024-12-25 17:32:23 [RateCDR] => 1 ) [2024-12-25 17:32:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:32:23' and `end` < '2024-12-25 17:32:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:32:36] Production.INFO: count ==1839 [2024-12-25 17:32:39] Production.ERROR: pbx CDR StartTime 2024-12-25 14:32:23 - End Time 2024-12-25 17:32:23 [2024-12-25 17:32:39] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:32:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101064', 'tblTempUsageDetail_20' ) start [2024-12-25 17:32:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101064', 'tblTempUsageDetail_20' ) end [2024-12-25 17:32:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101064', 'tblTempVendorCDR_20' ) start [2024-12-25 17:32:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101064', 'tblTempVendorCDR_20' ) end [2024-12-25 17:32:39] Production.INFO: ProcessCDR(1,14101064,1,1,2) [2024-12-25 17:32:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:32:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:32:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:32:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:32:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101064', 'tblTempUsageDetail_20' ) start [2024-12-25 17:32:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101064', 'tblTempUsageDetail_20' ) end [2024-12-25 17:32:56] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:32:56] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:32:56] Production.INFO: ==12982== Releasing lock... [2024-12-25 17:32:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:32:56] Production.INFO: 42.25 MB #Memory Used# [2024-12-25 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:33:05 [end_date_ymd] => 2024-12-25 17:33:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:33:05' and `end` < '2024-12-25 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-25 17:33:17] Production.INFO: count ==1836 [2024-12-25 17:33:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:33:05 - End Time 2024-12-25 17:33:05 [2024-12-25 17:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101069', 'tblTempUsageDetail_20' ) start [2024-12-25 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101069', 'tblTempUsageDetail_20' ) end [2024-12-25 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101069', 'tblTempVendorCDR_20' ) start [2024-12-25 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101069', 'tblTempVendorCDR_20' ) end [2024-12-25 17:33:18] Production.INFO: ProcessCDR(1,14101069,1,1,2) [2024-12-25 17:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101069', 'tblTempUsageDetail_20' ) start [2024-12-25 17:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101069', 'tblTempUsageDetail_20' ) end [2024-12-25 17:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:33:21] Production.INFO: ==13061== Releasing lock... [2024-12-25 17:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:33:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-25 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:34:05 [end_date_ymd] => 2024-12-25 17:34:05 [RateCDR] => 1 ) [2024-12-25 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:34:05' and `end` < '2024-12-25 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:34:18] Production.INFO: count ==1838 [2024-12-25 17:34:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:34:05 - End Time 2024-12-25 17:34:05 [2024-12-25 17:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101074', 'tblTempUsageDetail_20' ) start [2024-12-25 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101074', 'tblTempUsageDetail_20' ) end [2024-12-25 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101074', 'tblTempVendorCDR_20' ) start [2024-12-25 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101074', 'tblTempVendorCDR_20' ) end [2024-12-25 17:34:18] Production.INFO: ProcessCDR(1,14101074,1,1,2) [2024-12-25 17:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101074', 'tblTempUsageDetail_20' ) start [2024-12-25 17:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101074', 'tblTempUsageDetail_20' ) end [2024-12-25 17:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:34:21] Production.INFO: ==13141== Releasing lock... [2024-12-25 17:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:34:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 17:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:35:04 [end_date_ymd] => 2024-12-25 17:35:04 [RateCDR] => 1 ) [2024-12-25 17: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-25 14:35:04' and `end` < '2024-12-25 17: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-25 17:35:17] Production.INFO: count ==1839 [2024-12-25 17:35:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:35:04 - End Time 2024-12-25 17:35:04 [2024-12-25 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101079', 'tblTempUsageDetail_20' ) start [2024-12-25 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101079', 'tblTempUsageDetail_20' ) end [2024-12-25 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101079', 'tblTempVendorCDR_20' ) start [2024-12-25 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101079', 'tblTempVendorCDR_20' ) end [2024-12-25 17:35:18] Production.INFO: ProcessCDR(1,14101079,1,1,2) [2024-12-25 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101079', 'tblTempUsageDetail_20' ) start [2024-12-25 17:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101079', 'tblTempUsageDetail_20' ) end [2024-12-25 17:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:35:21] Production.INFO: ==13251== Releasing lock... [2024-12-25 17:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:35:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-25 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:36:05 [end_date_ymd] => 2024-12-25 17:36:05 [RateCDR] => 1 ) [2024-12-25 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:36:05' and `end` < '2024-12-25 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:36:17] Production.INFO: count ==1850 [2024-12-25 17:36:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:36:05 - End Time 2024-12-25 17:36:05 [2024-12-25 17:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101084', 'tblTempUsageDetail_20' ) start [2024-12-25 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101084', 'tblTempUsageDetail_20' ) end [2024-12-25 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101084', 'tblTempVendorCDR_20' ) start [2024-12-25 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101084', 'tblTempVendorCDR_20' ) end [2024-12-25 17:36:18] Production.INFO: ProcessCDR(1,14101084,1,1,2) [2024-12-25 17:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101084', 'tblTempUsageDetail_20' ) start [2024-12-25 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101084', 'tblTempUsageDetail_20' ) end [2024-12-25 17:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:36:21] Production.INFO: ==13345== Releasing lock... [2024-12-25 17:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:36:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:37:05 [end_date_ymd] => 2024-12-25 17:37:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:37:05' and `end` < '2024-12-25 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-25 17:37:17] Production.INFO: count ==1860 [2024-12-25 17:37:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:37:05 - End Time 2024-12-25 17:37:05 [2024-12-25 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101089', 'tblTempUsageDetail_20' ) start [2024-12-25 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101089', 'tblTempUsageDetail_20' ) end [2024-12-25 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101089', 'tblTempVendorCDR_20' ) start [2024-12-25 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101089', 'tblTempVendorCDR_20' ) end [2024-12-25 17:37:18] Production.INFO: ProcessCDR(1,14101089,1,1,2) [2024-12-25 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101089', 'tblTempUsageDetail_20' ) start [2024-12-25 17:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101089', 'tblTempUsageDetail_20' ) end [2024-12-25 17:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:37:21] Production.INFO: ==13424== Releasing lock... [2024-12-25 17:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:37:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-25 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:38:05 [end_date_ymd] => 2024-12-25 17:38:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:38:05' and `end` < '2024-12-25 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-25 17:38:18] Production.INFO: count ==1869 [2024-12-25 17:38:19] Production.ERROR: pbx CDR StartTime 2024-12-25 14:38:05 - End Time 2024-12-25 17:38:05 [2024-12-25 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101094', 'tblTempUsageDetail_20' ) start [2024-12-25 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101094', 'tblTempUsageDetail_20' ) end [2024-12-25 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101094', 'tblTempVendorCDR_20' ) start [2024-12-25 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101094', 'tblTempVendorCDR_20' ) end [2024-12-25 17:38:19] Production.INFO: ProcessCDR(1,14101094,1,1,2) [2024-12-25 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101094', 'tblTempUsageDetail_20' ) start [2024-12-25 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101094', 'tblTempUsageDetail_20' ) end [2024-12-25 17:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:38:22] Production.INFO: ==13502== Releasing lock... [2024-12-25 17:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:38:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-25 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:39:05 [end_date_ymd] => 2024-12-25 17:39:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:39:05' and `end` < '2024-12-25 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-25 17:39:17] Production.INFO: count ==1867 [2024-12-25 17:39:17] Production.ERROR: pbx CDR StartTime 2024-12-25 14:39:05 - End Time 2024-12-25 17:39:05 [2024-12-25 17:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101099', 'tblTempUsageDetail_20' ) start [2024-12-25 17:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101099', 'tblTempUsageDetail_20' ) end [2024-12-25 17:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101099', 'tblTempVendorCDR_20' ) start [2024-12-25 17:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101099', 'tblTempVendorCDR_20' ) end [2024-12-25 17:39:17] Production.INFO: ProcessCDR(1,14101099,1,1,2) [2024-12-25 17:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101099', 'tblTempUsageDetail_20' ) start [2024-12-25 17:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101099', 'tblTempUsageDetail_20' ) end [2024-12-25 17:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:39:20] Production.INFO: ==13583== Releasing lock... [2024-12-25 17:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:39:20] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:40:06 [end_date_ymd] => 2024-12-25 17:40:06 [RateCDR] => 1 ) [2024-12-25 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:40:06' and `end` < '2024-12-25 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:40:18] Production.INFO: count ==1868 [2024-12-25 17:40:19] Production.ERROR: pbx CDR StartTime 2024-12-25 14:40:06 - End Time 2024-12-25 17:40:06 [2024-12-25 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101105', 'tblTempUsageDetail_20' ) start [2024-12-25 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101105', 'tblTempUsageDetail_20' ) end [2024-12-25 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101105', 'tblTempVendorCDR_20' ) start [2024-12-25 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101105', 'tblTempVendorCDR_20' ) end [2024-12-25 17:40:19] Production.INFO: ProcessCDR(1,14101105,1,1,2) [2024-12-25 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101105', 'tblTempUsageDetail_20' ) start [2024-12-25 17:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101105', 'tblTempUsageDetail_20' ) end [2024-12-25 17:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:40:22] Production.INFO: ==13664== Releasing lock... [2024-12-25 17:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:40:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-25 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:41:05 [end_date_ymd] => 2024-12-25 17:41:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:41:05' and `end` < '2024-12-25 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-25 17:41:17] Production.INFO: count ==1890 [2024-12-25 17:41:17] Production.ERROR: pbx CDR StartTime 2024-12-25 14:41:05 - End Time 2024-12-25 17:41:05 [2024-12-25 17:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101110', 'tblTempUsageDetail_20' ) start [2024-12-25 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101110', 'tblTempUsageDetail_20' ) end [2024-12-25 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101110', 'tblTempVendorCDR_20' ) start [2024-12-25 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101110', 'tblTempVendorCDR_20' ) end [2024-12-25 17:41:18] Production.INFO: ProcessCDR(1,14101110,1,1,2) [2024-12-25 17:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101110', 'tblTempUsageDetail_20' ) start [2024-12-25 17:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101110', 'tblTempUsageDetail_20' ) end [2024-12-25 17:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:41:21] Production.INFO: ==13745== Releasing lock... [2024-12-25 17:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:41:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:42:05 [end_date_ymd] => 2024-12-25 17:42:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:42:05' and `end` < '2024-12-25 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-25 17:42:17] Production.INFO: count ==1890 [2024-12-25 17:42:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:42:05 - End Time 2024-12-25 17:42:05 [2024-12-25 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101115', 'tblTempUsageDetail_20' ) start [2024-12-25 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101115', 'tblTempUsageDetail_20' ) end [2024-12-25 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101115', 'tblTempVendorCDR_20' ) start [2024-12-25 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101115', 'tblTempVendorCDR_20' ) end [2024-12-25 17:42:18] Production.INFO: ProcessCDR(1,14101115,1,1,2) [2024-12-25 17:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101115', 'tblTempUsageDetail_20' ) start [2024-12-25 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101115', 'tblTempUsageDetail_20' ) end [2024-12-25 17:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:42:22] Production.INFO: ==13823== Releasing lock... [2024-12-25 17:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:42:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:43:05 [end_date_ymd] => 2024-12-25 17:43:05 [RateCDR] => 1 ) [2024-12-25 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:43:05' and `end` < '2024-12-25 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:43:19] Production.INFO: count ==1894 [2024-12-25 17:43:19] Production.ERROR: pbx CDR StartTime 2024-12-25 14:43:05 - End Time 2024-12-25 17:43:05 [2024-12-25 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101120', 'tblTempUsageDetail_20' ) start [2024-12-25 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101120', 'tblTempUsageDetail_20' ) end [2024-12-25 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101120', 'tblTempVendorCDR_20' ) start [2024-12-25 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101120', 'tblTempVendorCDR_20' ) end [2024-12-25 17:43:20] Production.INFO: ProcessCDR(1,14101120,1,1,2) [2024-12-25 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101120', 'tblTempUsageDetail_20' ) start [2024-12-25 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101120', 'tblTempUsageDetail_20' ) end [2024-12-25 17:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:43:23] Production.INFO: ==13901== Releasing lock... [2024-12-25 17:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:43:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:44:05 [end_date_ymd] => 2024-12-25 17:44:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:44:05' and `end` < '2024-12-25 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-25 17:44:19] Production.INFO: count ==1891 [2024-12-25 17:44:19] Production.ERROR: pbx CDR StartTime 2024-12-25 14:44:05 - End Time 2024-12-25 17:44:05 [2024-12-25 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101125', 'tblTempUsageDetail_20' ) start [2024-12-25 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101125', 'tblTempUsageDetail_20' ) end [2024-12-25 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101125', 'tblTempVendorCDR_20' ) start [2024-12-25 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101125', 'tblTempVendorCDR_20' ) end [2024-12-25 17:44:19] Production.INFO: ProcessCDR(1,14101125,1,1,2) [2024-12-25 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101125', 'tblTempUsageDetail_20' ) start [2024-12-25 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101125', 'tblTempUsageDetail_20' ) end [2024-12-25 17:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:44:22] Production.INFO: ==13986== Releasing lock... [2024-12-25 17:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:44:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:45:05 [end_date_ymd] => 2024-12-25 17:45:05 [RateCDR] => 1 ) [2024-12-25 17: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-25 14:45:05' and `end` < '2024-12-25 17: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-25 17:45:17] Production.INFO: count ==1886 [2024-12-25 17:45:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:45:05 - End Time 2024-12-25 17:45:05 [2024-12-25 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101130', 'tblTempUsageDetail_20' ) start [2024-12-25 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101130', 'tblTempUsageDetail_20' ) end [2024-12-25 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101130', 'tblTempVendorCDR_20' ) start [2024-12-25 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101130', 'tblTempVendorCDR_20' ) end [2024-12-25 17:45:18] Production.INFO: ProcessCDR(1,14101130,1,1,2) [2024-12-25 17:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101130', 'tblTempUsageDetail_20' ) start [2024-12-25 17:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101130', 'tblTempUsageDetail_20' ) end [2024-12-25 17:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:45:21] Production.INFO: ==14066== Releasing lock... [2024-12-25 17:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:45:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:46:05 [end_date_ymd] => 2024-12-25 17:46:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:46:05' and `end` < '2024-12-25 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-25 17:46:19] Production.INFO: count ==1887 [2024-12-25 17:46:19] Production.ERROR: pbx CDR StartTime 2024-12-25 14:46:05 - End Time 2024-12-25 17:46:05 [2024-12-25 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101135', 'tblTempUsageDetail_20' ) start [2024-12-25 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101135', 'tblTempUsageDetail_20' ) end [2024-12-25 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101135', 'tblTempVendorCDR_20' ) start [2024-12-25 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101135', 'tblTempVendorCDR_20' ) end [2024-12-25 17:46:19] Production.INFO: ProcessCDR(1,14101135,1,1,2) [2024-12-25 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101135', 'tblTempUsageDetail_20' ) start [2024-12-25 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101135', 'tblTempUsageDetail_20' ) end [2024-12-25 17:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:46:22] Production.INFO: ==14145== Releasing lock... [2024-12-25 17:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:46:22] Production.INFO: 43 MB #Memory Used# [2024-12-25 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:47:05 [end_date_ymd] => 2024-12-25 17:47:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:47:05' and `end` < '2024-12-25 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-25 17:47:18] Production.INFO: count ==1886 [2024-12-25 17:47:19] Production.ERROR: pbx CDR StartTime 2024-12-25 14:47:05 - End Time 2024-12-25 17:47:05 [2024-12-25 17:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101140', 'tblTempUsageDetail_20' ) start [2024-12-25 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101140', 'tblTempUsageDetail_20' ) end [2024-12-25 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101140', 'tblTempVendorCDR_20' ) start [2024-12-25 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101140', 'tblTempVendorCDR_20' ) end [2024-12-25 17:47:19] Production.INFO: ProcessCDR(1,14101140,1,1,2) [2024-12-25 17:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101140', 'tblTempUsageDetail_20' ) start [2024-12-25 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101140', 'tblTempUsageDetail_20' ) end [2024-12-25 17:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:47:22] Production.INFO: ==14225== Releasing lock... [2024-12-25 17:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:47:22] Production.INFO: 43 MB #Memory Used# [2024-12-25 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:48:05 [end_date_ymd] => 2024-12-25 17:48:05 [RateCDR] => 1 ) [2024-12-25 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:48:05' and `end` < '2024-12-25 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:48:17] Production.INFO: count ==1888 [2024-12-25 17:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:48:05 - End Time 2024-12-25 17:48:05 [2024-12-25 17:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101145', 'tblTempUsageDetail_20' ) start [2024-12-25 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101145', 'tblTempUsageDetail_20' ) end [2024-12-25 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101145', 'tblTempVendorCDR_20' ) start [2024-12-25 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101145', 'tblTempVendorCDR_20' ) end [2024-12-25 17:48:18] Production.INFO: ProcessCDR(1,14101145,1,1,2) [2024-12-25 17:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101145', 'tblTempUsageDetail_20' ) start [2024-12-25 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101145', 'tblTempUsageDetail_20' ) end [2024-12-25 17:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:48:22] Production.INFO: ==14303== Releasing lock... [2024-12-25 17:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:48:22] Production.INFO: 43 MB #Memory Used# [2024-12-25 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:49:05 [end_date_ymd] => 2024-12-25 17:49:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:49:05' and `end` < '2024-12-25 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-25 17:49:17] Production.INFO: count ==1895 [2024-12-25 17:49:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:49:05 - End Time 2024-12-25 17:49:05 [2024-12-25 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101150', 'tblTempUsageDetail_20' ) start [2024-12-25 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101150', 'tblTempUsageDetail_20' ) end [2024-12-25 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101150', 'tblTempVendorCDR_20' ) start [2024-12-25 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101150', 'tblTempVendorCDR_20' ) end [2024-12-25 17:49:18] Production.INFO: ProcessCDR(1,14101150,1,1,2) [2024-12-25 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101150', 'tblTempUsageDetail_20' ) start [2024-12-25 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101150', 'tblTempUsageDetail_20' ) end [2024-12-25 17:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:49:22] Production.INFO: ==14385== Releasing lock... [2024-12-25 17:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:49:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-25 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:50:06 [end_date_ymd] => 2024-12-25 17:50:06 [RateCDR] => 1 ) [2024-12-25 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:50:06' and `end` < '2024-12-25 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:50:18] Production.INFO: count ==1901 [2024-12-25 17:50:19] Production.ERROR: pbx CDR StartTime 2024-12-25 14:50:06 - End Time 2024-12-25 17:50:06 [2024-12-25 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101155', 'tblTempUsageDetail_20' ) start [2024-12-25 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101155', 'tblTempUsageDetail_20' ) end [2024-12-25 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101155', 'tblTempVendorCDR_20' ) start [2024-12-25 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101155', 'tblTempVendorCDR_20' ) end [2024-12-25 17:50:19] Production.INFO: ProcessCDR(1,14101155,1,1,2) [2024-12-25 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101155', 'tblTempUsageDetail_20' ) start [2024-12-25 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101155', 'tblTempUsageDetail_20' ) end [2024-12-25 17:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:50:22] Production.INFO: ==14469== Releasing lock... [2024-12-25 17:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:50:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:51:05 [end_date_ymd] => 2024-12-25 17:51:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:51:05' and `end` < '2024-12-25 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-25 17:51:17] Production.INFO: count ==1949 [2024-12-25 17:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 14:51:05 - End Time 2024-12-25 17:51:05 [2024-12-25 17:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101161', 'tblTempUsageDetail_20' ) start [2024-12-25 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101161', 'tblTempUsageDetail_20' ) end [2024-12-25 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101161', 'tblTempVendorCDR_20' ) start [2024-12-25 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101161', 'tblTempVendorCDR_20' ) end [2024-12-25 17:51:18] Production.INFO: ProcessCDR(1,14101161,1,1,2) [2024-12-25 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101161', 'tblTempUsageDetail_20' ) start [2024-12-25 17:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101161', 'tblTempUsageDetail_20' ) end [2024-12-25 17:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:51:21] Production.INFO: ==14590== Releasing lock... [2024-12-25 17:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:51:21] Production.INFO: 43 MB #Memory Used# [2024-12-25 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:52:05 [end_date_ymd] => 2024-12-25 17:52:05 [RateCDR] => 1 ) [2024-12-25 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:52:05' and `end` < '2024-12-25 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:52:18] Production.INFO: count ==1953 [2024-12-25 17:52:19] Production.ERROR: pbx CDR StartTime 2024-12-25 14:52:05 - End Time 2024-12-25 17:52:05 [2024-12-25 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101166', 'tblTempUsageDetail_20' ) start [2024-12-25 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101166', 'tblTempUsageDetail_20' ) end [2024-12-25 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101166', 'tblTempVendorCDR_20' ) start [2024-12-25 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101166', 'tblTempVendorCDR_20' ) end [2024-12-25 17:52:19] Production.INFO: ProcessCDR(1,14101166,1,1,2) [2024-12-25 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101166', 'tblTempUsageDetail_20' ) start [2024-12-25 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101166', 'tblTempUsageDetail_20' ) end [2024-12-25 17:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:52:22] Production.INFO: ==14670== Releasing lock... [2024-12-25 17:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:52:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-25 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:53:05 [end_date_ymd] => 2024-12-25 17:53:05 [RateCDR] => 1 ) [2024-12-25 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:53:05' and `end` < '2024-12-25 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:53:17] Production.INFO: count ==1949 [2024-12-25 17:53:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:53:05 - End Time 2024-12-25 17:53:05 [2024-12-25 17:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101171', 'tblTempUsageDetail_20' ) start [2024-12-25 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101171', 'tblTempUsageDetail_20' ) end [2024-12-25 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101171', 'tblTempVendorCDR_20' ) start [2024-12-25 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101171', 'tblTempVendorCDR_20' ) end [2024-12-25 17:53:18] Production.INFO: ProcessCDR(1,14101171,1,1,2) [2024-12-25 17:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101171', 'tblTempUsageDetail_20' ) start [2024-12-25 17:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101171', 'tblTempUsageDetail_20' ) end [2024-12-25 17:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:53:21] Production.INFO: ==14749== Releasing lock... [2024-12-25 17:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:53:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-25 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:54:05 [end_date_ymd] => 2024-12-25 17:54:05 [RateCDR] => 1 ) [2024-12-25 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:54:05' and `end` < '2024-12-25 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:54:18] Production.INFO: count ==1949 [2024-12-25 17:54:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:54:05 - End Time 2024-12-25 17:54:05 [2024-12-25 17:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101176', 'tblTempUsageDetail_20' ) start [2024-12-25 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101176', 'tblTempUsageDetail_20' ) end [2024-12-25 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101176', 'tblTempVendorCDR_20' ) start [2024-12-25 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101176', 'tblTempVendorCDR_20' ) end [2024-12-25 17:54:18] Production.INFO: ProcessCDR(1,14101176,1,1,2) [2024-12-25 17:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101176', 'tblTempUsageDetail_20' ) start [2024-12-25 17:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101176', 'tblTempUsageDetail_20' ) end [2024-12-25 17:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:54:21] Production.INFO: ==14829== Releasing lock... [2024-12-25 17:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:54:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-25 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:55:05 [end_date_ymd] => 2024-12-25 17:55:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:55:05' and `end` < '2024-12-25 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-25 17:55:18] Production.INFO: count ==1954 [2024-12-25 17:55:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:55:05 - End Time 2024-12-25 17:55:05 [2024-12-25 17:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101181', 'tblTempUsageDetail_20' ) start [2024-12-25 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101181', 'tblTempUsageDetail_20' ) end [2024-12-25 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101181', 'tblTempVendorCDR_20' ) start [2024-12-25 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101181', 'tblTempVendorCDR_20' ) end [2024-12-25 17:55:18] Production.INFO: ProcessCDR(1,14101181,1,1,2) [2024-12-25 17:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101181', 'tblTempUsageDetail_20' ) start [2024-12-25 17:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101181', 'tblTempUsageDetail_20' ) end [2024-12-25 17:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:55:21] Production.INFO: ==14910== Releasing lock... [2024-12-25 17:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:55:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:56:04 [end_date_ymd] => 2024-12-25 17:56:04 [RateCDR] => 1 ) [2024-12-25 17:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:56:04' and `end` < '2024-12-25 17:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:56:17] Production.INFO: count ==1960 [2024-12-25 17:56:17] Production.ERROR: pbx CDR StartTime 2024-12-25 14:56:04 - End Time 2024-12-25 17:56:04 [2024-12-25 17:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101186', 'tblTempUsageDetail_20' ) start [2024-12-25 17:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101186', 'tblTempUsageDetail_20' ) end [2024-12-25 17:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101186', 'tblTempVendorCDR_20' ) start [2024-12-25 17:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101186', 'tblTempVendorCDR_20' ) end [2024-12-25 17:56:17] Production.INFO: ProcessCDR(1,14101186,1,1,2) [2024-12-25 17:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101186', 'tblTempUsageDetail_20' ) start [2024-12-25 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101186', 'tblTempUsageDetail_20' ) end [2024-12-25 17:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:56:21] Production.INFO: ==14984== Releasing lock... [2024-12-25 17:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:56:21] Production.INFO: 43 MB #Memory Used# [2024-12-25 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:57:05 [end_date_ymd] => 2024-12-25 17:57:05 [RateCDR] => 1 ) [2024-12-25 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 14:57:05' and `end` < '2024-12-25 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 17:57:17] Production.INFO: count ==1960 [2024-12-25 17:57:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:57:05 - End Time 2024-12-25 17:57:05 [2024-12-25 17:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101191', 'tblTempUsageDetail_20' ) start [2024-12-25 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101191', 'tblTempUsageDetail_20' ) end [2024-12-25 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101191', 'tblTempVendorCDR_20' ) start [2024-12-25 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101191', 'tblTempVendorCDR_20' ) end [2024-12-25 17:57:18] Production.INFO: ProcessCDR(1,14101191,1,1,2) [2024-12-25 17:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101191', 'tblTempUsageDetail_20' ) start [2024-12-25 17:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101191', 'tblTempUsageDetail_20' ) end [2024-12-25 17:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:57:21] Production.INFO: ==15066== Releasing lock... [2024-12-25 17:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:57:21] Production.INFO: 43 MB #Memory Used# [2024-12-25 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:58:05 [end_date_ymd] => 2024-12-25 17:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:58:05' and `end` < '2024-12-25 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-25 17:58:17] Production.INFO: count ==1959 [2024-12-25 17:58:17] Production.ERROR: pbx CDR StartTime 2024-12-25 14:58:05 - End Time 2024-12-25 17:58:05 [2024-12-25 17:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101196', 'tblTempUsageDetail_20' ) start [2024-12-25 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101196', 'tblTempUsageDetail_20' ) end [2024-12-25 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101196', 'tblTempVendorCDR_20' ) start [2024-12-25 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101196', 'tblTempVendorCDR_20' ) end [2024-12-25 17:58:18] Production.INFO: ProcessCDR(1,14101196,1,1,2) [2024-12-25 17:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101196', 'tblTempUsageDetail_20' ) start [2024-12-25 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101196', 'tblTempUsageDetail_20' ) end [2024-12-25 17:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:58:21] Production.INFO: ==15141== Releasing lock... [2024-12-25 17:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:58:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 14:59:05 [end_date_ymd] => 2024-12-25 17:59:05 [RateCDR] => 1 ) [2024-12-25 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-25 14:59:05' and `end` < '2024-12-25 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-25 17:59:17] Production.INFO: count ==1943 [2024-12-25 17:59:18] Production.ERROR: pbx CDR StartTime 2024-12-25 14:59:05 - End Time 2024-12-25 17:59:05 [2024-12-25 17:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101201', 'tblTempUsageDetail_20' ) start [2024-12-25 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101201', 'tblTempUsageDetail_20' ) end [2024-12-25 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101201', 'tblTempVendorCDR_20' ) start [2024-12-25 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101201', 'tblTempVendorCDR_20' ) end [2024-12-25 17:59:18] Production.INFO: ProcessCDR(1,14101201,1,1,2) [2024-12-25 17:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 17:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101201', 'tblTempUsageDetail_20' ) start [2024-12-25 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101201', 'tblTempUsageDetail_20' ) end [2024-12-25 17:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 17:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 17:59:21] Production.INFO: ==15217== Releasing lock... [2024-12-25 17:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 17:59:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-25 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:00:06 [end_date_ymd] => 2024-12-25 18:00:06 [RateCDR] => 1 ) [2024-12-25 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-25 15:00:06' and `end` < '2024-12-25 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-25 18:00:18] Production.INFO: count ==1931 [2024-12-25 18:00:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:00:06 - End Time 2024-12-25 18:00:06 [2024-12-25 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101207', 'tblTempUsageDetail_20' ) start [2024-12-25 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101207', 'tblTempUsageDetail_20' ) end [2024-12-25 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101207', 'tblTempVendorCDR_20' ) start [2024-12-25 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101207', 'tblTempVendorCDR_20' ) end [2024-12-25 18:00:19] Production.INFO: ProcessCDR(1,14101207,1,1,2) [2024-12-25 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101207', 'tblTempUsageDetail_20' ) start [2024-12-25 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101207', 'tblTempUsageDetail_20' ) end [2024-12-25 18:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:00:23] Production.INFO: ==15297== Releasing lock... [2024-12-25 18:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:00:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-25 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:01:04 [end_date_ymd] => 2024-12-25 18:01:04 [RateCDR] => 1 ) [2024-12-25 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-25 15:01:04' and `end` < '2024-12-25 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-25 18:01:17] Production.INFO: count ==1958 [2024-12-25 18:01:17] Production.ERROR: pbx CDR StartTime 2024-12-25 15:01:04 - End Time 2024-12-25 18:01:04 [2024-12-25 18:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101212', 'tblTempUsageDetail_20' ) start [2024-12-25 18:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101212', 'tblTempUsageDetail_20' ) end [2024-12-25 18:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101212', 'tblTempVendorCDR_20' ) start [2024-12-25 18:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101212', 'tblTempVendorCDR_20' ) end [2024-12-25 18:01:17] Production.INFO: ProcessCDR(1,14101212,1,1,2) [2024-12-25 18:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101212', 'tblTempUsageDetail_20' ) start [2024-12-25 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101212', 'tblTempUsageDetail_20' ) end [2024-12-25 18:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:01:21] Production.INFO: ==15390== Releasing lock... [2024-12-25 18:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:01:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:02:06 [end_date_ymd] => 2024-12-25 18:02:06 [RateCDR] => 1 ) [2024-12-25 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:02:06' and `end` < '2024-12-25 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:02:18] Production.INFO: count ==1965 [2024-12-25 18:02:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:02:06 - End Time 2024-12-25 18:02:06 [2024-12-25 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101217', 'tblTempUsageDetail_20' ) start [2024-12-25 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101217', 'tblTempUsageDetail_20' ) end [2024-12-25 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101217', 'tblTempVendorCDR_20' ) start [2024-12-25 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101217', 'tblTempVendorCDR_20' ) end [2024-12-25 18:02:19] Production.INFO: ProcessCDR(1,14101217,1,1,2) [2024-12-25 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101217', 'tblTempUsageDetail_20' ) start [2024-12-25 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101217', 'tblTempUsageDetail_20' ) end [2024-12-25 18:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:02:22] Production.INFO: ==15469== Releasing lock... [2024-12-25 18:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:02:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:03:05 [end_date_ymd] => 2024-12-25 18:03:05 [RateCDR] => 1 ) [2024-12-25 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:03:05' and `end` < '2024-12-25 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:03:18] Production.INFO: count ==1976 [2024-12-25 18:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:03:05 - End Time 2024-12-25 18:03:05 [2024-12-25 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101222', 'tblTempUsageDetail_20' ) start [2024-12-25 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101222', 'tblTempUsageDetail_20' ) end [2024-12-25 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101222', 'tblTempVendorCDR_20' ) start [2024-12-25 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101222', 'tblTempVendorCDR_20' ) end [2024-12-25 18:03:19] Production.INFO: ProcessCDR(1,14101222,1,1,2) [2024-12-25 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101222', 'tblTempUsageDetail_20' ) start [2024-12-25 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101222', 'tblTempUsageDetail_20' ) end [2024-12-25 18:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:03:22] Production.INFO: ==15543== Releasing lock... [2024-12-25 18:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:03:22] Production.INFO: 43 MB #Memory Used# [2024-12-25 18:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:04:04 [end_date_ymd] => 2024-12-25 18:04:04 [RateCDR] => 1 ) [2024-12-25 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-25 15:04:04' and `end` < '2024-12-25 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-25 18:04:17] Production.INFO: count ==1970 [2024-12-25 18:04:17] Production.ERROR: pbx CDR StartTime 2024-12-25 15:04:04 - End Time 2024-12-25 18:04:04 [2024-12-25 18:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101227', 'tblTempUsageDetail_20' ) start [2024-12-25 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101227', 'tblTempUsageDetail_20' ) end [2024-12-25 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101227', 'tblTempVendorCDR_20' ) start [2024-12-25 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101227', 'tblTempVendorCDR_20' ) end [2024-12-25 18:04:17] Production.INFO: ProcessCDR(1,14101227,1,1,2) [2024-12-25 18:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101227', 'tblTempUsageDetail_20' ) start [2024-12-25 18:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101227', 'tblTempUsageDetail_20' ) end [2024-12-25 18:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:04:20] Production.INFO: ==15621== Releasing lock... [2024-12-25 18:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:04:20] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 18:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:05:04 [end_date_ymd] => 2024-12-25 18:05:04 [RateCDR] => 1 ) [2024-12-25 18: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-25 15:05:04' and `end` < '2024-12-25 18: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-25 18:05:17] Production.INFO: count ==1972 [2024-12-25 18:05:17] Production.ERROR: pbx CDR StartTime 2024-12-25 15:05:04 - End Time 2024-12-25 18:05:04 [2024-12-25 18:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101232', 'tblTempUsageDetail_20' ) start [2024-12-25 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101232', 'tblTempUsageDetail_20' ) end [2024-12-25 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101232', 'tblTempVendorCDR_20' ) start [2024-12-25 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101232', 'tblTempVendorCDR_20' ) end [2024-12-25 18:05:17] Production.INFO: ProcessCDR(1,14101232,1,1,2) [2024-12-25 18:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101232', 'tblTempUsageDetail_20' ) start [2024-12-25 18:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101232', 'tblTempUsageDetail_20' ) end [2024-12-25 18:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:05:21] Production.INFO: ==15699== Releasing lock... [2024-12-25 18:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:05:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 18:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:06:04 [end_date_ymd] => 2024-12-25 18:06:04 [RateCDR] => 1 ) [2024-12-25 18: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-25 15:06:04' and `end` < '2024-12-25 18: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-25 18:06:18] Production.INFO: count ==1967 [2024-12-25 18:06:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:06:04 - End Time 2024-12-25 18:06:04 [2024-12-25 18:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101237', 'tblTempUsageDetail_20' ) start [2024-12-25 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101237', 'tblTempUsageDetail_20' ) end [2024-12-25 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101237', 'tblTempVendorCDR_20' ) start [2024-12-25 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101237', 'tblTempVendorCDR_20' ) end [2024-12-25 18:06:18] Production.INFO: ProcessCDR(1,14101237,1,1,2) [2024-12-25 18:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101237', 'tblTempUsageDetail_20' ) start [2024-12-25 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101237', 'tblTempUsageDetail_20' ) end [2024-12-25 18:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:06:21] Production.INFO: ==15779== Releasing lock... [2024-12-25 18:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:06:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:07:04 [end_date_ymd] => 2024-12-25 18:07:04 [RateCDR] => 1 ) [2024-12-25 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-25 15:07:04' and `end` < '2024-12-25 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-25 18:07:17] Production.INFO: count ==1973 [2024-12-25 18:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 15:07:04 - End Time 2024-12-25 18:07:04 [2024-12-25 18:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101242', 'tblTempUsageDetail_20' ) start [2024-12-25 18:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101242', 'tblTempUsageDetail_20' ) end [2024-12-25 18:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101242', 'tblTempVendorCDR_20' ) start [2024-12-25 18:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101242', 'tblTempVendorCDR_20' ) end [2024-12-25 18:07:17] Production.INFO: ProcessCDR(1,14101242,1,1,2) [2024-12-25 18:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101242', 'tblTempUsageDetail_20' ) start [2024-12-25 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101242', 'tblTempUsageDetail_20' ) end [2024-12-25 18:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:07:21] Production.INFO: ==15900== Releasing lock... [2024-12-25 18:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:07:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:08:05 [end_date_ymd] => 2024-12-25 18:08:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:08:05' and `end` < '2024-12-25 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-25 18:08:17] Production.INFO: count ==1979 [2024-12-25 18:08:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:08:05 - End Time 2024-12-25 18:08:05 [2024-12-25 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101247', 'tblTempUsageDetail_20' ) start [2024-12-25 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101247', 'tblTempUsageDetail_20' ) end [2024-12-25 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101247', 'tblTempVendorCDR_20' ) start [2024-12-25 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101247', 'tblTempVendorCDR_20' ) end [2024-12-25 18:08:18] Production.INFO: ProcessCDR(1,14101247,1,1,2) [2024-12-25 18:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101247', 'tblTempUsageDetail_20' ) start [2024-12-25 18:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101247', 'tblTempUsageDetail_20' ) end [2024-12-25 18:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:08:21] Production.INFO: ==15979== Releasing lock... [2024-12-25 18:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:08:21] Production.INFO: 43 MB #Memory Used# [2024-12-25 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:09:05 [end_date_ymd] => 2024-12-25 18:09:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:09:05' and `end` < '2024-12-25 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-25 18:09:18] Production.INFO: count ==1979 [2024-12-25 18:09:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:09:05 - End Time 2024-12-25 18:09:05 [2024-12-25 18:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101252', 'tblTempUsageDetail_20' ) start [2024-12-25 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101252', 'tblTempUsageDetail_20' ) end [2024-12-25 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101252', 'tblTempVendorCDR_20' ) start [2024-12-25 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101252', 'tblTempVendorCDR_20' ) end [2024-12-25 18:09:18] Production.INFO: ProcessCDR(1,14101252,1,1,2) [2024-12-25 18:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101252', 'tblTempUsageDetail_20' ) start [2024-12-25 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101252', 'tblTempUsageDetail_20' ) end [2024-12-25 18:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:09:23] Production.INFO: ==16058== Releasing lock... [2024-12-25 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:09:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:10:05 [end_date_ymd] => 2024-12-25 18:10:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:10:05' and `end` < '2024-12-25 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-25 18:10:18] Production.INFO: count ==1982 [2024-12-25 18:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:10:05 - End Time 2024-12-25 18:10:05 [2024-12-25 18:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101258', 'tblTempUsageDetail_20' ) start [2024-12-25 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101258', 'tblTempUsageDetail_20' ) end [2024-12-25 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101258', 'tblTempVendorCDR_20' ) start [2024-12-25 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101258', 'tblTempVendorCDR_20' ) end [2024-12-25 18:10:18] Production.INFO: ProcessCDR(1,14101258,1,1,2) [2024-12-25 18:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101258', 'tblTempUsageDetail_20' ) start [2024-12-25 18:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101258', 'tblTempUsageDetail_20' ) end [2024-12-25 18:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:10:22] Production.INFO: ==16142== Releasing lock... [2024-12-25 18:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:10:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-25 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:11:04 [end_date_ymd] => 2024-12-25 18:11:04 [RateCDR] => 1 ) [2024-12-25 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-25 15:11:04' and `end` < '2024-12-25 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-25 18:11:18] Production.INFO: count ==2037 [2024-12-25 18:11:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:11:04 - End Time 2024-12-25 18:11:04 [2024-12-25 18:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101263', 'tblTempUsageDetail_20' ) start [2024-12-25 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101263', 'tblTempUsageDetail_20' ) end [2024-12-25 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101263', 'tblTempVendorCDR_20' ) start [2024-12-25 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101263', 'tblTempVendorCDR_20' ) end [2024-12-25 18:11:18] Production.INFO: ProcessCDR(1,14101263,1,1,2) [2024-12-25 18:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101263', 'tblTempUsageDetail_20' ) start [2024-12-25 18:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101263', 'tblTempUsageDetail_20' ) end [2024-12-25 18:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:11:21] Production.INFO: ==16224== Releasing lock... [2024-12-25 18:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:11:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-25 18:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:12:04 [end_date_ymd] => 2024-12-25 18:12:04 [RateCDR] => 1 ) [2024-12-25 18:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:12:04' and `end` < '2024-12-25 18:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:12:17] Production.INFO: count ==2042 [2024-12-25 18:12:17] Production.ERROR: pbx CDR StartTime 2024-12-25 15:12:04 - End Time 2024-12-25 18:12:04 [2024-12-25 18:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101268', 'tblTempUsageDetail_20' ) start [2024-12-25 18:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101268', 'tblTempUsageDetail_20' ) end [2024-12-25 18:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101268', 'tblTempVendorCDR_20' ) start [2024-12-25 18:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101268', 'tblTempVendorCDR_20' ) end [2024-12-25 18:12:17] Production.INFO: ProcessCDR(1,14101268,1,1,2) [2024-12-25 18:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101268', 'tblTempUsageDetail_20' ) start [2024-12-25 18:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101268', 'tblTempUsageDetail_20' ) end [2024-12-25 18:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:12:20] Production.INFO: ==16306== Releasing lock... [2024-12-25 18:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:12:20] Production.INFO: 43.25 MB #Memory Used# [2024-12-25 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:13:05 [end_date_ymd] => 2024-12-25 18:13:05 [RateCDR] => 1 ) [2024-12-25 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:13:05' and `end` < '2024-12-25 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:13:18] Production.INFO: count ==2051 [2024-12-25 18:13:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:13:05 - End Time 2024-12-25 18:13:05 [2024-12-25 18:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101273', 'tblTempUsageDetail_20' ) start [2024-12-25 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101273', 'tblTempUsageDetail_20' ) end [2024-12-25 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101273', 'tblTempVendorCDR_20' ) start [2024-12-25 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101273', 'tblTempVendorCDR_20' ) end [2024-12-25 18:13:18] Production.INFO: ProcessCDR(1,14101273,1,1,2) [2024-12-25 18:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101273', 'tblTempUsageDetail_20' ) start [2024-12-25 18:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101273', 'tblTempUsageDetail_20' ) end [2024-12-25 18:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:13:21] Production.INFO: ==16389== Releasing lock... [2024-12-25 18:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:13:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-25 18:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:14:04 [end_date_ymd] => 2024-12-25 18:14:04 [RateCDR] => 1 ) [2024-12-25 18: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-25 15:14:04' and `end` < '2024-12-25 18: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-25 18:14:17] Production.INFO: count ==2058 [2024-12-25 18:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:14:04 - End Time 2024-12-25 18:14:04 [2024-12-25 18:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101275', 'tblTempUsageDetail_20' ) start [2024-12-25 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101275', 'tblTempUsageDetail_20' ) end [2024-12-25 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101275', 'tblTempVendorCDR_20' ) start [2024-12-25 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101275', 'tblTempVendorCDR_20' ) end [2024-12-25 18:14:18] Production.INFO: ProcessCDR(1,14101275,1,1,2) [2024-12-25 18:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101275', 'tblTempUsageDetail_20' ) start [2024-12-25 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101275', 'tblTempUsageDetail_20' ) end [2024-12-25 18:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:14:21] Production.INFO: ==16466== Releasing lock... [2024-12-25 18:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:14:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-25 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:15:05 [end_date_ymd] => 2024-12-25 18:15:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:15:05' and `end` < '2024-12-25 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-25 18:15:18] Production.INFO: count ==2066 [2024-12-25 18:15:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:15:05 - End Time 2024-12-25 18:15:05 [2024-12-25 18:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101283', 'tblTempUsageDetail_20' ) start [2024-12-25 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101283', 'tblTempUsageDetail_20' ) end [2024-12-25 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101283', 'tblTempVendorCDR_20' ) start [2024-12-25 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101283', 'tblTempVendorCDR_20' ) end [2024-12-25 18:15:18] Production.INFO: ProcessCDR(1,14101283,1,1,2) [2024-12-25 18:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101283', 'tblTempUsageDetail_20' ) start [2024-12-25 18:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101283', 'tblTempUsageDetail_20' ) end [2024-12-25 18:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:15:22] Production.INFO: ==16548== Releasing lock... [2024-12-25 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:15:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-25 18:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:16:04 [end_date_ymd] => 2024-12-25 18:16:04 [RateCDR] => 1 ) [2024-12-25 18: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-25 15:16:04' and `end` < '2024-12-25 18: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-25 18:16:18] Production.INFO: count ==2066 [2024-12-25 18:16:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:16:04 - End Time 2024-12-25 18:16:04 [2024-12-25 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101288', 'tblTempUsageDetail_20' ) start [2024-12-25 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101288', 'tblTempUsageDetail_20' ) end [2024-12-25 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101288', 'tblTempVendorCDR_20' ) start [2024-12-25 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101288', 'tblTempVendorCDR_20' ) end [2024-12-25 18:16:18] Production.INFO: ProcessCDR(1,14101288,1,1,2) [2024-12-25 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101288', 'tblTempUsageDetail_20' ) start [2024-12-25 18:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101288', 'tblTempUsageDetail_20' ) end [2024-12-25 18:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:16:21] Production.INFO: ==16631== Releasing lock... [2024-12-25 18:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:16:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-25 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:17:05 [end_date_ymd] => 2024-12-25 18:17:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:17:05' and `end` < '2024-12-25 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-25 18:17:18] Production.INFO: count ==2069 [2024-12-25 18:17:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:17:05 - End Time 2024-12-25 18:17:05 [2024-12-25 18:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101293', 'tblTempUsageDetail_20' ) start [2024-12-25 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101293', 'tblTempUsageDetail_20' ) end [2024-12-25 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101293', 'tblTempVendorCDR_20' ) start [2024-12-25 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101293', 'tblTempVendorCDR_20' ) end [2024-12-25 18:17:18] Production.INFO: ProcessCDR(1,14101293,1,1,2) [2024-12-25 18:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101293', 'tblTempUsageDetail_20' ) start [2024-12-25 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101293', 'tblTempUsageDetail_20' ) end [2024-12-25 18:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:17:22] Production.INFO: ==16718== Releasing lock... [2024-12-25 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:17:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-25 18:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:18:04 [end_date_ymd] => 2024-12-25 18:18:04 [RateCDR] => 1 ) [2024-12-25 18: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-25 15:18:04' and `end` < '2024-12-25 18: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-25 18:18:17] Production.INFO: count ==2068 [2024-12-25 18:18:17] Production.ERROR: pbx CDR StartTime 2024-12-25 15:18:04 - End Time 2024-12-25 18:18:04 [2024-12-25 18:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101298', 'tblTempUsageDetail_20' ) start [2024-12-25 18:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101298', 'tblTempUsageDetail_20' ) end [2024-12-25 18:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101298', 'tblTempVendorCDR_20' ) start [2024-12-25 18:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101298', 'tblTempVendorCDR_20' ) end [2024-12-25 18:18:17] Production.INFO: ProcessCDR(1,14101298,1,1,2) [2024-12-25 18:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101298', 'tblTempUsageDetail_20' ) start [2024-12-25 18:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101298', 'tblTempUsageDetail_20' ) end [2024-12-25 18:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:18:20] Production.INFO: ==16796== Releasing lock... [2024-12-25 18:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:18:20] Production.INFO: 43.25 MB #Memory Used# [2024-12-25 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:19:05 [end_date_ymd] => 2024-12-25 18:19:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:19:05' and `end` < '2024-12-25 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-25 18:19:17] Production.INFO: count ==2071 [2024-12-25 18:19:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:19:05 - End Time 2024-12-25 18:19:05 [2024-12-25 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101303', 'tblTempUsageDetail_20' ) start [2024-12-25 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101303', 'tblTempUsageDetail_20' ) end [2024-12-25 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101303', 'tblTempVendorCDR_20' ) start [2024-12-25 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101303', 'tblTempVendorCDR_20' ) end [2024-12-25 18:19:18] Production.INFO: ProcessCDR(1,14101303,1,1,2) [2024-12-25 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101303', 'tblTempUsageDetail_20' ) start [2024-12-25 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101303', 'tblTempUsageDetail_20' ) end [2024-12-25 18:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:19:21] Production.INFO: ==16885== Releasing lock... [2024-12-25 18:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:19:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-25 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:20:05 [end_date_ymd] => 2024-12-25 18:20:05 [RateCDR] => 1 ) [2024-12-25 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:20:05' and `end` < '2024-12-25 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:20:18] Production.INFO: count ==2062 [2024-12-25 18:20:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:20:05 - End Time 2024-12-25 18:20:05 [2024-12-25 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101308', 'tblTempUsageDetail_20' ) start [2024-12-25 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101308', 'tblTempUsageDetail_20' ) end [2024-12-25 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101308', 'tblTempVendorCDR_20' ) start [2024-12-25 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101308', 'tblTempVendorCDR_20' ) end [2024-12-25 18:20:19] Production.INFO: ProcessCDR(1,14101308,1,1,2) [2024-12-25 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101308', 'tblTempUsageDetail_20' ) start [2024-12-25 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101308', 'tblTempUsageDetail_20' ) end [2024-12-25 18:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:20:22] Production.INFO: ==16970== Releasing lock... [2024-12-25 18:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:20:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-25 18:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:21:04 [end_date_ymd] => 2024-12-25 18:21:04 [RateCDR] => 1 ) [2024-12-25 18:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:21:04' and `end` < '2024-12-25 18:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:21:17] Production.INFO: count ==2080 [2024-12-25 18:21:17] Production.ERROR: pbx CDR StartTime 2024-12-25 15:21:04 - End Time 2024-12-25 18:21:04 [2024-12-25 18:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101314', 'tblTempUsageDetail_20' ) start [2024-12-25 18:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101314', 'tblTempUsageDetail_20' ) end [2024-12-25 18:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101314', 'tblTempVendorCDR_20' ) start [2024-12-25 18:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101314', 'tblTempVendorCDR_20' ) end [2024-12-25 18:21:17] Production.INFO: ProcessCDR(1,14101314,1,1,2) [2024-12-25 18:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101314', 'tblTempUsageDetail_20' ) start [2024-12-25 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101314', 'tblTempUsageDetail_20' ) end [2024-12-25 18:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:21:21] Production.INFO: ==17055== Releasing lock... [2024-12-25 18:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:21:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-25 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:22:05 [end_date_ymd] => 2024-12-25 18:22:05 [RateCDR] => 1 ) [2024-12-25 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:22:05' and `end` < '2024-12-25 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:22:18] Production.INFO: count ==2072 [2024-12-25 18:22:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:22:05 - End Time 2024-12-25 18:22:05 [2024-12-25 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101319', 'tblTempUsageDetail_20' ) start [2024-12-25 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101319', 'tblTempUsageDetail_20' ) end [2024-12-25 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101319', 'tblTempVendorCDR_20' ) start [2024-12-25 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101319', 'tblTempVendorCDR_20' ) end [2024-12-25 18:22:19] Production.INFO: ProcessCDR(1,14101319,1,1,2) [2024-12-25 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101319', 'tblTempUsageDetail_20' ) start [2024-12-25 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101319', 'tblTempUsageDetail_20' ) end [2024-12-25 18:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:22:22] Production.INFO: ==17138== Releasing lock... [2024-12-25 18:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:22:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-25 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:23:05 [end_date_ymd] => 2024-12-25 18:23:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:23:05' and `end` < '2024-12-25 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-25 18:23:17] Production.INFO: count ==2087 [2024-12-25 18:23:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:23:05 - End Time 2024-12-25 18:23:05 [2024-12-25 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101324', 'tblTempUsageDetail_20' ) start [2024-12-25 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101324', 'tblTempUsageDetail_20' ) end [2024-12-25 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101324', 'tblTempVendorCDR_20' ) start [2024-12-25 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101324', 'tblTempVendorCDR_20' ) end [2024-12-25 18:23:18] Production.INFO: ProcessCDR(1,14101324,1,1,2) [2024-12-25 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101324', 'tblTempUsageDetail_20' ) start [2024-12-25 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101324', 'tblTempUsageDetail_20' ) end [2024-12-25 18:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:23:22] Production.INFO: ==17259== Releasing lock... [2024-12-25 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:23:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-25 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:24:05 [end_date_ymd] => 2024-12-25 18:24:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:24:05' and `end` < '2024-12-25 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-25 18:24:19] Production.INFO: count ==2091 [2024-12-25 18:24:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:24:05 - End Time 2024-12-25 18:24:05 [2024-12-25 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101329', 'tblTempUsageDetail_20' ) start [2024-12-25 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101329', 'tblTempUsageDetail_20' ) end [2024-12-25 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101329', 'tblTempVendorCDR_20' ) start [2024-12-25 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101329', 'tblTempVendorCDR_20' ) end [2024-12-25 18:24:19] Production.INFO: ProcessCDR(1,14101329,1,1,2) [2024-12-25 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101329', 'tblTempUsageDetail_20' ) start [2024-12-25 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101329', 'tblTempUsageDetail_20' ) end [2024-12-25 18:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:24:23] Production.INFO: ==17346== Releasing lock... [2024-12-25 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:24:23] Production.INFO: 43.75 MB #Memory Used# [2024-12-25 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:25:04 [end_date_ymd] => 2024-12-25 18:25:04 [RateCDR] => 1 ) [2024-12-25 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-25 15:25:04' and `end` < '2024-12-25 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-25 18:25:17] Production.INFO: count ==2104 [2024-12-25 18:25:17] Production.ERROR: pbx CDR StartTime 2024-12-25 15:25:04 - End Time 2024-12-25 18:25:04 [2024-12-25 18:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101334', 'tblTempUsageDetail_20' ) start [2024-12-25 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101334', 'tblTempUsageDetail_20' ) end [2024-12-25 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101334', 'tblTempVendorCDR_20' ) start [2024-12-25 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101334', 'tblTempVendorCDR_20' ) end [2024-12-25 18:25:17] Production.INFO: ProcessCDR(1,14101334,1,1,2) [2024-12-25 18:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101334', 'tblTempUsageDetail_20' ) start [2024-12-25 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101334', 'tblTempUsageDetail_20' ) end [2024-12-25 18:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:25:21] Production.INFO: ==17427== Releasing lock... [2024-12-25 18:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:25:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-25 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:26:05 [end_date_ymd] => 2024-12-25 18:26:05 [RateCDR] => 1 ) [2024-12-25 18: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-25 15:26:05' and `end` < '2024-12-25 18: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-25 18:26:18] Production.INFO: count ==2099 [2024-12-25 18:26:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:26:05 - End Time 2024-12-25 18:26:05 [2024-12-25 18:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101339', 'tblTempUsageDetail_20' ) start [2024-12-25 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101339', 'tblTempUsageDetail_20' ) end [2024-12-25 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101339', 'tblTempVendorCDR_20' ) start [2024-12-25 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101339', 'tblTempVendorCDR_20' ) end [2024-12-25 18:26:18] Production.INFO: ProcessCDR(1,14101339,1,1,2) [2024-12-25 18:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101339', 'tblTempUsageDetail_20' ) start [2024-12-25 18:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101339', 'tblTempUsageDetail_20' ) end [2024-12-25 18:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:26:21] Production.INFO: ==17510== Releasing lock... [2024-12-25 18:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:26:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-25 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:27:05 [end_date_ymd] => 2024-12-25 18:27:05 [RateCDR] => 1 ) [2024-12-25 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:27:05' and `end` < '2024-12-25 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:27:18] Production.INFO: count ==2094 [2024-12-25 18:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:27:05 - End Time 2024-12-25 18:27:05 [2024-12-25 18:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101344', 'tblTempUsageDetail_20' ) start [2024-12-25 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101344', 'tblTempUsageDetail_20' ) end [2024-12-25 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101344', 'tblTempVendorCDR_20' ) start [2024-12-25 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101344', 'tblTempVendorCDR_20' ) end [2024-12-25 18:27:18] Production.INFO: ProcessCDR(1,14101344,1,1,2) [2024-12-25 18:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101344', 'tblTempUsageDetail_20' ) start [2024-12-25 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101344', 'tblTempUsageDetail_20' ) end [2024-12-25 18:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:27:22] Production.INFO: ==17604== Releasing lock... [2024-12-25 18:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:27:22] Production.INFO: 44 MB #Memory Used# [2024-12-25 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:28:05 [end_date_ymd] => 2024-12-25 18:28:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:28:05' and `end` < '2024-12-25 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-25 18:28:17] Production.INFO: count ==2092 [2024-12-25 18:28:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:28:05 - End Time 2024-12-25 18:28:05 [2024-12-25 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101349', 'tblTempUsageDetail_20' ) start [2024-12-25 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101349', 'tblTempUsageDetail_20' ) end [2024-12-25 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101349', 'tblTempVendorCDR_20' ) start [2024-12-25 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101349', 'tblTempVendorCDR_20' ) end [2024-12-25 18:28:18] Production.INFO: ProcessCDR(1,14101349,1,1,2) [2024-12-25 18:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101349', 'tblTempUsageDetail_20' ) start [2024-12-25 18:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101349', 'tblTempUsageDetail_20' ) end [2024-12-25 18:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:28:21] Production.INFO: ==17680== Releasing lock... [2024-12-25 18:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:28:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-25 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:29:05 [end_date_ymd] => 2024-12-25 18:29:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:29:05' and `end` < '2024-12-25 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-25 18:29:17] Production.INFO: count ==2090 [2024-12-25 18:29:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:29:05 - End Time 2024-12-25 18:29:05 [2024-12-25 18:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101354', 'tblTempUsageDetail_20' ) start [2024-12-25 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101354', 'tblTempUsageDetail_20' ) end [2024-12-25 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101354', 'tblTempVendorCDR_20' ) start [2024-12-25 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101354', 'tblTempVendorCDR_20' ) end [2024-12-25 18:29:18] Production.INFO: ProcessCDR(1,14101354,1,1,2) [2024-12-25 18:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101354', 'tblTempUsageDetail_20' ) start [2024-12-25 18:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101354', 'tblTempUsageDetail_20' ) end [2024-12-25 18:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:29:21] Production.INFO: ==17758== Releasing lock... [2024-12-25 18:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:29:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-25 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:30:06 [end_date_ymd] => 2024-12-25 18:30:06 [RateCDR] => 1 ) [2024-12-25 18: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-25 15:30:06' and `end` < '2024-12-25 18: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-25 18:30:18] Production.INFO: count ==2100 [2024-12-25 18:30:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:30:06 - End Time 2024-12-25 18:30:06 [2024-12-25 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101360', 'tblTempUsageDetail_20' ) start [2024-12-25 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101360', 'tblTempUsageDetail_20' ) end [2024-12-25 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101360', 'tblTempVendorCDR_20' ) start [2024-12-25 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101360', 'tblTempVendorCDR_20' ) end [2024-12-25 18:30:19] Production.INFO: ProcessCDR(1,14101360,1,1,2) [2024-12-25 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101360', 'tblTempUsageDetail_20' ) start [2024-12-25 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101360', 'tblTempUsageDetail_20' ) end [2024-12-25 18:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:30:22] Production.INFO: ==17849== Releasing lock... [2024-12-25 18:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:30:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-25 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:31:05 [end_date_ymd] => 2024-12-25 18:31:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:31:05' and `end` < '2024-12-25 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-25 18:31:18] Production.INFO: count ==2154 [2024-12-25 18:31:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:31:05 - End Time 2024-12-25 18:31:05 [2024-12-25 18:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101365', 'tblTempUsageDetail_20' ) start [2024-12-25 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101365', 'tblTempUsageDetail_20' ) end [2024-12-25 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101365', 'tblTempVendorCDR_20' ) start [2024-12-25 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101365', 'tblTempVendorCDR_20' ) end [2024-12-25 18:31:18] Production.INFO: ProcessCDR(1,14101365,1,1,2) [2024-12-25 18:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101365', 'tblTempUsageDetail_20' ) start [2024-12-25 18:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101365', 'tblTempUsageDetail_20' ) end [2024-12-25 18:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:31:21] Production.INFO: ==17930== Releasing lock... [2024-12-25 18:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:31:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-25 18:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:32:04 [end_date_ymd] => 2024-12-25 18:32:04 [RateCDR] => 1 ) [2024-12-25 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-25 15:32:04' and `end` < '2024-12-25 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-25 18:32:17] Production.INFO: count ==2193 [2024-12-25 18:32:17] Production.ERROR: pbx CDR StartTime 2024-12-25 15:32:04 - End Time 2024-12-25 18:32:04 [2024-12-25 18:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101370', 'tblTempUsageDetail_20' ) start [2024-12-25 18:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101370', 'tblTempUsageDetail_20' ) end [2024-12-25 18:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101370', 'tblTempVendorCDR_20' ) start [2024-12-25 18:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101370', 'tblTempVendorCDR_20' ) end [2024-12-25 18:32:17] Production.INFO: ProcessCDR(1,14101370,1,1,2) [2024-12-25 18:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101370', 'tblTempUsageDetail_20' ) start [2024-12-25 18:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101370', 'tblTempUsageDetail_20' ) end [2024-12-25 18:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:32:21] Production.INFO: ==18017== Releasing lock... [2024-12-25 18:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:32:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-25 18:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:33:04 [end_date_ymd] => 2024-12-25 18:33:04 [RateCDR] => 1 ) [2024-12-25 18:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:33:04' and `end` < '2024-12-25 18:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:33:17] Production.INFO: count ==2334 [2024-12-25 18:33:17] Production.ERROR: pbx CDR StartTime 2024-12-25 15:33:04 - End Time 2024-12-25 18:33:04 [2024-12-25 18:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101375', 'tblTempUsageDetail_20' ) start [2024-12-25 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101375', 'tblTempUsageDetail_20' ) end [2024-12-25 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101375', 'tblTempVendorCDR_20' ) start [2024-12-25 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101375', 'tblTempVendorCDR_20' ) end [2024-12-25 18:33:17] Production.INFO: ProcessCDR(1,14101375,1,1,2) [2024-12-25 18:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101375', 'tblTempUsageDetail_20' ) start [2024-12-25 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101375', 'tblTempUsageDetail_20' ) end [2024-12-25 18:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:33:21] Production.INFO: ==18104== Releasing lock... [2024-12-25 18:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:33:21] Production.INFO: 45.5 MB #Memory Used# [2024-12-25 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:34:05 [end_date_ymd] => 2024-12-25 18:34:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:34:05' and `end` < '2024-12-25 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-25 18:34:18] Production.INFO: count ==2335 [2024-12-25 18:34:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:34:05 - End Time 2024-12-25 18:34:05 [2024-12-25 18:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101380', 'tblTempUsageDetail_20' ) start [2024-12-25 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101380', 'tblTempUsageDetail_20' ) end [2024-12-25 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101380', 'tblTempVendorCDR_20' ) start [2024-12-25 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101380', 'tblTempVendorCDR_20' ) end [2024-12-25 18:34:18] Production.INFO: ProcessCDR(1,14101380,1,1,2) [2024-12-25 18:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101380', 'tblTempUsageDetail_20' ) start [2024-12-25 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101380', 'tblTempUsageDetail_20' ) end [2024-12-25 18:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:34:21] Production.INFO: ==18188== Releasing lock... [2024-12-25 18:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:34:21] Production.INFO: 45.5 MB #Memory Used# [2024-12-25 18:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:35:04 [end_date_ymd] => 2024-12-25 18:35:04 [RateCDR] => 1 ) [2024-12-25 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-25 15:35:04' and `end` < '2024-12-25 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-25 18:35:17] Production.INFO: count ==2341 [2024-12-25 18:35:17] Production.ERROR: pbx CDR StartTime 2024-12-25 15:35:04 - End Time 2024-12-25 18:35:04 [2024-12-25 18:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101385', 'tblTempUsageDetail_20' ) start [2024-12-25 18:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101385', 'tblTempUsageDetail_20' ) end [2024-12-25 18:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101385', 'tblTempVendorCDR_20' ) start [2024-12-25 18:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101385', 'tblTempVendorCDR_20' ) end [2024-12-25 18:35:17] Production.INFO: ProcessCDR(1,14101385,1,1,2) [2024-12-25 18:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101385', 'tblTempUsageDetail_20' ) start [2024-12-25 18:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101385', 'tblTempUsageDetail_20' ) end [2024-12-25 18:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:35:20] Production.INFO: ==18270== Releasing lock... [2024-12-25 18:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:35:20] Production.INFO: 45.5 MB #Memory Used# [2024-12-25 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:36:05 [end_date_ymd] => 2024-12-25 18:36:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:36:05' and `end` < '2024-12-25 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-25 18:36:19] Production.INFO: count ==2356 [2024-12-25 18:36:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:36:05 - End Time 2024-12-25 18:36:05 [2024-12-25 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101390', 'tblTempUsageDetail_20' ) start [2024-12-25 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101390', 'tblTempUsageDetail_20' ) end [2024-12-25 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101390', 'tblTempVendorCDR_20' ) start [2024-12-25 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101390', 'tblTempVendorCDR_20' ) end [2024-12-25 18:36:19] Production.INFO: ProcessCDR(1,14101390,1,1,2) [2024-12-25 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101390', 'tblTempUsageDetail_20' ) start [2024-12-25 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101390', 'tblTempUsageDetail_20' ) end [2024-12-25 18:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:36:23] Production.INFO: ==18386== Releasing lock... [2024-12-25 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:36:23] Production.INFO: 45.75 MB #Memory Used# [2024-12-25 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:37:05 [end_date_ymd] => 2024-12-25 18:37:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:37:05' and `end` < '2024-12-25 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-25 18:37:18] Production.INFO: count ==2369 [2024-12-25 18:37:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:37:05 - End Time 2024-12-25 18:37:05 [2024-12-25 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101394', 'tblTempUsageDetail_20' ) start [2024-12-25 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101394', 'tblTempUsageDetail_20' ) end [2024-12-25 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101394', 'tblTempVendorCDR_20' ) start [2024-12-25 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101394', 'tblTempVendorCDR_20' ) end [2024-12-25 18:37:19] Production.INFO: ProcessCDR(1,14101394,1,1,2) [2024-12-25 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101394', 'tblTempUsageDetail_20' ) start [2024-12-25 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101394', 'tblTempUsageDetail_20' ) end [2024-12-25 18:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:37:22] Production.INFO: ==18527== Releasing lock... [2024-12-25 18:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:37:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-25 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:38:06 [end_date_ymd] => 2024-12-25 18:38:06 [RateCDR] => 1 ) [2024-12-25 18:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:38:06' and `end` < '2024-12-25 18:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:38:18] Production.INFO: count ==2378 [2024-12-25 18:38:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:38:06 - End Time 2024-12-25 18:38:06 [2024-12-25 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101400', 'tblTempUsageDetail_20' ) start [2024-12-25 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101400', 'tblTempUsageDetail_20' ) end [2024-12-25 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101400', 'tblTempVendorCDR_20' ) start [2024-12-25 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101400', 'tblTempVendorCDR_20' ) end [2024-12-25 18:38:19] Production.INFO: ProcessCDR(1,14101400,1,1,2) [2024-12-25 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101400', 'tblTempUsageDetail_20' ) start [2024-12-25 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101400', 'tblTempUsageDetail_20' ) end [2024-12-25 18:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:38:22] Production.INFO: ==18722== Releasing lock... [2024-12-25 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:38:22] Production.INFO: 46 MB #Memory Used# [2024-12-25 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:39:05 [end_date_ymd] => 2024-12-25 18:39:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:39:05' and `end` < '2024-12-25 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-25 18:39:17] Production.INFO: count ==2396 [2024-12-25 18:39:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:39:05 - End Time 2024-12-25 18:39:05 [2024-12-25 18:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101405', 'tblTempUsageDetail_20' ) start [2024-12-25 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101405', 'tblTempUsageDetail_20' ) end [2024-12-25 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101405', 'tblTempVendorCDR_20' ) start [2024-12-25 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101405', 'tblTempVendorCDR_20' ) end [2024-12-25 18:39:18] Production.INFO: ProcessCDR(1,14101405,1,1,2) [2024-12-25 18:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101405', 'tblTempUsageDetail_20' ) start [2024-12-25 18:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101405', 'tblTempUsageDetail_20' ) end [2024-12-25 18:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:39:21] Production.INFO: ==18880== Releasing lock... [2024-12-25 18:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:39:21] Production.INFO: 46 MB #Memory Used# [2024-12-25 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:40:06 [end_date_ymd] => 2024-12-25 18:40:06 [RateCDR] => 1 ) [2024-12-25 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:40:06' and `end` < '2024-12-25 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:40:19] Production.INFO: count ==2393 [2024-12-25 18:40:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:40:06 - End Time 2024-12-25 18:40:06 [2024-12-25 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101411', 'tblTempUsageDetail_20' ) start [2024-12-25 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101411', 'tblTempUsageDetail_20' ) end [2024-12-25 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101411', 'tblTempVendorCDR_20' ) start [2024-12-25 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101411', 'tblTempVendorCDR_20' ) end [2024-12-25 18:40:19] Production.INFO: ProcessCDR(1,14101411,1,1,2) [2024-12-25 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101411', 'tblTempUsageDetail_20' ) start [2024-12-25 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101411', 'tblTempUsageDetail_20' ) end [2024-12-25 18:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:40:23] Production.INFO: ==19028== Releasing lock... [2024-12-25 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:40:23] Production.INFO: 46 MB #Memory Used# [2024-12-25 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:41:05 [end_date_ymd] => 2024-12-25 18:41:05 [RateCDR] => 1 ) [2024-12-25 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:41:05' and `end` < '2024-12-25 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:41:19] Production.INFO: count ==2403 [2024-12-25 18:41:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:41:05 - End Time 2024-12-25 18:41:05 [2024-12-25 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101416', 'tblTempUsageDetail_20' ) start [2024-12-25 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101416', 'tblTempUsageDetail_20' ) end [2024-12-25 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101416', 'tblTempVendorCDR_20' ) start [2024-12-25 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101416', 'tblTempVendorCDR_20' ) end [2024-12-25 18:41:19] Production.INFO: ProcessCDR(1,14101416,1,1,2) [2024-12-25 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101416', 'tblTempUsageDetail_20' ) start [2024-12-25 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101416', 'tblTempUsageDetail_20' ) end [2024-12-25 18:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:41:23] Production.INFO: ==19189== Releasing lock... [2024-12-25 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:41:23] Production.INFO: 46 MB #Memory Used# [2024-12-25 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:42:05 [end_date_ymd] => 2024-12-25 18:42:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:42:05' and `end` < '2024-12-25 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-25 18:42:17] Production.INFO: count ==2415 [2024-12-25 18:42:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:42:05 - End Time 2024-12-25 18:42:05 [2024-12-25 18:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101421', 'tblTempUsageDetail_20' ) start [2024-12-25 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101421', 'tblTempUsageDetail_20' ) end [2024-12-25 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101421', 'tblTempVendorCDR_20' ) start [2024-12-25 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101421', 'tblTempVendorCDR_20' ) end [2024-12-25 18:42:18] Production.INFO: ProcessCDR(1,14101421,1,1,2) [2024-12-25 18:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101421', 'tblTempUsageDetail_20' ) start [2024-12-25 18:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101421', 'tblTempUsageDetail_20' ) end [2024-12-25 18:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:42:21] Production.INFO: ==19341== Releasing lock... [2024-12-25 18:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:42:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:43:05 [end_date_ymd] => 2024-12-25 18:43:05 [RateCDR] => 1 ) [2024-12-25 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:43:05' and `end` < '2024-12-25 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:43:19] Production.INFO: count ==2427 [2024-12-25 18:43:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:43:05 - End Time 2024-12-25 18:43:05 [2024-12-25 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101426', 'tblTempUsageDetail_20' ) start [2024-12-25 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101426', 'tblTempUsageDetail_20' ) end [2024-12-25 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101426', 'tblTempVendorCDR_20' ) start [2024-12-25 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101426', 'tblTempVendorCDR_20' ) end [2024-12-25 18:43:20] Production.INFO: ProcessCDR(1,14101426,1,1,2) [2024-12-25 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101426', 'tblTempUsageDetail_20' ) start [2024-12-25 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101426', 'tblTempUsageDetail_20' ) end [2024-12-25 18:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:43:24] Production.INFO: ==19495== Releasing lock... [2024-12-25 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:43:24] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:44:05 [end_date_ymd] => 2024-12-25 18:44:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:44:05' and `end` < '2024-12-25 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-25 18:44:17] Production.INFO: count ==2439 [2024-12-25 18:44:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:44:05 - End Time 2024-12-25 18:44:05 [2024-12-25 18:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101431', 'tblTempUsageDetail_20' ) start [2024-12-25 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101431', 'tblTempUsageDetail_20' ) end [2024-12-25 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101431', 'tblTempVendorCDR_20' ) start [2024-12-25 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101431', 'tblTempVendorCDR_20' ) end [2024-12-25 18:44:18] Production.INFO: ProcessCDR(1,14101431,1,1,2) [2024-12-25 18:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101431', 'tblTempUsageDetail_20' ) start [2024-12-25 18:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101431', 'tblTempUsageDetail_20' ) end [2024-12-25 18:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:44:21] Production.INFO: ==19643== Releasing lock... [2024-12-25 18:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:44:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:45:05 [end_date_ymd] => 2024-12-25 18:45:05 [RateCDR] => 1 ) [2024-12-25 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:45:05' and `end` < '2024-12-25 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:45:18] Production.INFO: count ==2439 [2024-12-25 18:45:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:45:05 - End Time 2024-12-25 18:45:05 [2024-12-25 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101436', 'tblTempUsageDetail_20' ) start [2024-12-25 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101436', 'tblTempUsageDetail_20' ) end [2024-12-25 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101436', 'tblTempVendorCDR_20' ) start [2024-12-25 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101436', 'tblTempVendorCDR_20' ) end [2024-12-25 18:45:19] Production.INFO: ProcessCDR(1,14101436,1,1,2) [2024-12-25 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101436', 'tblTempUsageDetail_20' ) start [2024-12-25 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101436', 'tblTempUsageDetail_20' ) end [2024-12-25 18:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:45:23] Production.INFO: ==19795== Releasing lock... [2024-12-25 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:45:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:46:05 [end_date_ymd] => 2024-12-25 18:46:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:46:05' and `end` < '2024-12-25 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-25 18:46:17] Production.INFO: count ==2435 [2024-12-25 18:46:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:46:05 - End Time 2024-12-25 18:46:05 [2024-12-25 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101441', 'tblTempUsageDetail_20' ) start [2024-12-25 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101441', 'tblTempUsageDetail_20' ) end [2024-12-25 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101441', 'tblTempVendorCDR_20' ) start [2024-12-25 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101441', 'tblTempVendorCDR_20' ) end [2024-12-25 18:46:18] Production.INFO: ProcessCDR(1,14101441,1,1,2) [2024-12-25 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101441', 'tblTempUsageDetail_20' ) start [2024-12-25 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101441', 'tblTempUsageDetail_20' ) end [2024-12-25 18:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:46:21] Production.INFO: ==19941== Releasing lock... [2024-12-25 18:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:46:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:47:05 [end_date_ymd] => 2024-12-25 18:47:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:47:05' and `end` < '2024-12-25 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-25 18:47:17] Production.INFO: count ==2437 [2024-12-25 18:47:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:47:05 - End Time 2024-12-25 18:47:05 [2024-12-25 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101446', 'tblTempUsageDetail_20' ) start [2024-12-25 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101446', 'tblTempUsageDetail_20' ) end [2024-12-25 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101446', 'tblTempVendorCDR_20' ) start [2024-12-25 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101446', 'tblTempVendorCDR_20' ) end [2024-12-25 18:47:18] Production.INFO: ProcessCDR(1,14101446,1,1,2) [2024-12-25 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101446', 'tblTempUsageDetail_20' ) start [2024-12-25 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101446', 'tblTempUsageDetail_20' ) end [2024-12-25 18:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:47:21] Production.INFO: ==20092== Releasing lock... [2024-12-25 18:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:47:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:48:05 [end_date_ymd] => 2024-12-25 18:48:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:48:05' and `end` < '2024-12-25 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-25 18:48:19] Production.INFO: count ==2441 [2024-12-25 18:48:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:48:05 - End Time 2024-12-25 18:48:05 [2024-12-25 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101451', 'tblTempUsageDetail_20' ) start [2024-12-25 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101451', 'tblTempUsageDetail_20' ) end [2024-12-25 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101451', 'tblTempVendorCDR_20' ) start [2024-12-25 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101451', 'tblTempVendorCDR_20' ) end [2024-12-25 18:48:19] Production.INFO: ProcessCDR(1,14101451,1,1,2) [2024-12-25 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101451', 'tblTempUsageDetail_20' ) start [2024-12-25 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101451', 'tblTempUsageDetail_20' ) end [2024-12-25 18:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:48:22] Production.INFO: ==20245== Releasing lock... [2024-12-25 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:48:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:49:05 [end_date_ymd] => 2024-12-25 18:49:05 [RateCDR] => 1 ) [2024-12-25 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:49:05' and `end` < '2024-12-25 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:49:17] Production.INFO: count ==2440 [2024-12-25 18:49:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:49:05 - End Time 2024-12-25 18:49:05 [2024-12-25 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101456', 'tblTempUsageDetail_20' ) start [2024-12-25 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101456', 'tblTempUsageDetail_20' ) end [2024-12-25 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101456', 'tblTempVendorCDR_20' ) start [2024-12-25 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101456', 'tblTempVendorCDR_20' ) end [2024-12-25 18:49:18] Production.INFO: ProcessCDR(1,14101456,1,1,2) [2024-12-25 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101456', 'tblTempUsageDetail_20' ) start [2024-12-25 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101456', 'tblTempUsageDetail_20' ) end [2024-12-25 18:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:49:21] Production.INFO: ==20391== Releasing lock... [2024-12-25 18:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:49:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:50:06 [end_date_ymd] => 2024-12-25 18:50:06 [RateCDR] => 1 ) [2024-12-25 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:50:06' and `end` < '2024-12-25 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:50:19] Production.INFO: count ==2436 [2024-12-25 18:50:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:50:06 - End Time 2024-12-25 18:50:06 [2024-12-25 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101462', 'tblTempUsageDetail_20' ) start [2024-12-25 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101462', 'tblTempUsageDetail_20' ) end [2024-12-25 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101462', 'tblTempVendorCDR_20' ) start [2024-12-25 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101462', 'tblTempVendorCDR_20' ) end [2024-12-25 18:50:20] Production.INFO: ProcessCDR(1,14101462,1,1,2) [2024-12-25 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101462', 'tblTempUsageDetail_20' ) start [2024-12-25 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101462', 'tblTempUsageDetail_20' ) end [2024-12-25 18:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:50:23] Production.INFO: ==20506== Releasing lock... [2024-12-25 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:50:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:51:05 [end_date_ymd] => 2024-12-25 18:51:05 [RateCDR] => 1 ) [2024-12-25 18: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-25 15:51:05' and `end` < '2024-12-25 18: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-25 18:51:18] Production.INFO: count ==2446 [2024-12-25 18:51:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:51:05 - End Time 2024-12-25 18:51:05 [2024-12-25 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101467', 'tblTempUsageDetail_20' ) start [2024-12-25 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101467', 'tblTempUsageDetail_20' ) end [2024-12-25 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101467', 'tblTempVendorCDR_20' ) start [2024-12-25 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101467', 'tblTempVendorCDR_20' ) end [2024-12-25 18:51:19] Production.INFO: ProcessCDR(1,14101467,1,1,2) [2024-12-25 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101467', 'tblTempUsageDetail_20' ) start [2024-12-25 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101467', 'tblTempUsageDetail_20' ) end [2024-12-25 18:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:51:22] Production.INFO: ==20621== Releasing lock... [2024-12-25 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:51:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:52:05 [end_date_ymd] => 2024-12-25 18:52:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:52:05' and `end` < '2024-12-25 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-25 18:52:18] Production.INFO: count ==2451 [2024-12-25 18:52:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:52:05 - End Time 2024-12-25 18:52:05 [2024-12-25 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101472', 'tblTempUsageDetail_20' ) start [2024-12-25 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101472', 'tblTempUsageDetail_20' ) end [2024-12-25 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101472', 'tblTempVendorCDR_20' ) start [2024-12-25 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101472', 'tblTempVendorCDR_20' ) end [2024-12-25 18:52:19] Production.INFO: ProcessCDR(1,14101472,1,1,2) [2024-12-25 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101472', 'tblTempUsageDetail_20' ) start [2024-12-25 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101472', 'tblTempUsageDetail_20' ) end [2024-12-25 18:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:52:22] Production.INFO: ==20734== Releasing lock... [2024-12-25 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:52:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-25 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:53:04 [end_date_ymd] => 2024-12-25 18:53:04 [RateCDR] => 1 ) [2024-12-25 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-25 15:53:04' and `end` < '2024-12-25 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-25 18:53:16] Production.INFO: count ==2443 [2024-12-25 18:53:17] Production.ERROR: pbx CDR StartTime 2024-12-25 15:53:04 - End Time 2024-12-25 18:53:04 [2024-12-25 18:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101477', 'tblTempUsageDetail_20' ) start [2024-12-25 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101477', 'tblTempUsageDetail_20' ) end [2024-12-25 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101477', 'tblTempVendorCDR_20' ) start [2024-12-25 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101477', 'tblTempVendorCDR_20' ) end [2024-12-25 18:53:17] Production.INFO: ProcessCDR(1,14101477,1,1,2) [2024-12-25 18:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101477', 'tblTempUsageDetail_20' ) start [2024-12-25 18:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101477', 'tblTempUsageDetail_20' ) end [2024-12-25 18:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:53:20] Production.INFO: ==20839== Releasing lock... [2024-12-25 18:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:53:20] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:54:05 [end_date_ymd] => 2024-12-25 18:54:05 [RateCDR] => 1 ) [2024-12-25 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:54:05' and `end` < '2024-12-25 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:54:17] Production.INFO: count ==2430 [2024-12-25 18:54:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:54:05 - End Time 2024-12-25 18:54:05 [2024-12-25 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101482', 'tblTempUsageDetail_20' ) start [2024-12-25 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101482', 'tblTempUsageDetail_20' ) end [2024-12-25 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101482', 'tblTempVendorCDR_20' ) start [2024-12-25 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101482', 'tblTempVendorCDR_20' ) end [2024-12-25 18:54:18] Production.INFO: ProcessCDR(1,14101482,1,1,2) [2024-12-25 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101482', 'tblTempUsageDetail_20' ) start [2024-12-25 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101482', 'tblTempUsageDetail_20' ) end [2024-12-25 18:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:54:21] Production.INFO: ==20966== Releasing lock... [2024-12-25 18:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:54:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:55:04 [end_date_ymd] => 2024-12-25 18:55:04 [RateCDR] => 1 ) [2024-12-25 18: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-25 15:55:04' and `end` < '2024-12-25 18: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-25 18:55:17] Production.INFO: count ==2443 [2024-12-25 18:55:17] Production.ERROR: pbx CDR StartTime 2024-12-25 15:55:04 - End Time 2024-12-25 18:55:04 [2024-12-25 18:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101487', 'tblTempUsageDetail_20' ) start [2024-12-25 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101487', 'tblTempUsageDetail_20' ) end [2024-12-25 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101487', 'tblTempVendorCDR_20' ) start [2024-12-25 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101487', 'tblTempVendorCDR_20' ) end [2024-12-25 18:55:17] Production.INFO: ProcessCDR(1,14101487,1,1,2) [2024-12-25 18:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101487', 'tblTempUsageDetail_20' ) start [2024-12-25 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101487', 'tblTempUsageDetail_20' ) end [2024-12-25 18:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:55:22] Production.INFO: ==21053== Releasing lock... [2024-12-25 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:55:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:56:05 [end_date_ymd] => 2024-12-25 18:56:05 [RateCDR] => 1 ) [2024-12-25 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 15:56:05' and `end` < '2024-12-25 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 18:56:18] Production.INFO: count ==2452 [2024-12-25 18:56:19] Production.ERROR: pbx CDR StartTime 2024-12-25 15:56:05 - End Time 2024-12-25 18:56:05 [2024-12-25 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101492', 'tblTempUsageDetail_20' ) start [2024-12-25 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101492', 'tblTempUsageDetail_20' ) end [2024-12-25 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101492', 'tblTempVendorCDR_20' ) start [2024-12-25 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101492', 'tblTempVendorCDR_20' ) end [2024-12-25 18:56:19] Production.INFO: ProcessCDR(1,14101492,1,1,2) [2024-12-25 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101492', 'tblTempUsageDetail_20' ) start [2024-12-25 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101492', 'tblTempUsageDetail_20' ) end [2024-12-25 18:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:56:23] Production.INFO: ==21139== Releasing lock... [2024-12-25 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:56:23] Production.INFO: 46.5 MB #Memory Used# [2024-12-25 18:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:57:04 [end_date_ymd] => 2024-12-25 18:57:04 [RateCDR] => 1 ) [2024-12-25 18: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-25 15:57:04' and `end` < '2024-12-25 18: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-25 18:57:17] Production.INFO: count ==2455 [2024-12-25 18:57:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:57:04 - End Time 2024-12-25 18:57:04 [2024-12-25 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101497', 'tblTempUsageDetail_20' ) start [2024-12-25 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101497', 'tblTempUsageDetail_20' ) end [2024-12-25 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101497', 'tblTempVendorCDR_20' ) start [2024-12-25 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101497', 'tblTempVendorCDR_20' ) end [2024-12-25 18:57:18] Production.INFO: ProcessCDR(1,14101497,1,1,2) [2024-12-25 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101497', 'tblTempUsageDetail_20' ) start [2024-12-25 18:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101497', 'tblTempUsageDetail_20' ) end [2024-12-25 18:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:57:21] Production.INFO: ==21229== Releasing lock... [2024-12-25 18:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:57:21] Production.INFO: 46.5 MB #Memory Used# [2024-12-25 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:58:05 [end_date_ymd] => 2024-12-25 18:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:58:05' and `end` < '2024-12-25 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-25 18:58:17] Production.INFO: count ==2462 [2024-12-25 18:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:58:05 - End Time 2024-12-25 18:58:05 [2024-12-25 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101502', 'tblTempUsageDetail_20' ) start [2024-12-25 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101502', 'tblTempUsageDetail_20' ) end [2024-12-25 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101502', 'tblTempVendorCDR_20' ) start [2024-12-25 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101502', 'tblTempVendorCDR_20' ) end [2024-12-25 18:58:18] Production.INFO: ProcessCDR(1,14101502,1,1,2) [2024-12-25 18:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101502', 'tblTempUsageDetail_20' ) start [2024-12-25 18:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101502', 'tblTempUsageDetail_20' ) end [2024-12-25 18:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:58:21] Production.INFO: ==21315== Releasing lock... [2024-12-25 18:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:58:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 15:59:05 [end_date_ymd] => 2024-12-25 18:59:05 [RateCDR] => 1 ) [2024-12-25 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-25 15:59:05' and `end` < '2024-12-25 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-25 18:59:18] Production.INFO: count ==2470 [2024-12-25 18:59:18] Production.ERROR: pbx CDR StartTime 2024-12-25 15:59:05 - End Time 2024-12-25 18:59:05 [2024-12-25 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101507', 'tblTempUsageDetail_20' ) start [2024-12-25 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101507', 'tblTempUsageDetail_20' ) end [2024-12-25 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101507', 'tblTempVendorCDR_20' ) start [2024-12-25 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101507', 'tblTempVendorCDR_20' ) end [2024-12-25 18:59:18] Production.INFO: ProcessCDR(1,14101507,1,1,2) [2024-12-25 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 18:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101507', 'tblTempUsageDetail_20' ) start [2024-12-25 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101507', 'tblTempUsageDetail_20' ) end [2024-12-25 18:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 18:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 18:59:21] Production.INFO: ==21398== Releasing lock... [2024-12-25 18:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 18:59:21] Production.INFO: 46.5 MB #Memory Used# [2024-12-25 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:00:05 [end_date_ymd] => 2024-12-25 19:00:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:00:05' and `end` < '2024-12-25 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-25 19:00:18] Production.INFO: count ==2477 [2024-12-25 19:00:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:00:05 - End Time 2024-12-25 19:00:05 [2024-12-25 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101513', 'tblTempUsageDetail_20' ) start [2024-12-25 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101513', 'tblTempUsageDetail_20' ) end [2024-12-25 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101513', 'tblTempVendorCDR_20' ) start [2024-12-25 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101513', 'tblTempVendorCDR_20' ) end [2024-12-25 19:00:19] Production.INFO: ProcessCDR(1,14101513,1,1,2) [2024-12-25 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101513', 'tblTempUsageDetail_20' ) start [2024-12-25 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101513', 'tblTempUsageDetail_20' ) end [2024-12-25 19:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:00:22] Production.INFO: ==21478== Releasing lock... [2024-12-25 19:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:00:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:01:05 [end_date_ymd] => 2024-12-25 19:01:05 [RateCDR] => 1 ) [2024-12-25 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:01:05' and `end` < '2024-12-25 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:01:18] Production.INFO: count ==2548 [2024-12-25 19:01:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:01:05 - End Time 2024-12-25 19:01:05 [2024-12-25 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101518', 'tblTempUsageDetail_20' ) start [2024-12-25 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101518', 'tblTempUsageDetail_20' ) end [2024-12-25 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101518', 'tblTempVendorCDR_20' ) start [2024-12-25 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101518', 'tblTempVendorCDR_20' ) end [2024-12-25 19:01:18] Production.INFO: ProcessCDR(1,14101518,1,1,2) [2024-12-25 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101518', 'tblTempUsageDetail_20' ) start [2024-12-25 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101518', 'tblTempUsageDetail_20' ) end [2024-12-25 19:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:01:22] Production.INFO: ==21583== Releasing lock... [2024-12-25 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:01:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-25 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:02:05 [end_date_ymd] => 2024-12-25 19:02:05 [RateCDR] => 1 ) [2024-12-25 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:02:05' and `end` < '2024-12-25 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:02:18] Production.INFO: count ==2557 [2024-12-25 19:02:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:02:05 - End Time 2024-12-25 19:02:05 [2024-12-25 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101523', 'tblTempUsageDetail_20' ) start [2024-12-25 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101523', 'tblTempUsageDetail_20' ) end [2024-12-25 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101523', 'tblTempVendorCDR_20' ) start [2024-12-25 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101523', 'tblTempVendorCDR_20' ) end [2024-12-25 19:02:18] Production.INFO: ProcessCDR(1,14101523,1,1,2) [2024-12-25 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101523', 'tblTempUsageDetail_20' ) start [2024-12-25 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101523', 'tblTempUsageDetail_20' ) end [2024-12-25 19:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:02:22] Production.INFO: ==21782== Releasing lock... [2024-12-25 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:02:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-25 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:03:05 [end_date_ymd] => 2024-12-25 19:03:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:03:05' and `end` < '2024-12-25 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-25 19:03:18] Production.INFO: count ==2557 [2024-12-25 19:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:03:05 - End Time 2024-12-25 19:03:05 [2024-12-25 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101528', 'tblTempUsageDetail_20' ) start [2024-12-25 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101528', 'tblTempUsageDetail_20' ) end [2024-12-25 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101528', 'tblTempVendorCDR_20' ) start [2024-12-25 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101528', 'tblTempVendorCDR_20' ) end [2024-12-25 19:03:18] Production.INFO: ProcessCDR(1,14101528,1,1,2) [2024-12-25 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101528', 'tblTempUsageDetail_20' ) start [2024-12-25 19:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101528', 'tblTempUsageDetail_20' ) end [2024-12-25 19:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:03:21] Production.INFO: ==21913== Releasing lock... [2024-12-25 19:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:03:21] Production.INFO: 47.25 MB #Memory Used# [2024-12-25 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:04:04 [end_date_ymd] => 2024-12-25 19:04:04 [RateCDR] => 1 ) [2024-12-25 19:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:04:04' and `end` < '2024-12-25 19:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:04:17] Production.INFO: count ==2565 [2024-12-25 19:04:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:04:04 - End Time 2024-12-25 19:04:04 [2024-12-25 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101533', 'tblTempUsageDetail_20' ) start [2024-12-25 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101533', 'tblTempUsageDetail_20' ) end [2024-12-25 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101533', 'tblTempVendorCDR_20' ) start [2024-12-25 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101533', 'tblTempVendorCDR_20' ) end [2024-12-25 19:04:18] Production.INFO: ProcessCDR(1,14101533,1,1,2) [2024-12-25 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101533', 'tblTempUsageDetail_20' ) start [2024-12-25 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101533', 'tblTempUsageDetail_20' ) end [2024-12-25 19:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:04:21] Production.INFO: ==22039== Releasing lock... [2024-12-25 19:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:04:21] Production.INFO: 47.25 MB #Memory Used# [2024-12-25 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:05:05 [end_date_ymd] => 2024-12-25 19:05:05 [RateCDR] => 1 ) [2024-12-25 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:05:05' and `end` < '2024-12-25 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:05:19] Production.INFO: count ==2573 [2024-12-25 19:05:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:05:05 - End Time 2024-12-25 19:05:05 [2024-12-25 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101538', 'tblTempUsageDetail_20' ) start [2024-12-25 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101538', 'tblTempUsageDetail_20' ) end [2024-12-25 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101538', 'tblTempVendorCDR_20' ) start [2024-12-25 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101538', 'tblTempVendorCDR_20' ) end [2024-12-25 19:05:19] Production.INFO: ProcessCDR(1,14101538,1,1,2) [2024-12-25 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101538', 'tblTempUsageDetail_20' ) start [2024-12-25 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101538', 'tblTempUsageDetail_20' ) end [2024-12-25 19:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:05:23] Production.INFO: ==22237== Releasing lock... [2024-12-25 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:05:23] Production.INFO: 47.25 MB #Memory Used# [2024-12-25 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:06:05 [end_date_ymd] => 2024-12-25 19:06:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:06:05' and `end` < '2024-12-25 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-25 19:06:18] Production.INFO: count ==2588 [2024-12-25 19:06:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:06:05 - End Time 2024-12-25 19:06:05 [2024-12-25 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101543', 'tblTempUsageDetail_20' ) start [2024-12-25 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101543', 'tblTempUsageDetail_20' ) end [2024-12-25 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101543', 'tblTempVendorCDR_20' ) start [2024-12-25 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101543', 'tblTempVendorCDR_20' ) end [2024-12-25 19:06:19] Production.INFO: ProcessCDR(1,14101543,1,1,2) [2024-12-25 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101543', 'tblTempUsageDetail_20' ) start [2024-12-25 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101543', 'tblTempUsageDetail_20' ) end [2024-12-25 19:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:06:22] Production.INFO: ==22361== Releasing lock... [2024-12-25 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:06:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:07:05 [end_date_ymd] => 2024-12-25 19:07:05 [RateCDR] => 1 ) [2024-12-25 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:07:05' and `end` < '2024-12-25 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:07:18] Production.INFO: count ==2586 [2024-12-25 19:07:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:07:05 - End Time 2024-12-25 19:07:05 [2024-12-25 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101548', 'tblTempUsageDetail_20' ) start [2024-12-25 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101548', 'tblTempUsageDetail_20' ) end [2024-12-25 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101548', 'tblTempVendorCDR_20' ) start [2024-12-25 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101548', 'tblTempVendorCDR_20' ) end [2024-12-25 19:07:19] Production.INFO: ProcessCDR(1,14101548,1,1,2) [2024-12-25 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101548', 'tblTempUsageDetail_20' ) start [2024-12-25 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101548', 'tblTempUsageDetail_20' ) end [2024-12-25 19:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:07:22] Production.INFO: ==22478== Releasing lock... [2024-12-25 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:07:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:08:05 [end_date_ymd] => 2024-12-25 19:08:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:08:05' and `end` < '2024-12-25 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-25 19:08:17] Production.INFO: count ==2589 [2024-12-25 19:08:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:08:05 - End Time 2024-12-25 19:08:05 [2024-12-25 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101553', 'tblTempUsageDetail_20' ) start [2024-12-25 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101553', 'tblTempUsageDetail_20' ) end [2024-12-25 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101553', 'tblTempVendorCDR_20' ) start [2024-12-25 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101553', 'tblTempVendorCDR_20' ) end [2024-12-25 19:08:18] Production.INFO: ProcessCDR(1,14101553,1,1,2) [2024-12-25 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101553', 'tblTempUsageDetail_20' ) start [2024-12-25 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101553', 'tblTempUsageDetail_20' ) end [2024-12-25 19:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:08:21] Production.INFO: ==22634== Releasing lock... [2024-12-25 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:08:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:09:05 [end_date_ymd] => 2024-12-25 19:09:05 [RateCDR] => 1 ) [2024-12-25 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:09:05' and `end` < '2024-12-25 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:09:17] Production.INFO: count ==2597 [2024-12-25 19:09:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:09:05 - End Time 2024-12-25 19:09:05 [2024-12-25 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101558', 'tblTempUsageDetail_20' ) start [2024-12-25 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101558', 'tblTempUsageDetail_20' ) end [2024-12-25 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101558', 'tblTempVendorCDR_20' ) start [2024-12-25 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101558', 'tblTempVendorCDR_20' ) end [2024-12-25 19:09:18] Production.INFO: ProcessCDR(1,14101558,1,1,2) [2024-12-25 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101558', 'tblTempUsageDetail_20' ) start [2024-12-25 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101558', 'tblTempUsageDetail_20' ) end [2024-12-25 19:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:09:21] Production.INFO: ==22791== Releasing lock... [2024-12-25 19:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:09:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:10:05 [end_date_ymd] => 2024-12-25 19:10:05 [RateCDR] => 1 ) [2024-12-25 19: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-25 16:10:05' and `end` < '2024-12-25 19: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-25 19:10:18] Production.INFO: count ==2589 [2024-12-25 19:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:10:05 - End Time 2024-12-25 19:10:05 [2024-12-25 19:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101564', 'tblTempUsageDetail_20' ) start [2024-12-25 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101564', 'tblTempUsageDetail_20' ) end [2024-12-25 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101564', 'tblTempVendorCDR_20' ) start [2024-12-25 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101564', 'tblTempVendorCDR_20' ) end [2024-12-25 19:10:18] Production.INFO: ProcessCDR(1,14101564,1,1,2) [2024-12-25 19:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101564', 'tblTempUsageDetail_20' ) start [2024-12-25 19:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101564', 'tblTempUsageDetail_20' ) end [2024-12-25 19:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:10:21] Production.INFO: ==22957== Releasing lock... [2024-12-25 19:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:10:21] Production.INFO: 47.25 MB #Memory Used# [2024-12-25 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:11:05 [end_date_ymd] => 2024-12-25 19:11:05 [RateCDR] => 1 ) [2024-12-25 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:11:05' and `end` < '2024-12-25 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:11:18] Production.INFO: count ==2601 [2024-12-25 19:11:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:11:05 - End Time 2024-12-25 19:11:05 [2024-12-25 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101569', 'tblTempUsageDetail_20' ) start [2024-12-25 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101569', 'tblTempUsageDetail_20' ) end [2024-12-25 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101569', 'tblTempVendorCDR_20' ) start [2024-12-25 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101569', 'tblTempVendorCDR_20' ) end [2024-12-25 19:11:18] Production.INFO: ProcessCDR(1,14101569,1,1,2) [2024-12-25 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101569', 'tblTempUsageDetail_20' ) start [2024-12-25 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101569', 'tblTempUsageDetail_20' ) end [2024-12-25 19:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:11:21] Production.INFO: ==23075== Releasing lock... [2024-12-25 19:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:11:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 19:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:12:04 [end_date_ymd] => 2024-12-25 19:12:04 [RateCDR] => 1 ) [2024-12-25 19: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-25 16:12:04' and `end` < '2024-12-25 19: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-25 19:12:17] Production.INFO: count ==2605 [2024-12-25 19:12:17] Production.ERROR: pbx CDR StartTime 2024-12-25 16:12:04 - End Time 2024-12-25 19:12:04 [2024-12-25 19:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101574', 'tblTempUsageDetail_20' ) start [2024-12-25 19:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101574', 'tblTempUsageDetail_20' ) end [2024-12-25 19:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101574', 'tblTempVendorCDR_20' ) start [2024-12-25 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101574', 'tblTempVendorCDR_20' ) end [2024-12-25 19:12:18] Production.INFO: ProcessCDR(1,14101574,1,1,2) [2024-12-25 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101574', 'tblTempUsageDetail_20' ) start [2024-12-25 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101574', 'tblTempUsageDetail_20' ) end [2024-12-25 19:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:12:21] Production.INFO: ==23269== Releasing lock... [2024-12-25 19:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:12:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 19:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:13:04 [end_date_ymd] => 2024-12-25 19:13:04 [RateCDR] => 1 ) [2024-12-25 19:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:13:04' and `end` < '2024-12-25 19:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:13:18] Production.INFO: count ==2613 [2024-12-25 19:13:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:13:04 - End Time 2024-12-25 19:13:04 [2024-12-25 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101579', 'tblTempUsageDetail_20' ) start [2024-12-25 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101579', 'tblTempUsageDetail_20' ) end [2024-12-25 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101579', 'tblTempVendorCDR_20' ) start [2024-12-25 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101579', 'tblTempVendorCDR_20' ) end [2024-12-25 19:13:18] Production.INFO: ProcessCDR(1,14101579,1,1,2) [2024-12-25 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101579', 'tblTempUsageDetail_20' ) start [2024-12-25 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101579', 'tblTempUsageDetail_20' ) end [2024-12-25 19:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:13:22] Production.INFO: ==23380== Releasing lock... [2024-12-25 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:13:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:14:05 [end_date_ymd] => 2024-12-25 19:14:05 [RateCDR] => 1 ) [2024-12-25 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:14:05' and `end` < '2024-12-25 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:14:18] Production.INFO: count ==2612 [2024-12-25 19:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:14:05 - End Time 2024-12-25 19:14:05 [2024-12-25 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101584', 'tblTempUsageDetail_20' ) start [2024-12-25 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101584', 'tblTempUsageDetail_20' ) end [2024-12-25 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101584', 'tblTempVendorCDR_20' ) start [2024-12-25 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101584', 'tblTempVendorCDR_20' ) end [2024-12-25 19:14:18] Production.INFO: ProcessCDR(1,14101584,1,1,2) [2024-12-25 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101584', 'tblTempUsageDetail_20' ) start [2024-12-25 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101584', 'tblTempUsageDetail_20' ) end [2024-12-25 19:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:14:21] Production.INFO: ==23494== Releasing lock... [2024-12-25 19:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:14:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:15:05 [end_date_ymd] => 2024-12-25 19:15:05 [RateCDR] => 1 ) [2024-12-25 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:15:05' and `end` < '2024-12-25 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:15:17] Production.INFO: count ==2612 [2024-12-25 19:15:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:15:05 - End Time 2024-12-25 19:15:05 [2024-12-25 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101589', 'tblTempUsageDetail_20' ) start [2024-12-25 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101589', 'tblTempUsageDetail_20' ) end [2024-12-25 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101589', 'tblTempVendorCDR_20' ) start [2024-12-25 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101589', 'tblTempVendorCDR_20' ) end [2024-12-25 19:15:18] Production.INFO: ProcessCDR(1,14101589,1,1,2) [2024-12-25 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101589', 'tblTempUsageDetail_20' ) start [2024-12-25 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101589', 'tblTempUsageDetail_20' ) end [2024-12-25 19:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:15:21] Production.INFO: ==23696== Releasing lock... [2024-12-25 19:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:15:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:16:05 [end_date_ymd] => 2024-12-25 19:16:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:16:05' and `end` < '2024-12-25 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-25 19:16:18] Production.INFO: count ==2613 [2024-12-25 19:16:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:16:05 - End Time 2024-12-25 19:16:05 [2024-12-25 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101594', 'tblTempUsageDetail_20' ) start [2024-12-25 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101594', 'tblTempUsageDetail_20' ) end [2024-12-25 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101594', 'tblTempVendorCDR_20' ) start [2024-12-25 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101594', 'tblTempVendorCDR_20' ) end [2024-12-25 19:16:18] Production.INFO: ProcessCDR(1,14101594,1,1,2) [2024-12-25 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101594', 'tblTempUsageDetail_20' ) start [2024-12-25 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101594', 'tblTempUsageDetail_20' ) end [2024-12-25 19:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:16:21] Production.INFO: ==23782== Releasing lock... [2024-12-25 19:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:16:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:17:05 [end_date_ymd] => 2024-12-25 19:17:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:17:05' and `end` < '2024-12-25 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-25 19:17:17] Production.INFO: count ==2609 [2024-12-25 19:17:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:17:05 - End Time 2024-12-25 19:17:05 [2024-12-25 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101599', 'tblTempUsageDetail_20' ) start [2024-12-25 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101599', 'tblTempUsageDetail_20' ) end [2024-12-25 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101599', 'tblTempVendorCDR_20' ) start [2024-12-25 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101599', 'tblTempVendorCDR_20' ) end [2024-12-25 19:17:18] Production.INFO: ProcessCDR(1,14101599,1,1,2) [2024-12-25 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101599', 'tblTempUsageDetail_20' ) start [2024-12-25 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101599', 'tblTempUsageDetail_20' ) end [2024-12-25 19:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:17:21] Production.INFO: ==23867== Releasing lock... [2024-12-25 19:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:17:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:18:05 [end_date_ymd] => 2024-12-25 19:18:05 [RateCDR] => 1 ) [2024-12-25 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:18:05' and `end` < '2024-12-25 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:18:18] Production.INFO: count ==2606 [2024-12-25 19:18:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:18:05 - End Time 2024-12-25 19:18:05 [2024-12-25 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101604', 'tblTempUsageDetail_20' ) start [2024-12-25 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101604', 'tblTempUsageDetail_20' ) end [2024-12-25 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101604', 'tblTempVendorCDR_20' ) start [2024-12-25 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101604', 'tblTempVendorCDR_20' ) end [2024-12-25 19:18:19] Production.INFO: ProcessCDR(1,14101604,1,1,2) [2024-12-25 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101604', 'tblTempUsageDetail_20' ) start [2024-12-25 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101604', 'tblTempUsageDetail_20' ) end [2024-12-25 19:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:18:22] Production.INFO: ==23953== Releasing lock... [2024-12-25 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:18:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 19:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:19:04 [end_date_ymd] => 2024-12-25 19:19:04 [RateCDR] => 1 ) [2024-12-25 19: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-25 16:19:04' and `end` < '2024-12-25 19: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-25 19:19:17] Production.INFO: count ==2604 [2024-12-25 19:19:17] Production.ERROR: pbx CDR StartTime 2024-12-25 16:19:04 - End Time 2024-12-25 19:19:04 [2024-12-25 19:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101609', 'tblTempUsageDetail_20' ) start [2024-12-25 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101609', 'tblTempUsageDetail_20' ) end [2024-12-25 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101609', 'tblTempVendorCDR_20' ) start [2024-12-25 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101609', 'tblTempVendorCDR_20' ) end [2024-12-25 19:19:17] Production.INFO: ProcessCDR(1,14101609,1,1,2) [2024-12-25 19:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101609', 'tblTempUsageDetail_20' ) start [2024-12-25 19:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101609', 'tblTempUsageDetail_20' ) end [2024-12-25 19:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:19:20] Production.INFO: ==24039== Releasing lock... [2024-12-25 19:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:19:20] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:20:05 [end_date_ymd] => 2024-12-25 19:20:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:20:05' and `end` < '2024-12-25 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-25 19:20:18] Production.INFO: count ==2603 [2024-12-25 19:20:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:20:05 - End Time 2024-12-25 19:20:05 [2024-12-25 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101615', 'tblTempUsageDetail_20' ) start [2024-12-25 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101615', 'tblTempUsageDetail_20' ) end [2024-12-25 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101615', 'tblTempVendorCDR_20' ) start [2024-12-25 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101615', 'tblTempVendorCDR_20' ) end [2024-12-25 19:20:19] Production.INFO: ProcessCDR(1,14101615,1,1,2) [2024-12-25 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101615', 'tblTempUsageDetail_20' ) start [2024-12-25 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101615', 'tblTempUsageDetail_20' ) end [2024-12-25 19:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:20:22] Production.INFO: ==24144== Releasing lock... [2024-12-25 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:20:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:21:05 [end_date_ymd] => 2024-12-25 19:21:05 [RateCDR] => 1 ) [2024-12-25 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:21:05' and `end` < '2024-12-25 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:21:18] Production.INFO: count ==2613 [2024-12-25 19:21:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:21:05 - End Time 2024-12-25 19:21:05 [2024-12-25 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101620', 'tblTempUsageDetail_20' ) start [2024-12-25 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101620', 'tblTempUsageDetail_20' ) end [2024-12-25 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101620', 'tblTempVendorCDR_20' ) start [2024-12-25 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101620', 'tblTempVendorCDR_20' ) end [2024-12-25 19:21:19] Production.INFO: ProcessCDR(1,14101620,1,1,2) [2024-12-25 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101620', 'tblTempUsageDetail_20' ) start [2024-12-25 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101620', 'tblTempUsageDetail_20' ) end [2024-12-25 19:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:21:23] Production.INFO: ==24276== Releasing lock... [2024-12-25 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:21:23] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:22:05 [end_date_ymd] => 2024-12-25 19:22:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:22:05' and `end` < '2024-12-25 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-25 19:22:17] Production.INFO: count ==2635 [2024-12-25 19:22:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:22:05 - End Time 2024-12-25 19:22:05 [2024-12-25 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101625', 'tblTempUsageDetail_20' ) start [2024-12-25 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101625', 'tblTempUsageDetail_20' ) end [2024-12-25 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101625', 'tblTempVendorCDR_20' ) start [2024-12-25 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101625', 'tblTempVendorCDR_20' ) end [2024-12-25 19:22:18] Production.INFO: ProcessCDR(1,14101625,1,1,2) [2024-12-25 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101625', 'tblTempUsageDetail_20' ) start [2024-12-25 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101625', 'tblTempUsageDetail_20' ) end [2024-12-25 19:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:22:21] Production.INFO: ==24400== Releasing lock... [2024-12-25 19:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:22:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:23:04 [end_date_ymd] => 2024-12-25 19:23:04 [RateCDR] => 1 ) [2024-12-25 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-25 16:23:04' and `end` < '2024-12-25 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-25 19:23:17] Production.INFO: count ==2642 [2024-12-25 19:23:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:23:04 - End Time 2024-12-25 19:23:04 [2024-12-25 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101630', 'tblTempUsageDetail_20' ) start [2024-12-25 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101630', 'tblTempUsageDetail_20' ) end [2024-12-25 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101630', 'tblTempVendorCDR_20' ) start [2024-12-25 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101630', 'tblTempVendorCDR_20' ) end [2024-12-25 19:23:18] Production.INFO: ProcessCDR(1,14101630,1,1,2) [2024-12-25 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101630', 'tblTempUsageDetail_20' ) start [2024-12-25 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101630', 'tblTempUsageDetail_20' ) end [2024-12-25 19:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:23:21] Production.INFO: ==24529== Releasing lock... [2024-12-25 19:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:23:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 19:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:24:04 [end_date_ymd] => 2024-12-25 19:24:04 [RateCDR] => 1 ) [2024-12-25 19: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-25 16:24:04' and `end` < '2024-12-25 19: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-25 19:24:17] Production.INFO: count ==2646 [2024-12-25 19:24:17] Production.ERROR: pbx CDR StartTime 2024-12-25 16:24:04 - End Time 2024-12-25 19:24:04 [2024-12-25 19:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101635', 'tblTempUsageDetail_20' ) start [2024-12-25 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101635', 'tblTempUsageDetail_20' ) end [2024-12-25 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101635', 'tblTempVendorCDR_20' ) start [2024-12-25 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101635', 'tblTempVendorCDR_20' ) end [2024-12-25 19:24:18] Production.INFO: ProcessCDR(1,14101635,1,1,2) [2024-12-25 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101635', 'tblTempUsageDetail_20' ) start [2024-12-25 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101635', 'tblTempUsageDetail_20' ) end [2024-12-25 19:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:24:21] Production.INFO: ==24654== Releasing lock... [2024-12-25 19:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:24:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:25:05 [end_date_ymd] => 2024-12-25 19:25:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:25:05' and `end` < '2024-12-25 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-25 19:25:17] Production.INFO: count ==2653 [2024-12-25 19:25:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:25:05 - End Time 2024-12-25 19:25:05 [2024-12-25 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101640', 'tblTempUsageDetail_20' ) start [2024-12-25 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101640', 'tblTempUsageDetail_20' ) end [2024-12-25 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101640', 'tblTempVendorCDR_20' ) start [2024-12-25 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101640', 'tblTempVendorCDR_20' ) end [2024-12-25 19:25:18] Production.INFO: ProcessCDR(1,14101640,1,1,2) [2024-12-25 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101640', 'tblTempUsageDetail_20' ) start [2024-12-25 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101640', 'tblTempUsageDetail_20' ) end [2024-12-25 19:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:25:21] Production.INFO: ==24818== Releasing lock... [2024-12-25 19:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:25:21] Production.INFO: 48 MB #Memory Used# [2024-12-25 19:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:26:04 [end_date_ymd] => 2024-12-25 19:26:04 [RateCDR] => 1 ) [2024-12-25 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-25 16:26:04' and `end` < '2024-12-25 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-25 19:26:16] Production.INFO: count ==2661 [2024-12-25 19:26:17] Production.ERROR: pbx CDR StartTime 2024-12-25 16:26:04 - End Time 2024-12-25 19:26:04 [2024-12-25 19:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101645', 'tblTempUsageDetail_20' ) start [2024-12-25 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101645', 'tblTempUsageDetail_20' ) end [2024-12-25 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101645', 'tblTempVendorCDR_20' ) start [2024-12-25 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101645', 'tblTempVendorCDR_20' ) end [2024-12-25 19:26:17] Production.INFO: ProcessCDR(1,14101645,1,1,2) [2024-12-25 19:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101645', 'tblTempUsageDetail_20' ) start [2024-12-25 19:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101645', 'tblTempUsageDetail_20' ) end [2024-12-25 19:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:26:20] Production.INFO: ==24948== Releasing lock... [2024-12-25 19:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:26:20] Production.INFO: 48 MB #Memory Used# [2024-12-25 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:27:05 [end_date_ymd] => 2024-12-25 19:27:05 [RateCDR] => 1 ) [2024-12-25 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:27:05' and `end` < '2024-12-25 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:27:17] Production.INFO: count ==2668 [2024-12-25 19:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:27:05 - End Time 2024-12-25 19:27:05 [2024-12-25 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101650', 'tblTempUsageDetail_20' ) start [2024-12-25 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101650', 'tblTempUsageDetail_20' ) end [2024-12-25 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101650', 'tblTempVendorCDR_20' ) start [2024-12-25 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101650', 'tblTempVendorCDR_20' ) end [2024-12-25 19:27:18] Production.INFO: ProcessCDR(1,14101650,1,1,2) [2024-12-25 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101650', 'tblTempUsageDetail_20' ) start [2024-12-25 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101650', 'tblTempUsageDetail_20' ) end [2024-12-25 19:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:27:21] Production.INFO: ==25076== Releasing lock... [2024-12-25 19:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:27:21] Production.INFO: 48 MB #Memory Used# [2024-12-25 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:28:05 [end_date_ymd] => 2024-12-25 19:28:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:28:05' and `end` < '2024-12-25 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-25 19:28:18] Production.INFO: count ==2676 [2024-12-25 19:28:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:28:05 - End Time 2024-12-25 19:28:05 [2024-12-25 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101653', 'tblTempUsageDetail_20' ) start [2024-12-25 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101653', 'tblTempUsageDetail_20' ) end [2024-12-25 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101653', 'tblTempVendorCDR_20' ) start [2024-12-25 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101653', 'tblTempVendorCDR_20' ) end [2024-12-25 19:28:18] Production.INFO: ProcessCDR(1,14101653,1,1,2) [2024-12-25 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101653', 'tblTempUsageDetail_20' ) start [2024-12-25 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101653', 'tblTempUsageDetail_20' ) end [2024-12-25 19:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:28:22] Production.INFO: ==25204== Releasing lock... [2024-12-25 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:28:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-25 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:29:05 [end_date_ymd] => 2024-12-25 19:29:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:29:05' and `end` < '2024-12-25 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-25 19:29:18] Production.INFO: count ==2690 [2024-12-25 19:29:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:29:05 - End Time 2024-12-25 19:29:05 [2024-12-25 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101660', 'tblTempUsageDetail_20' ) start [2024-12-25 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101660', 'tblTempUsageDetail_20' ) end [2024-12-25 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101660', 'tblTempVendorCDR_20' ) start [2024-12-25 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101660', 'tblTempVendorCDR_20' ) end [2024-12-25 19:29:19] Production.INFO: ProcessCDR(1,14101660,1,1,2) [2024-12-25 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101660', 'tblTempUsageDetail_20' ) start [2024-12-25 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101660', 'tblTempUsageDetail_20' ) end [2024-12-25 19:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:29:22] Production.INFO: ==25324== Releasing lock... [2024-12-25 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:29:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-25 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:30:06 [end_date_ymd] => 2024-12-25 19:30:06 [RateCDR] => 1 ) [2024-12-25 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:30:06' and `end` < '2024-12-25 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:30:18] Production.INFO: count ==2695 [2024-12-25 19:30:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:30:06 - End Time 2024-12-25 19:30:06 [2024-12-25 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101666', 'tblTempUsageDetail_20' ) start [2024-12-25 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101666', 'tblTempUsageDetail_20' ) end [2024-12-25 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101666', 'tblTempVendorCDR_20' ) start [2024-12-25 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101666', 'tblTempVendorCDR_20' ) end [2024-12-25 19:30:19] Production.INFO: ProcessCDR(1,14101666,1,1,2) [2024-12-25 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101666', 'tblTempUsageDetail_20' ) start [2024-12-25 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101666', 'tblTempUsageDetail_20' ) end [2024-12-25 19:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:30:22] Production.INFO: ==25453== Releasing lock... [2024-12-25 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:30:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-25 19:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:31:04 [end_date_ymd] => 2024-12-25 19:31:04 [RateCDR] => 1 ) [2024-12-25 19: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-25 16:31:04' and `end` < '2024-12-25 19: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-25 19:31:16] Production.INFO: count ==2720 [2024-12-25 19:31:17] Production.ERROR: pbx CDR StartTime 2024-12-25 16:31:04 - End Time 2024-12-25 19:31:04 [2024-12-25 19:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101671', 'tblTempUsageDetail_20' ) start [2024-12-25 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101671', 'tblTempUsageDetail_20' ) end [2024-12-25 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101671', 'tblTempVendorCDR_20' ) start [2024-12-25 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101671', 'tblTempVendorCDR_20' ) end [2024-12-25 19:31:17] Production.INFO: ProcessCDR(1,14101671,1,1,2) [2024-12-25 19:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101671', 'tblTempUsageDetail_20' ) start [2024-12-25 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101671', 'tblTempUsageDetail_20' ) end [2024-12-25 19:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:31:21] Production.INFO: ==25579== Releasing lock... [2024-12-25 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:31:21] Production.INFO: 48.5 MB #Memory Used# [2024-12-25 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:32:05 [end_date_ymd] => 2024-12-25 19:32:05 [RateCDR] => 1 ) [2024-12-25 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:32:05' and `end` < '2024-12-25 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:32:18] Production.INFO: count ==2723 [2024-12-25 19:32:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:32:05 - End Time 2024-12-25 19:32:05 [2024-12-25 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101676', 'tblTempUsageDetail_20' ) start [2024-12-25 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101676', 'tblTempUsageDetail_20' ) end [2024-12-25 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101676', 'tblTempVendorCDR_20' ) start [2024-12-25 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101676', 'tblTempVendorCDR_20' ) end [2024-12-25 19:32:19] Production.INFO: ProcessCDR(1,14101676,1,1,2) [2024-12-25 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101676', 'tblTempUsageDetail_20' ) start [2024-12-25 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101676', 'tblTempUsageDetail_20' ) end [2024-12-25 19:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:32:23] Production.INFO: ==25688== Releasing lock... [2024-12-25 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:32:23] Production.INFO: 48.25 MB #Memory Used# [2024-12-25 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:33:05 [end_date_ymd] => 2024-12-25 19:33:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:33:05' and `end` < '2024-12-25 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-25 19:33:18] Production.INFO: count ==2712 [2024-12-25 19:33:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:33:05 - End Time 2024-12-25 19:33:05 [2024-12-25 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101681', 'tblTempUsageDetail_20' ) start [2024-12-25 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101681', 'tblTempUsageDetail_20' ) end [2024-12-25 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101681', 'tblTempVendorCDR_20' ) start [2024-12-25 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101681', 'tblTempVendorCDR_20' ) end [2024-12-25 19:33:19] Production.INFO: ProcessCDR(1,14101681,1,1,2) [2024-12-25 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101681', 'tblTempUsageDetail_20' ) start [2024-12-25 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101681', 'tblTempUsageDetail_20' ) end [2024-12-25 19:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:33:23] Production.INFO: ==25774== Releasing lock... [2024-12-25 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:33:23] Production.INFO: 48.25 MB #Memory Used# [2024-12-25 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:34:05 [end_date_ymd] => 2024-12-25 19:34:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:34:05' and `end` < '2024-12-25 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-25 19:34:18] Production.INFO: count ==2719 [2024-12-25 19:34:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:34:05 - End Time 2024-12-25 19:34:05 [2024-12-25 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101686', 'tblTempUsageDetail_20' ) start [2024-12-25 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101686', 'tblTempUsageDetail_20' ) end [2024-12-25 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101686', 'tblTempVendorCDR_20' ) start [2024-12-25 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101686', 'tblTempVendorCDR_20' ) end [2024-12-25 19:34:18] Production.INFO: ProcessCDR(1,14101686,1,1,2) [2024-12-25 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101686', 'tblTempUsageDetail_20' ) start [2024-12-25 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101686', 'tblTempUsageDetail_20' ) end [2024-12-25 19:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:34:23] Production.INFO: ==25856== Releasing lock... [2024-12-25 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:34:23] Production.INFO: 48.25 MB #Memory Used# [2024-12-25 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:35:05 [end_date_ymd] => 2024-12-25 19:35:05 [RateCDR] => 1 ) [2024-12-25 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:35:05' and `end` < '2024-12-25 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:35:17] Production.INFO: count ==2750 [2024-12-25 19:35:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:35:05 - End Time 2024-12-25 19:35:05 [2024-12-25 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101691', 'tblTempUsageDetail_20' ) start [2024-12-25 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101691', 'tblTempUsageDetail_20' ) end [2024-12-25 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101691', 'tblTempVendorCDR_20' ) start [2024-12-25 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101691', 'tblTempVendorCDR_20' ) end [2024-12-25 19:35:18] Production.INFO: ProcessCDR(1,14101691,1,1,2) [2024-12-25 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101691', 'tblTempUsageDetail_20' ) start [2024-12-25 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101691', 'tblTempUsageDetail_20' ) end [2024-12-25 19:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:35:21] Production.INFO: ==25948== Releasing lock... [2024-12-25 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:35:21] Production.INFO: 48.75 MB #Memory Used# [2024-12-25 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:36:05 [end_date_ymd] => 2024-12-25 19:36:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:36:05' and `end` < '2024-12-25 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-25 19:36:19] Production.INFO: count ==2785 [2024-12-25 19:36:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:36:05 - End Time 2024-12-25 19:36:05 [2024-12-25 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101696', 'tblTempUsageDetail_20' ) start [2024-12-25 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101696', 'tblTempUsageDetail_20' ) end [2024-12-25 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101696', 'tblTempVendorCDR_20' ) start [2024-12-25 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101696', 'tblTempVendorCDR_20' ) end [2024-12-25 19:36:19] Production.INFO: ProcessCDR(1,14101696,1,1,2) [2024-12-25 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101696', 'tblTempUsageDetail_20' ) start [2024-12-25 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101696', 'tblTempUsageDetail_20' ) end [2024-12-25 19:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:36:23] Production.INFO: ==26035== Releasing lock... [2024-12-25 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:36:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-25 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:37:05 [end_date_ymd] => 2024-12-25 19:37:05 [RateCDR] => 1 ) [2024-12-25 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:37:05' and `end` < '2024-12-25 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:37:19] Production.INFO: count ==2788 [2024-12-25 19:37:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:37:05 - End Time 2024-12-25 19:37:05 [2024-12-25 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101701', 'tblTempUsageDetail_20' ) start [2024-12-25 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101701', 'tblTempUsageDetail_20' ) end [2024-12-25 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101701', 'tblTempVendorCDR_20' ) start [2024-12-25 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101701', 'tblTempVendorCDR_20' ) end [2024-12-25 19:37:19] Production.INFO: ProcessCDR(1,14101701,1,1,2) [2024-12-25 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101701', 'tblTempUsageDetail_20' ) start [2024-12-25 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101701', 'tblTempUsageDetail_20' ) end [2024-12-25 19:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:37:23] Production.INFO: ==26121== Releasing lock... [2024-12-25 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:37:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-25 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:38:05 [end_date_ymd] => 2024-12-25 19:38:05 [RateCDR] => 1 ) [2024-12-25 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:38:05' and `end` < '2024-12-25 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:38:18] Production.INFO: count ==2805 [2024-12-25 19:38:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:38:05 - End Time 2024-12-25 19:38:05 [2024-12-25 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101706', 'tblTempUsageDetail_20' ) start [2024-12-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101706', 'tblTempUsageDetail_20' ) end [2024-12-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101706', 'tblTempVendorCDR_20' ) start [2024-12-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101706', 'tblTempVendorCDR_20' ) end [2024-12-25 19:38:19] Production.INFO: ProcessCDR(1,14101706,1,1,2) [2024-12-25 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101706', 'tblTempUsageDetail_20' ) start [2024-12-25 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101706', 'tblTempUsageDetail_20' ) end [2024-12-25 19:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:38:24] Production.INFO: ==26203== Releasing lock... [2024-12-25 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:38:24] Production.INFO: 49 MB #Memory Used# [2024-12-25 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:39:04 [end_date_ymd] => 2024-12-25 19:39:04 [RateCDR] => 1 ) [2024-12-25 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-25 16:39:04' and `end` < '2024-12-25 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-25 19:39:17] Production.INFO: count ==2801 [2024-12-25 19:39:17] Production.ERROR: pbx CDR StartTime 2024-12-25 16:39:04 - End Time 2024-12-25 19:39:04 [2024-12-25 19:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101711', 'tblTempUsageDetail_20' ) start [2024-12-25 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101711', 'tblTempUsageDetail_20' ) end [2024-12-25 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101711', 'tblTempVendorCDR_20' ) start [2024-12-25 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101711', 'tblTempVendorCDR_20' ) end [2024-12-25 19:39:17] Production.INFO: ProcessCDR(1,14101711,1,1,2) [2024-12-25 19:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101711', 'tblTempUsageDetail_20' ) start [2024-12-25 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101711', 'tblTempUsageDetail_20' ) end [2024-12-25 19:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:39:21] Production.INFO: ==26288== Releasing lock... [2024-12-25 19:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:39:21] Production.INFO: 48.75 MB #Memory Used# [2024-12-25 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:40:05 [end_date_ymd] => 2024-12-25 19:40:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:40:05' and `end` < '2024-12-25 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-25 19:40:18] Production.INFO: count ==2795 [2024-12-25 19:40:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:40:05 - End Time 2024-12-25 19:40:05 [2024-12-25 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101717', 'tblTempUsageDetail_20' ) start [2024-12-25 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101717', 'tblTempUsageDetail_20' ) end [2024-12-25 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101717', 'tblTempVendorCDR_20' ) start [2024-12-25 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101717', 'tblTempVendorCDR_20' ) end [2024-12-25 19:40:19] Production.INFO: ProcessCDR(1,14101717,1,1,2) [2024-12-25 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101717', 'tblTempUsageDetail_20' ) start [2024-12-25 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101717', 'tblTempUsageDetail_20' ) end [2024-12-25 19:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:40:22] Production.INFO: ==26381== Releasing lock... [2024-12-25 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:40:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-25 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:41:04 [end_date_ymd] => 2024-12-25 19:41:04 [RateCDR] => 1 ) [2024-12-25 19: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-25 16:41:04' and `end` < '2024-12-25 19: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-25 19:41:18] Production.INFO: count ==2779 [2024-12-25 19:41:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:41:04 - End Time 2024-12-25 19:41:04 [2024-12-25 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101722', 'tblTempUsageDetail_20' ) start [2024-12-25 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101722', 'tblTempUsageDetail_20' ) end [2024-12-25 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101722', 'tblTempVendorCDR_20' ) start [2024-12-25 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101722', 'tblTempVendorCDR_20' ) end [2024-12-25 19:41:18] Production.INFO: ProcessCDR(1,14101722,1,1,2) [2024-12-25 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101722', 'tblTempUsageDetail_20' ) start [2024-12-25 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101722', 'tblTempUsageDetail_20' ) end [2024-12-25 19:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:41:22] Production.INFO: ==26509== Releasing lock... [2024-12-25 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:41:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-25 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:42:05 [end_date_ymd] => 2024-12-25 19:42:05 [RateCDR] => 1 ) [2024-12-25 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:42:05' and `end` < '2024-12-25 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:42:19] Production.INFO: count ==2796 [2024-12-25 19:42:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:42:05 - End Time 2024-12-25 19:42:05 [2024-12-25 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101727', 'tblTempUsageDetail_20' ) start [2024-12-25 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101727', 'tblTempUsageDetail_20' ) end [2024-12-25 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101727', 'tblTempVendorCDR_20' ) start [2024-12-25 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101727', 'tblTempVendorCDR_20' ) end [2024-12-25 19:42:19] Production.INFO: ProcessCDR(1,14101727,1,1,2) [2024-12-25 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101727', 'tblTempUsageDetail_20' ) start [2024-12-25 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101727', 'tblTempUsageDetail_20' ) end [2024-12-25 19:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:42:23] Production.INFO: ==26593== Releasing lock... [2024-12-25 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:42:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-25 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:43:04 [end_date_ymd] => 2024-12-25 19:43:04 [RateCDR] => 1 ) [2024-12-25 19:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:43:04' and `end` < '2024-12-25 19:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:43:17] Production.INFO: count ==2803 [2024-12-25 19:43:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:43:04 - End Time 2024-12-25 19:43:04 [2024-12-25 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101732', 'tblTempUsageDetail_20' ) start [2024-12-25 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101732', 'tblTempUsageDetail_20' ) end [2024-12-25 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101732', 'tblTempVendorCDR_20' ) start [2024-12-25 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101732', 'tblTempVendorCDR_20' ) end [2024-12-25 19:43:18] Production.INFO: ProcessCDR(1,14101732,1,1,2) [2024-12-25 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101732', 'tblTempUsageDetail_20' ) start [2024-12-25 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101732', 'tblTempUsageDetail_20' ) end [2024-12-25 19:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:43:22] Production.INFO: ==26674== Releasing lock... [2024-12-25 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:43:22] Production.INFO: 49 MB #Memory Used# [2024-12-25 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:44:05 [end_date_ymd] => 2024-12-25 19:44:05 [RateCDR] => 1 ) [2024-12-25 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:44:05' and `end` < '2024-12-25 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:44:17] Production.INFO: count ==2823 [2024-12-25 19:44:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:44:05 - End Time 2024-12-25 19:44:05 [2024-12-25 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101737', 'tblTempUsageDetail_20' ) start [2024-12-25 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101737', 'tblTempUsageDetail_20' ) end [2024-12-25 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101737', 'tblTempVendorCDR_20' ) start [2024-12-25 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101737', 'tblTempVendorCDR_20' ) end [2024-12-25 19:44:18] Production.INFO: ProcessCDR(1,14101737,1,1,2) [2024-12-25 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101737', 'tblTempUsageDetail_20' ) start [2024-12-25 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101737', 'tblTempUsageDetail_20' ) end [2024-12-25 19:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:44:21] Production.INFO: ==26765== Releasing lock... [2024-12-25 19:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:44:21] Production.INFO: 49 MB #Memory Used# [2024-12-25 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:45:05 [end_date_ymd] => 2024-12-25 19:45:05 [RateCDR] => 1 ) [2024-12-25 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:45:05' and `end` < '2024-12-25 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:45:17] Production.INFO: count ==2824 [2024-12-25 19:45:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:45:05 - End Time 2024-12-25 19:45:05 [2024-12-25 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101742', 'tblTempUsageDetail_20' ) start [2024-12-25 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101742', 'tblTempUsageDetail_20' ) end [2024-12-25 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101742', 'tblTempVendorCDR_20' ) start [2024-12-25 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101742', 'tblTempVendorCDR_20' ) end [2024-12-25 19:45:18] Production.INFO: ProcessCDR(1,14101742,1,1,2) [2024-12-25 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101742', 'tblTempUsageDetail_20' ) start [2024-12-25 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101742', 'tblTempUsageDetail_20' ) end [2024-12-25 19:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:45:21] Production.INFO: ==26844== Releasing lock... [2024-12-25 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:45:21] Production.INFO: 48.75 MB #Memory Used# [2024-12-25 19:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:46:04 [end_date_ymd] => 2024-12-25 19:46:04 [RateCDR] => 1 ) [2024-12-25 19: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-25 16:46:04' and `end` < '2024-12-25 19: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-25 19:46:17] Production.INFO: count ==2829 [2024-12-25 19:46:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:46:04 - End Time 2024-12-25 19:46:04 [2024-12-25 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101747', 'tblTempUsageDetail_20' ) start [2024-12-25 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101747', 'tblTempUsageDetail_20' ) end [2024-12-25 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101747', 'tblTempVendorCDR_20' ) start [2024-12-25 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101747', 'tblTempVendorCDR_20' ) end [2024-12-25 19:46:18] Production.INFO: ProcessCDR(1,14101747,1,1,2) [2024-12-25 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101747', 'tblTempUsageDetail_20' ) start [2024-12-25 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101747', 'tblTempUsageDetail_20' ) end [2024-12-25 19:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:46:21] Production.INFO: ==26932== Releasing lock... [2024-12-25 19:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:46:21] Production.INFO: 49.25 MB #Memory Used# [2024-12-25 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:47:05 [end_date_ymd] => 2024-12-25 19:47:05 [RateCDR] => 1 ) [2024-12-25 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:47:05' and `end` < '2024-12-25 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:47:17] Production.INFO: count ==2836 [2024-12-25 19:47:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:47:05 - End Time 2024-12-25 19:47:05 [2024-12-25 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101752', 'tblTempUsageDetail_20' ) start [2024-12-25 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101752', 'tblTempUsageDetail_20' ) end [2024-12-25 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101752', 'tblTempVendorCDR_20' ) start [2024-12-25 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101752', 'tblTempVendorCDR_20' ) end [2024-12-25 19:47:18] Production.INFO: ProcessCDR(1,14101752,1,1,2) [2024-12-25 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101752', 'tblTempUsageDetail_20' ) start [2024-12-25 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101752', 'tblTempUsageDetail_20' ) end [2024-12-25 19:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:47:22] Production.INFO: ==27017== Releasing lock... [2024-12-25 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:47:22] Production.INFO: 49 MB #Memory Used# [2024-12-25 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:48:04 [end_date_ymd] => 2024-12-25 19:48:04 [RateCDR] => 1 ) [2024-12-25 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-25 16:48:04' and `end` < '2024-12-25 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-25 19:48:18] Production.INFO: count ==2840 [2024-12-25 19:48:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:48:04 - End Time 2024-12-25 19:48:04 [2024-12-25 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101757', 'tblTempUsageDetail_20' ) start [2024-12-25 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101757', 'tblTempUsageDetail_20' ) end [2024-12-25 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101757', 'tblTempVendorCDR_20' ) start [2024-12-25 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101757', 'tblTempVendorCDR_20' ) end [2024-12-25 19:48:19] Production.INFO: ProcessCDR(1,14101757,1,1,2) [2024-12-25 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101757', 'tblTempUsageDetail_20' ) start [2024-12-25 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101757', 'tblTempUsageDetail_20' ) end [2024-12-25 19:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:48:24] Production.INFO: ==27102== Releasing lock... [2024-12-25 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:48:24] Production.INFO: 48.75 MB #Memory Used# [2024-12-25 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:49:05 [end_date_ymd] => 2024-12-25 19:49:05 [RateCDR] => 1 ) [2024-12-25 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:49:05' and `end` < '2024-12-25 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:49:17] Production.INFO: count ==2851 [2024-12-25 19:49:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:49:05 - End Time 2024-12-25 19:49:05 [2024-12-25 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101762', 'tblTempUsageDetail_20' ) start [2024-12-25 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101762', 'tblTempUsageDetail_20' ) end [2024-12-25 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101762', 'tblTempVendorCDR_20' ) start [2024-12-25 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101762', 'tblTempVendorCDR_20' ) end [2024-12-25 19:49:18] Production.INFO: ProcessCDR(1,14101762,1,1,2) [2024-12-25 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101762', 'tblTempUsageDetail_20' ) start [2024-12-25 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101762', 'tblTempUsageDetail_20' ) end [2024-12-25 19:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:49:22] Production.INFO: ==27188== Releasing lock... [2024-12-25 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:49:22] Production.INFO: 49 MB #Memory Used# [2024-12-25 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:50:05 [end_date_ymd] => 2024-12-25 19:50:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:50:05' and `end` < '2024-12-25 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-25 19:50:18] Production.INFO: count ==2889 [2024-12-25 19:50:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:50:05 - End Time 2024-12-25 19:50:05 [2024-12-25 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101768', 'tblTempUsageDetail_20' ) start [2024-12-25 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101768', 'tblTempUsageDetail_20' ) end [2024-12-25 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101768', 'tblTempVendorCDR_20' ) start [2024-12-25 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101768', 'tblTempVendorCDR_20' ) end [2024-12-25 19:50:19] Production.INFO: ProcessCDR(1,14101768,1,1,2) [2024-12-25 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101768', 'tblTempUsageDetail_20' ) start [2024-12-25 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101768', 'tblTempUsageDetail_20' ) end [2024-12-25 19:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:50:22] Production.INFO: ==27292== Releasing lock... [2024-12-25 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:50:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-25 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:51:05 [end_date_ymd] => 2024-12-25 19:51:05 [RateCDR] => 1 ) [2024-12-25 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:51:05' and `end` < '2024-12-25 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:51:18] Production.INFO: count ==2922 [2024-12-25 19:51:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:51:05 - End Time 2024-12-25 19:51:05 [2024-12-25 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101773', 'tblTempUsageDetail_20' ) start [2024-12-25 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101773', 'tblTempUsageDetail_20' ) end [2024-12-25 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101773', 'tblTempVendorCDR_20' ) start [2024-12-25 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101773', 'tblTempVendorCDR_20' ) end [2024-12-25 19:51:19] Production.INFO: ProcessCDR(1,14101773,1,1,2) [2024-12-25 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101773', 'tblTempUsageDetail_20' ) start [2024-12-25 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101773', 'tblTempUsageDetail_20' ) end [2024-12-25 19:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:51:22] Production.INFO: ==27395== Releasing lock... [2024-12-25 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:51:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:52:05 [end_date_ymd] => 2024-12-25 19:52:05 [RateCDR] => 1 ) [2024-12-25 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:52:05' and `end` < '2024-12-25 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:52:19] Production.INFO: count ==2933 [2024-12-25 19:52:20] Production.ERROR: pbx CDR StartTime 2024-12-25 16:52:05 - End Time 2024-12-25 19:52:05 [2024-12-25 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101778', 'tblTempUsageDetail_20' ) start [2024-12-25 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101778', 'tblTempUsageDetail_20' ) end [2024-12-25 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101778', 'tblTempVendorCDR_20' ) start [2024-12-25 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101778', 'tblTempVendorCDR_20' ) end [2024-12-25 19:52:20] Production.INFO: ProcessCDR(1,14101778,1,1,2) [2024-12-25 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101778', 'tblTempUsageDetail_20' ) start [2024-12-25 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101778', 'tblTempUsageDetail_20' ) end [2024-12-25 19:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:52:23] Production.INFO: ==27482== Releasing lock... [2024-12-25 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:52:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:53:04 [end_date_ymd] => 2024-12-25 19:53:04 [RateCDR] => 1 ) [2024-12-25 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-25 16:53:04' and `end` < '2024-12-25 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-25 19:53:18] Production.INFO: count ==2937 [2024-12-25 19:53:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:53:04 - End Time 2024-12-25 19:53:04 [2024-12-25 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101783', 'tblTempUsageDetail_20' ) start [2024-12-25 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101783', 'tblTempUsageDetail_20' ) end [2024-12-25 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101783', 'tblTempVendorCDR_20' ) start [2024-12-25 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101783', 'tblTempVendorCDR_20' ) end [2024-12-25 19:53:19] Production.INFO: ProcessCDR(1,14101783,1,1,2) [2024-12-25 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101783', 'tblTempUsageDetail_20' ) start [2024-12-25 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101783', 'tblTempUsageDetail_20' ) end [2024-12-25 19:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:53:22] Production.INFO: ==27567== Releasing lock... [2024-12-25 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:53:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:54:05 [end_date_ymd] => 2024-12-25 19:54:05 [RateCDR] => 1 ) [2024-12-25 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:54:05' and `end` < '2024-12-25 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:54:18] Production.INFO: count ==2934 [2024-12-25 19:54:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:54:05 - End Time 2024-12-25 19:54:05 [2024-12-25 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101788', 'tblTempUsageDetail_20' ) start [2024-12-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101788', 'tblTempUsageDetail_20' ) end [2024-12-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101788', 'tblTempVendorCDR_20' ) start [2024-12-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101788', 'tblTempVendorCDR_20' ) end [2024-12-25 19:54:19] Production.INFO: ProcessCDR(1,14101788,1,1,2) [2024-12-25 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101788', 'tblTempUsageDetail_20' ) start [2024-12-25 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101788', 'tblTempUsageDetail_20' ) end [2024-12-25 19:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:54:22] Production.INFO: ==27654== Releasing lock... [2024-12-25 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:54:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 19:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:55:04 [end_date_ymd] => 2024-12-25 19:55:04 [RateCDR] => 1 ) [2024-12-25 19: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-25 16:55:04' and `end` < '2024-12-25 19: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-25 19:55:17] Production.INFO: count ==2941 [2024-12-25 19:55:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:55:04 - End Time 2024-12-25 19:55:04 [2024-12-25 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101793', 'tblTempUsageDetail_20' ) start [2024-12-25 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101793', 'tblTempUsageDetail_20' ) end [2024-12-25 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101793', 'tblTempVendorCDR_20' ) start [2024-12-25 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101793', 'tblTempVendorCDR_20' ) end [2024-12-25 19:55:18] Production.INFO: ProcessCDR(1,14101793,1,1,2) [2024-12-25 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101793', 'tblTempUsageDetail_20' ) start [2024-12-25 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101793', 'tblTempUsageDetail_20' ) end [2024-12-25 19:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:55:21] Production.INFO: ==27736== Releasing lock... [2024-12-25 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:55:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:56:05 [end_date_ymd] => 2024-12-25 19:56:05 [RateCDR] => 1 ) [2024-12-25 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 16:56:05' and `end` < '2024-12-25 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:56:18] Production.INFO: count ==2939 [2024-12-25 19:56:19] Production.ERROR: pbx CDR StartTime 2024-12-25 16:56:05 - End Time 2024-12-25 19:56:05 [2024-12-25 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101798', 'tblTempUsageDetail_20' ) start [2024-12-25 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101798', 'tblTempUsageDetail_20' ) end [2024-12-25 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101798', 'tblTempVendorCDR_20' ) start [2024-12-25 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101798', 'tblTempVendorCDR_20' ) end [2024-12-25 19:56:19] Production.INFO: ProcessCDR(1,14101798,1,1,2) [2024-12-25 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101798', 'tblTempUsageDetail_20' ) start [2024-12-25 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101798', 'tblTempUsageDetail_20' ) end [2024-12-25 19:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:56:22] Production.INFO: ==27818== Releasing lock... [2024-12-25 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:56:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:57:04 [end_date_ymd] => 2024-12-25 19:57:04 [RateCDR] => 1 ) [2024-12-25 19: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-25 16:57:04' and `end` < '2024-12-25 19:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 19:57:17] Production.INFO: count ==2935 [2024-12-25 19:57:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:57:04 - End Time 2024-12-25 19:57:04 [2024-12-25 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101803', 'tblTempUsageDetail_20' ) start [2024-12-25 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101803', 'tblTempUsageDetail_20' ) end [2024-12-25 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101803', 'tblTempVendorCDR_20' ) start [2024-12-25 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101803', 'tblTempVendorCDR_20' ) end [2024-12-25 19:57:18] Production.INFO: ProcessCDR(1,14101803,1,1,2) [2024-12-25 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101803', 'tblTempUsageDetail_20' ) start [2024-12-25 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101803', 'tblTempUsageDetail_20' ) end [2024-12-25 19:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:57:21] Production.INFO: ==27945== Releasing lock... [2024-12-25 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:57:21] Production.INFO: 50 MB #Memory Used# [2024-12-25 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:58:05 [end_date_ymd] => 2024-12-25 19:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:58:05' and `end` < '2024-12-25 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-25 19:58:17] Production.INFO: count ==2943 [2024-12-25 19:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 16:58:05 - End Time 2024-12-25 19:58:05 [2024-12-25 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101808', 'tblTempUsageDetail_20' ) start [2024-12-25 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101808', 'tblTempUsageDetail_20' ) end [2024-12-25 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101808', 'tblTempVendorCDR_20' ) start [2024-12-25 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101808', 'tblTempVendorCDR_20' ) end [2024-12-25 19:58:18] Production.INFO: ProcessCDR(1,14101808,1,1,2) [2024-12-25 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101808', 'tblTempUsageDetail_20' ) start [2024-12-25 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101808', 'tblTempUsageDetail_20' ) end [2024-12-25 19:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:58:22] Production.INFO: ==28028== Releasing lock... [2024-12-25 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:58:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 16:59:05 [end_date_ymd] => 2024-12-25 19:59:05 [RateCDR] => 1 ) [2024-12-25 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-25 16:59:05' and `end` < '2024-12-25 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-25 19:59:19] Production.INFO: count ==2940 [2024-12-25 19:59:20] Production.ERROR: pbx CDR StartTime 2024-12-25 16:59:05 - End Time 2024-12-25 19:59:05 [2024-12-25 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101813', 'tblTempUsageDetail_20' ) start [2024-12-25 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101813', 'tblTempUsageDetail_20' ) end [2024-12-25 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101813', 'tblTempVendorCDR_20' ) start [2024-12-25 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101813', 'tblTempVendorCDR_20' ) end [2024-12-25 19:59:20] Production.INFO: ProcessCDR(1,14101813,1,1,2) [2024-12-25 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101813', 'tblTempUsageDetail_20' ) start [2024-12-25 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101813', 'tblTempUsageDetail_20' ) end [2024-12-25 19:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 19:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 19:59:23] Production.INFO: ==28117== Releasing lock... [2024-12-25 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 19:59:23] Production.INFO: 50 MB #Memory Used# [2024-12-25 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:00:05 [end_date_ymd] => 2024-12-25 20:00:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:00:05' and `end` < '2024-12-25 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-25 20:00:18] Production.INFO: count ==2937 [2024-12-25 20:00:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:00:05 - End Time 2024-12-25 20:00:05 [2024-12-25 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101818', 'tblTempUsageDetail_20' ) start [2024-12-25 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101818', 'tblTempUsageDetail_20' ) end [2024-12-25 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101818', 'tblTempVendorCDR_20' ) start [2024-12-25 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101818', 'tblTempVendorCDR_20' ) end [2024-12-25 20:00:19] Production.INFO: ProcessCDR(1,14101818,1,1,2) [2024-12-25 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101818', 'tblTempUsageDetail_20' ) start [2024-12-25 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101818', 'tblTempUsageDetail_20' ) end [2024-12-25 20:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:00:22] Production.INFO: ==28203== Releasing lock... [2024-12-25 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:00:22] Production.INFO: 50 MB #Memory Used# [2024-12-25 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:01:05 [end_date_ymd] => 2024-12-25 20:01:05 [RateCDR] => 1 ) [2024-12-25 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:01:05' and `end` < '2024-12-25 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:01:18] Production.INFO: count ==2943 [2024-12-25 20:01:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:01:05 - End Time 2024-12-25 20:01:05 [2024-12-25 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101824', 'tblTempUsageDetail_20' ) start [2024-12-25 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101824', 'tblTempUsageDetail_20' ) end [2024-12-25 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101824', 'tblTempVendorCDR_20' ) start [2024-12-25 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101824', 'tblTempVendorCDR_20' ) end [2024-12-25 20:01:19] Production.INFO: ProcessCDR(1,14101824,1,1,2) [2024-12-25 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101824', 'tblTempUsageDetail_20' ) start [2024-12-25 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101824', 'tblTempUsageDetail_20' ) end [2024-12-25 20:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:01:22] Production.INFO: ==28339== Releasing lock... [2024-12-25 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:01:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 20:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:02:04 [end_date_ymd] => 2024-12-25 20:02:04 [RateCDR] => 1 ) [2024-12-25 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-25 17:02:04' and `end` < '2024-12-25 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-25 20:02:18] Production.INFO: count ==2955 [2024-12-25 20:02:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:02:04 - End Time 2024-12-25 20:02:04 [2024-12-25 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101829', 'tblTempUsageDetail_20' ) start [2024-12-25 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101829', 'tblTempUsageDetail_20' ) end [2024-12-25 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101829', 'tblTempVendorCDR_20' ) start [2024-12-25 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101829', 'tblTempVendorCDR_20' ) end [2024-12-25 20:02:19] Production.INFO: ProcessCDR(1,14101829,1,1,2) [2024-12-25 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101829', 'tblTempUsageDetail_20' ) start [2024-12-25 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101829', 'tblTempUsageDetail_20' ) end [2024-12-25 20:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:02:23] Production.INFO: ==28418== Releasing lock... [2024-12-25 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:02:23] Production.INFO: 50 MB #Memory Used# [2024-12-25 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:03:06 [end_date_ymd] => 2024-12-25 20:03:06 [RateCDR] => 1 ) [2024-12-25 20:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:03:06' and `end` < '2024-12-25 20:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:03:19] Production.INFO: count ==2956 [2024-12-25 20:03:20] Production.ERROR: pbx CDR StartTime 2024-12-25 17:03:06 - End Time 2024-12-25 20:03:06 [2024-12-25 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101834', 'tblTempUsageDetail_20' ) start [2024-12-25 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101834', 'tblTempUsageDetail_20' ) end [2024-12-25 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101834', 'tblTempVendorCDR_20' ) start [2024-12-25 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101834', 'tblTempVendorCDR_20' ) end [2024-12-25 20:03:20] Production.INFO: ProcessCDR(1,14101834,1,1,2) [2024-12-25 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101834', 'tblTempUsageDetail_20' ) start [2024-12-25 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101834', 'tblTempUsageDetail_20' ) end [2024-12-25 20:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:03:24] Production.INFO: ==28503== Releasing lock... [2024-12-25 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:03:24] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:04:05 [end_date_ymd] => 2024-12-25 20:04:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:04:05' and `end` < '2024-12-25 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-25 20:04:17] Production.INFO: count ==2959 [2024-12-25 20:04:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:04:05 - End Time 2024-12-25 20:04:05 [2024-12-25 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101839', 'tblTempUsageDetail_20' ) start [2024-12-25 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101839', 'tblTempUsageDetail_20' ) end [2024-12-25 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101839', 'tblTempVendorCDR_20' ) start [2024-12-25 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101839', 'tblTempVendorCDR_20' ) end [2024-12-25 20:04:18] Production.INFO: ProcessCDR(1,14101839,1,1,2) [2024-12-25 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101839', 'tblTempUsageDetail_20' ) start [2024-12-25 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101839', 'tblTempUsageDetail_20' ) end [2024-12-25 20:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:04:22] Production.INFO: ==28595== Releasing lock... [2024-12-25 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:04:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:05:05 [end_date_ymd] => 2024-12-25 20:05:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:05:05' and `end` < '2024-12-25 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-25 20:05:17] Production.INFO: count ==2975 [2024-12-25 20:05:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:05:05 - End Time 2024-12-25 20:05:05 [2024-12-25 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101844', 'tblTempUsageDetail_20' ) start [2024-12-25 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101844', 'tblTempUsageDetail_20' ) end [2024-12-25 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101844', 'tblTempVendorCDR_20' ) start [2024-12-25 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101844', 'tblTempVendorCDR_20' ) end [2024-12-25 20:05:18] Production.INFO: ProcessCDR(1,14101844,1,1,2) [2024-12-25 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101844', 'tblTempUsageDetail_20' ) start [2024-12-25 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101844', 'tblTempUsageDetail_20' ) end [2024-12-25 20:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:05:22] Production.INFO: ==28686== Releasing lock... [2024-12-25 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:05:22] Production.INFO: 50 MB #Memory Used# [2024-12-25 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:06:05 [end_date_ymd] => 2024-12-25 20:06:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:06:05' and `end` < '2024-12-25 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-25 20:06:18] Production.INFO: count ==2978 [2024-12-25 20:06:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:06:05 - End Time 2024-12-25 20:06:05 [2024-12-25 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101849', 'tblTempUsageDetail_20' ) start [2024-12-25 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101849', 'tblTempUsageDetail_20' ) end [2024-12-25 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101849', 'tblTempVendorCDR_20' ) start [2024-12-25 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101849', 'tblTempVendorCDR_20' ) end [2024-12-25 20:06:19] Production.INFO: ProcessCDR(1,14101849,1,1,2) [2024-12-25 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101849', 'tblTempUsageDetail_20' ) start [2024-12-25 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101849', 'tblTempUsageDetail_20' ) end [2024-12-25 20:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:06:22] Production.INFO: ==28770== Releasing lock... [2024-12-25 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:06:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:07:05 [end_date_ymd] => 2024-12-25 20:07:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:07:05' and `end` < '2024-12-25 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-25 20:07:18] Production.INFO: count ==2977 [2024-12-25 20:07:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:07:05 - End Time 2024-12-25 20:07:05 [2024-12-25 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101854', 'tblTempUsageDetail_20' ) start [2024-12-25 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101854', 'tblTempUsageDetail_20' ) end [2024-12-25 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101854', 'tblTempVendorCDR_20' ) start [2024-12-25 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101854', 'tblTempVendorCDR_20' ) end [2024-12-25 20:07:19] Production.INFO: ProcessCDR(1,14101854,1,1,2) [2024-12-25 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101854', 'tblTempUsageDetail_20' ) start [2024-12-25 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101854', 'tblTempUsageDetail_20' ) end [2024-12-25 20:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:07:22] Production.INFO: ==28859== Releasing lock... [2024-12-25 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:07:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:08:05 [end_date_ymd] => 2024-12-25 20:08:05 [RateCDR] => 1 ) [2024-12-25 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:08:05' and `end` < '2024-12-25 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:08:18] Production.INFO: count ==2976 [2024-12-25 20:08:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:08:05 - End Time 2024-12-25 20:08:05 [2024-12-25 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101859', 'tblTempUsageDetail_20' ) start [2024-12-25 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101859', 'tblTempUsageDetail_20' ) end [2024-12-25 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101859', 'tblTempVendorCDR_20' ) start [2024-12-25 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101859', 'tblTempVendorCDR_20' ) end [2024-12-25 20:08:19] Production.INFO: ProcessCDR(1,14101859,1,1,2) [2024-12-25 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101859', 'tblTempUsageDetail_20' ) start [2024-12-25 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101859', 'tblTempUsageDetail_20' ) end [2024-12-25 20:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:08:22] Production.INFO: ==28938== Releasing lock... [2024-12-25 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:08:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:09:04 [end_date_ymd] => 2024-12-25 20:09:04 [RateCDR] => 1 ) [2024-12-25 20: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-25 17:09:04' and `end` < '2024-12-25 20: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-25 20:09:18] Production.INFO: count ==2978 [2024-12-25 20:09:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:09:04 - End Time 2024-12-25 20:09:04 [2024-12-25 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101864', 'tblTempUsageDetail_20' ) start [2024-12-25 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101864', 'tblTempUsageDetail_20' ) end [2024-12-25 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101864', 'tblTempVendorCDR_20' ) start [2024-12-25 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101864', 'tblTempVendorCDR_20' ) end [2024-12-25 20:09:19] Production.INFO: ProcessCDR(1,14101864,1,1,2) [2024-12-25 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101864', 'tblTempUsageDetail_20' ) start [2024-12-25 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101864', 'tblTempUsageDetail_20' ) end [2024-12-25 20:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:09:22] Production.INFO: ==29019== Releasing lock... [2024-12-25 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:09:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:10:05 [end_date_ymd] => 2024-12-25 20:10:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:10:05' and `end` < '2024-12-25 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-25 20:10:18] Production.INFO: count ==2969 [2024-12-25 20:10:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:10:05 - End Time 2024-12-25 20:10:05 [2024-12-25 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101869', 'tblTempUsageDetail_20' ) start [2024-12-25 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101869', 'tblTempUsageDetail_20' ) end [2024-12-25 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101869', 'tblTempVendorCDR_20' ) start [2024-12-25 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101869', 'tblTempVendorCDR_20' ) end [2024-12-25 20:10:19] Production.INFO: ProcessCDR(1,14101869,1,1,2) [2024-12-25 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101869', 'tblTempUsageDetail_20' ) start [2024-12-25 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101869', 'tblTempUsageDetail_20' ) end [2024-12-25 20:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:10:22] Production.INFO: ==29107== Releasing lock... [2024-12-25 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:10:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:11:04 [end_date_ymd] => 2024-12-25 20:11:04 [RateCDR] => 1 ) [2024-12-25 20:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:11:04' and `end` < '2024-12-25 20:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:11:18] Production.INFO: count ==2940 [2024-12-25 20:11:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:11:04 - End Time 2024-12-25 20:11:04 [2024-12-25 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101875', 'tblTempUsageDetail_20' ) start [2024-12-25 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101875', 'tblTempUsageDetail_20' ) end [2024-12-25 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101875', 'tblTempVendorCDR_20' ) start [2024-12-25 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101875', 'tblTempVendorCDR_20' ) end [2024-12-25 20:11:19] Production.INFO: ProcessCDR(1,14101875,1,1,2) [2024-12-25 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101875', 'tblTempUsageDetail_20' ) start [2024-12-25 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101875', 'tblTempUsageDetail_20' ) end [2024-12-25 20:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:11:22] Production.INFO: ==29190== Releasing lock... [2024-12-25 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:11:22] Production.INFO: 50 MB #Memory Used# [2024-12-25 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:12:05 [end_date_ymd] => 2024-12-25 20:12:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:12:05' and `end` < '2024-12-25 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-25 20:12:17] Production.INFO: count ==2936 [2024-12-25 20:12:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:12:05 - End Time 2024-12-25 20:12:05 [2024-12-25 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101880', 'tblTempUsageDetail_20' ) start [2024-12-25 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101880', 'tblTempUsageDetail_20' ) end [2024-12-25 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101880', 'tblTempVendorCDR_20' ) start [2024-12-25 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101880', 'tblTempVendorCDR_20' ) end [2024-12-25 20:12:18] Production.INFO: ProcessCDR(1,14101880,1,1,2) [2024-12-25 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101880', 'tblTempUsageDetail_20' ) start [2024-12-25 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101880', 'tblTempUsageDetail_20' ) end [2024-12-25 20:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:12:22] Production.INFO: ==29311== Releasing lock... [2024-12-25 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:12:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:13:06 [end_date_ymd] => 2024-12-25 20:13:06 [RateCDR] => 1 ) [2024-12-25 20: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-25 17:13:06' and `end` < '2024-12-25 20: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-25 20:13:18] Production.INFO: count ==2935 [2024-12-25 20:13:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:13:06 - End Time 2024-12-25 20:13:06 [2024-12-25 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101885', 'tblTempUsageDetail_20' ) start [2024-12-25 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101885', 'tblTempUsageDetail_20' ) end [2024-12-25 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101885', 'tblTempVendorCDR_20' ) start [2024-12-25 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101885', 'tblTempVendorCDR_20' ) end [2024-12-25 20:13:19] Production.INFO: ProcessCDR(1,14101885,1,1,2) [2024-12-25 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101885', 'tblTempUsageDetail_20' ) start [2024-12-25 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101885', 'tblTempUsageDetail_20' ) end [2024-12-25 20:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:13:23] Production.INFO: ==29397== Releasing lock... [2024-12-25 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:13:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:14:05 [end_date_ymd] => 2024-12-25 20:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:14:05' and `end` < '2024-12-25 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-25 20:14:17] Production.INFO: count ==2953 [2024-12-25 20:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:14:05 - End Time 2024-12-25 20:14:05 [2024-12-25 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101890', 'tblTempUsageDetail_20' ) start [2024-12-25 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101890', 'tblTempUsageDetail_20' ) end [2024-12-25 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101890', 'tblTempVendorCDR_20' ) start [2024-12-25 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101890', 'tblTempVendorCDR_20' ) end [2024-12-25 20:14:18] Production.INFO: ProcessCDR(1,14101890,1,1,2) [2024-12-25 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101890', 'tblTempUsageDetail_20' ) start [2024-12-25 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101890', 'tblTempUsageDetail_20' ) end [2024-12-25 20:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:14:22] Production.INFO: ==29479== Releasing lock... [2024-12-25 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:14:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:15:05 [end_date_ymd] => 2024-12-25 20:15:05 [RateCDR] => 1 ) [2024-12-25 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:15:05' and `end` < '2024-12-25 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:15:17] Production.INFO: count ==2967 [2024-12-25 20:15:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:15:05 - End Time 2024-12-25 20:15:05 [2024-12-25 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101895', 'tblTempUsageDetail_20' ) start [2024-12-25 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101895', 'tblTempUsageDetail_20' ) end [2024-12-25 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101895', 'tblTempVendorCDR_20' ) start [2024-12-25 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101895', 'tblTempVendorCDR_20' ) end [2024-12-25 20:15:18] Production.INFO: ProcessCDR(1,14101895,1,1,2) [2024-12-25 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101895', 'tblTempUsageDetail_20' ) start [2024-12-25 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101895', 'tblTempUsageDetail_20' ) end [2024-12-25 20:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:15:21] Production.INFO: ==29567== Releasing lock... [2024-12-25 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:15:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:16:04 [end_date_ymd] => 2024-12-25 20:16:04 [RateCDR] => 1 ) [2024-12-25 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-25 17:16:04' and `end` < '2024-12-25 20:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:16:17] Production.INFO: count ==2999 [2024-12-25 20:16:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:16:04 - End Time 2024-12-25 20:16:04 [2024-12-25 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101900', 'tblTempUsageDetail_20' ) start [2024-12-25 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101900', 'tblTempUsageDetail_20' ) end [2024-12-25 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101900', 'tblTempVendorCDR_20' ) start [2024-12-25 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101900', 'tblTempVendorCDR_20' ) end [2024-12-25 20:16:18] Production.INFO: ProcessCDR(1,14101900,1,1,2) [2024-12-25 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101900', 'tblTempUsageDetail_20' ) start [2024-12-25 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101900', 'tblTempUsageDetail_20' ) end [2024-12-25 20:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:16:22] Production.INFO: ==29649== Releasing lock... [2024-12-25 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:16:22] Production.INFO: 50.75 MB #Memory Used# [2024-12-25 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:17:05 [end_date_ymd] => 2024-12-25 20:17:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:17:05' and `end` < '2024-12-25 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-25 20:17:18] Production.INFO: count ==2997 [2024-12-25 20:17:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:17:05 - End Time 2024-12-25 20:17:05 [2024-12-25 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101905', 'tblTempUsageDetail_20' ) start [2024-12-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101905', 'tblTempUsageDetail_20' ) end [2024-12-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101905', 'tblTempVendorCDR_20' ) start [2024-12-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101905', 'tblTempVendorCDR_20' ) end [2024-12-25 20:17:19] Production.INFO: ProcessCDR(1,14101905,1,1,2) [2024-12-25 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101905', 'tblTempUsageDetail_20' ) start [2024-12-25 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101905', 'tblTempUsageDetail_20' ) end [2024-12-25 20:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:17:22] Production.INFO: ==29748== Releasing lock... [2024-12-25 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:17:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:18:04 [end_date_ymd] => 2024-12-25 20:18:04 [RateCDR] => 1 ) [2024-12-25 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-25 17:18:04' and `end` < '2024-12-25 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-25 20:18:18] Production.INFO: count ==2996 [2024-12-25 20:18:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:18:04 - End Time 2024-12-25 20:18:04 [2024-12-25 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101910', 'tblTempUsageDetail_20' ) start [2024-12-25 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101910', 'tblTempUsageDetail_20' ) end [2024-12-25 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101910', 'tblTempVendorCDR_20' ) start [2024-12-25 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101910', 'tblTempVendorCDR_20' ) end [2024-12-25 20:18:19] Production.INFO: ProcessCDR(1,14101910,1,1,2) [2024-12-25 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101910', 'tblTempUsageDetail_20' ) start [2024-12-25 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101910', 'tblTempUsageDetail_20' ) end [2024-12-25 20:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:18:23] Production.INFO: ==29832== Releasing lock... [2024-12-25 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:18:23] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:19:05 [end_date_ymd] => 2024-12-25 20:19:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:19:05' and `end` < '2024-12-25 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-25 20:19:18] Production.INFO: count ==2993 [2024-12-25 20:19:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:19:05 - End Time 2024-12-25 20:19:05 [2024-12-25 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101915', 'tblTempUsageDetail_20' ) start [2024-12-25 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101915', 'tblTempUsageDetail_20' ) end [2024-12-25 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101915', 'tblTempVendorCDR_20' ) start [2024-12-25 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101915', 'tblTempVendorCDR_20' ) end [2024-12-25 20:19:19] Production.INFO: ProcessCDR(1,14101915,1,1,2) [2024-12-25 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101915', 'tblTempUsageDetail_20' ) start [2024-12-25 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101915', 'tblTempUsageDetail_20' ) end [2024-12-25 20:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:19:22] Production.INFO: ==29927== Releasing lock... [2024-12-25 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:19:22] Production.INFO: 50.5 MB #Memory Used# [2024-12-25 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:20:05 [end_date_ymd] => 2024-12-25 20:20:05 [RateCDR] => 1 ) [2024-12-25 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:20:05' and `end` < '2024-12-25 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:20:18] Production.INFO: count ==2992 [2024-12-25 20:20:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:20:05 - End Time 2024-12-25 20:20:05 [2024-12-25 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101921', 'tblTempUsageDetail_20' ) start [2024-12-25 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101921', 'tblTempUsageDetail_20' ) end [2024-12-25 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101921', 'tblTempVendorCDR_20' ) start [2024-12-25 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101921', 'tblTempVendorCDR_20' ) end [2024-12-25 20:20:19] Production.INFO: ProcessCDR(1,14101921,1,1,2) [2024-12-25 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101921', 'tblTempUsageDetail_20' ) start [2024-12-25 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101921', 'tblTempUsageDetail_20' ) end [2024-12-25 20:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:20:23] Production.INFO: ==30015== Releasing lock... [2024-12-25 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:20:23] Production.INFO: 50.5 MB #Memory Used# [2024-12-25 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:21:05 [end_date_ymd] => 2024-12-25 20:21:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:21:05' and `end` < '2024-12-25 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-25 20:21:18] Production.INFO: count ==2955 [2024-12-25 20:21:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:21:05 - End Time 2024-12-25 20:21:05 [2024-12-25 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101926', 'tblTempUsageDetail_20' ) start [2024-12-25 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101926', 'tblTempUsageDetail_20' ) end [2024-12-25 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101926', 'tblTempVendorCDR_20' ) start [2024-12-25 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101926', 'tblTempVendorCDR_20' ) end [2024-12-25 20:21:19] Production.INFO: ProcessCDR(1,14101926,1,1,2) [2024-12-25 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101926', 'tblTempUsageDetail_20' ) start [2024-12-25 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101926', 'tblTempUsageDetail_20' ) end [2024-12-25 20:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:21:22] Production.INFO: ==30104== Releasing lock... [2024-12-25 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:21:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:22:05 [end_date_ymd] => 2024-12-25 20:22:05 [RateCDR] => 1 ) [2024-12-25 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:22:05' and `end` < '2024-12-25 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:22:17] Production.INFO: count ==2954 [2024-12-25 20:22:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:22:05 - End Time 2024-12-25 20:22:05 [2024-12-25 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101931', 'tblTempUsageDetail_20' ) start [2024-12-25 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101931', 'tblTempUsageDetail_20' ) end [2024-12-25 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101931', 'tblTempVendorCDR_20' ) start [2024-12-25 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101931', 'tblTempVendorCDR_20' ) end [2024-12-25 20:22:18] Production.INFO: ProcessCDR(1,14101931,1,1,2) [2024-12-25 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101931', 'tblTempUsageDetail_20' ) start [2024-12-25 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101931', 'tblTempUsageDetail_20' ) end [2024-12-25 20:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:22:21] Production.INFO: ==30185== Releasing lock... [2024-12-25 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:22:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:23:04 [end_date_ymd] => 2024-12-25 20:23:04 [RateCDR] => 1 ) [2024-12-25 20: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-25 17:23:04' and `end` < '2024-12-25 20: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-25 20:23:17] Production.INFO: count ==2947 [2024-12-25 20:23:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:23:04 - End Time 2024-12-25 20:23:04 [2024-12-25 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101936', 'tblTempUsageDetail_20' ) start [2024-12-25 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101936', 'tblTempUsageDetail_20' ) end [2024-12-25 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101936', 'tblTempVendorCDR_20' ) start [2024-12-25 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101936', 'tblTempVendorCDR_20' ) end [2024-12-25 20:23:18] Production.INFO: ProcessCDR(1,14101936,1,1,2) [2024-12-25 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101936', 'tblTempUsageDetail_20' ) start [2024-12-25 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101936', 'tblTempUsageDetail_20' ) end [2024-12-25 20:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:23:21] Production.INFO: ==30286== Releasing lock... [2024-12-25 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:23:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:24:05 [end_date_ymd] => 2024-12-25 20:24:05 [RateCDR] => 1 ) [2024-12-25 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:24:05' and `end` < '2024-12-25 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:24:18] Production.INFO: count ==2945 [2024-12-25 20:24:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:24:05 - End Time 2024-12-25 20:24:05 [2024-12-25 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101941', 'tblTempUsageDetail_20' ) start [2024-12-25 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101941', 'tblTempUsageDetail_20' ) end [2024-12-25 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101941', 'tblTempVendorCDR_20' ) start [2024-12-25 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101941', 'tblTempVendorCDR_20' ) end [2024-12-25 20:24:19] Production.INFO: ProcessCDR(1,14101941,1,1,2) [2024-12-25 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101941', 'tblTempUsageDetail_20' ) start [2024-12-25 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101941', 'tblTempUsageDetail_20' ) end [2024-12-25 20:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:24:22] Production.INFO: ==30371== Releasing lock... [2024-12-25 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:24:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:25:04 [end_date_ymd] => 2024-12-25 20:25:04 [RateCDR] => 1 ) [2024-12-25 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-25 17:25:04' and `end` < '2024-12-25 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-25 20:25:17] Production.INFO: count ==2943 [2024-12-25 20:25:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:25:04 - End Time 2024-12-25 20:25:04 [2024-12-25 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101946', 'tblTempUsageDetail_20' ) start [2024-12-25 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101946', 'tblTempUsageDetail_20' ) end [2024-12-25 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101946', 'tblTempVendorCDR_20' ) start [2024-12-25 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101946', 'tblTempVendorCDR_20' ) end [2024-12-25 20:25:18] Production.INFO: ProcessCDR(1,14101946,1,1,2) [2024-12-25 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101946', 'tblTempUsageDetail_20' ) start [2024-12-25 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101946', 'tblTempUsageDetail_20' ) end [2024-12-25 20:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:25:21] Production.INFO: ==30450== Releasing lock... [2024-12-25 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:25:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:26:05 [end_date_ymd] => 2024-12-25 20:26:05 [RateCDR] => 1 ) [2024-12-25 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:26:05' and `end` < '2024-12-25 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:26:18] Production.INFO: count ==2937 [2024-12-25 20:26:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:26:05 - End Time 2024-12-25 20:26:05 [2024-12-25 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101951', 'tblTempUsageDetail_20' ) start [2024-12-25 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101951', 'tblTempUsageDetail_20' ) end [2024-12-25 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101951', 'tblTempVendorCDR_20' ) start [2024-12-25 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101951', 'tblTempVendorCDR_20' ) end [2024-12-25 20:26:19] Production.INFO: ProcessCDR(1,14101951,1,1,2) [2024-12-25 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101951', 'tblTempUsageDetail_20' ) start [2024-12-25 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101951', 'tblTempUsageDetail_20' ) end [2024-12-25 20:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:26:22] Production.INFO: ==30538== Releasing lock... [2024-12-25 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:26:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:27:05 [end_date_ymd] => 2024-12-25 20:27:05 [RateCDR] => 1 ) [2024-12-25 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:27:05' and `end` < '2024-12-25 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:27:17] Production.INFO: count ==2940 [2024-12-25 20:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:27:05 - End Time 2024-12-25 20:27:05 [2024-12-25 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101956', 'tblTempUsageDetail_20' ) start [2024-12-25 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101956', 'tblTempUsageDetail_20' ) end [2024-12-25 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101956', 'tblTempVendorCDR_20' ) start [2024-12-25 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101956', 'tblTempVendorCDR_20' ) end [2024-12-25 20:27:18] Production.INFO: ProcessCDR(1,14101956,1,1,2) [2024-12-25 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101956', 'tblTempUsageDetail_20' ) start [2024-12-25 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101956', 'tblTempUsageDetail_20' ) end [2024-12-25 20:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:27:21] Production.INFO: ==30616== Releasing lock... [2024-12-25 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:27:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:28:05 [end_date_ymd] => 2024-12-25 20:28:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:28:05' and `end` < '2024-12-25 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-25 20:28:18] Production.INFO: count ==2950 [2024-12-25 20:28:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:28:05 - End Time 2024-12-25 20:28:05 [2024-12-25 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101961', 'tblTempUsageDetail_20' ) start [2024-12-25 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101961', 'tblTempUsageDetail_20' ) end [2024-12-25 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101961', 'tblTempVendorCDR_20' ) start [2024-12-25 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101961', 'tblTempVendorCDR_20' ) end [2024-12-25 20:28:19] Production.INFO: ProcessCDR(1,14101961,1,1,2) [2024-12-25 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101961', 'tblTempUsageDetail_20' ) start [2024-12-25 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101961', 'tblTempUsageDetail_20' ) end [2024-12-25 20:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:28:23] Production.INFO: ==30741== Releasing lock... [2024-12-25 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:28:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:29:05 [end_date_ymd] => 2024-12-25 20:29:05 [RateCDR] => 1 ) [2024-12-25 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:29:05' and `end` < '2024-12-25 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:29:18] Production.INFO: count ==2943 [2024-12-25 20:29:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:29:05 - End Time 2024-12-25 20:29:05 [2024-12-25 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101966', 'tblTempUsageDetail_20' ) start [2024-12-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101966', 'tblTempUsageDetail_20' ) end [2024-12-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101966', 'tblTempVendorCDR_20' ) start [2024-12-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101966', 'tblTempVendorCDR_20' ) end [2024-12-25 20:29:19] Production.INFO: ProcessCDR(1,14101966,1,1,2) [2024-12-25 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101966', 'tblTempUsageDetail_20' ) start [2024-12-25 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101966', 'tblTempUsageDetail_20' ) end [2024-12-25 20:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:29:22] Production.INFO: ==30820== Releasing lock... [2024-12-25 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:29:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:30:06 [end_date_ymd] => 2024-12-25 20:30:06 [RateCDR] => 1 ) [2024-12-25 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:30:06' and `end` < '2024-12-25 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:30:18] Production.INFO: count ==2961 [2024-12-25 20:30:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:30:06 - End Time 2024-12-25 20:30:06 [2024-12-25 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101972', 'tblTempUsageDetail_20' ) start [2024-12-25 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101972', 'tblTempUsageDetail_20' ) end [2024-12-25 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101972', 'tblTempVendorCDR_20' ) start [2024-12-25 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101972', 'tblTempVendorCDR_20' ) end [2024-12-25 20:30:19] Production.INFO: ProcessCDR(1,14101972,1,1,2) [2024-12-25 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101972', 'tblTempUsageDetail_20' ) start [2024-12-25 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101972', 'tblTempUsageDetail_20' ) end [2024-12-25 20:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:30:23] Production.INFO: ==30912== Releasing lock... [2024-12-25 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:30:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 20:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:31:04 [end_date_ymd] => 2024-12-25 20:31:04 [RateCDR] => 1 ) [2024-12-25 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-25 17:31:04' and `end` < '2024-12-25 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-25 20:31:17] Production.INFO: count ==2997 [2024-12-25 20:31:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:31:04 - End Time 2024-12-25 20:31:04 [2024-12-25 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101977', 'tblTempUsageDetail_20' ) start [2024-12-25 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101977', 'tblTempUsageDetail_20' ) end [2024-12-25 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101977', 'tblTempVendorCDR_20' ) start [2024-12-25 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101977', 'tblTempVendorCDR_20' ) end [2024-12-25 20:31:18] Production.INFO: ProcessCDR(1,14101977,1,1,2) [2024-12-25 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101977', 'tblTempUsageDetail_20' ) start [2024-12-25 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101977', 'tblTempUsageDetail_20' ) end [2024-12-25 20:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:31:21] Production.INFO: ==30996== Releasing lock... [2024-12-25 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:31:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:32:05 [end_date_ymd] => 2024-12-25 20:32:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:32:05' and `end` < '2024-12-25 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-25 20:32:17] Production.INFO: count ==3009 [2024-12-25 20:32:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:32:05 - End Time 2024-12-25 20:32:05 [2024-12-25 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101982', 'tblTempUsageDetail_20' ) start [2024-12-25 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101982', 'tblTempUsageDetail_20' ) end [2024-12-25 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101982', 'tblTempVendorCDR_20' ) start [2024-12-25 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101982', 'tblTempVendorCDR_20' ) end [2024-12-25 20:32:18] Production.INFO: ProcessCDR(1,14101982,1,1,2) [2024-12-25 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101982', 'tblTempUsageDetail_20' ) start [2024-12-25 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101982', 'tblTempUsageDetail_20' ) end [2024-12-25 20:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:32:22] Production.INFO: ==31073== Releasing lock... [2024-12-25 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:32:22] Production.INFO: 50.75 MB #Memory Used# [2024-12-25 20:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:33:04 [end_date_ymd] => 2024-12-25 20:33:04 [RateCDR] => 1 ) [2024-12-25 20:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:33:04' and `end` < '2024-12-25 20:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:33:17] Production.INFO: count ==3007 [2024-12-25 20:33:17] Production.ERROR: pbx CDR StartTime 2024-12-25 17:33:04 - End Time 2024-12-25 20:33:04 [2024-12-25 20:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101987', 'tblTempUsageDetail_20' ) start [2024-12-25 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101987', 'tblTempUsageDetail_20' ) end [2024-12-25 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101987', 'tblTempVendorCDR_20' ) start [2024-12-25 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101987', 'tblTempVendorCDR_20' ) end [2024-12-25 20:33:17] Production.INFO: ProcessCDR(1,14101987,1,1,2) [2024-12-25 20:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101987', 'tblTempUsageDetail_20' ) start [2024-12-25 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101987', 'tblTempUsageDetail_20' ) end [2024-12-25 20:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:33:21] Production.INFO: ==31162== Releasing lock... [2024-12-25 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:33:21] Production.INFO: 50.75 MB #Memory Used# [2024-12-25 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:34:05 [end_date_ymd] => 2024-12-25 20:34:05 [RateCDR] => 1 ) [2024-12-25 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:34:05' and `end` < '2024-12-25 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:34:17] Production.INFO: count ==3009 [2024-12-25 20:34:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:34:05 - End Time 2024-12-25 20:34:05 [2024-12-25 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101992', 'tblTempUsageDetail_20' ) start [2024-12-25 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101992', 'tblTempUsageDetail_20' ) end [2024-12-25 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101992', 'tblTempVendorCDR_20' ) start [2024-12-25 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101992', 'tblTempVendorCDR_20' ) end [2024-12-25 20:34:18] Production.INFO: ProcessCDR(1,14101992,1,1,2) [2024-12-25 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101992', 'tblTempUsageDetail_20' ) start [2024-12-25 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101992', 'tblTempUsageDetail_20' ) end [2024-12-25 20:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:34:22] Production.INFO: ==31245== Releasing lock... [2024-12-25 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:34:22] Production.INFO: 50.75 MB #Memory Used# [2024-12-25 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:35:05 [end_date_ymd] => 2024-12-25 20:35:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:35:05' and `end` < '2024-12-25 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-25 20:35:18] Production.INFO: count ==3011 [2024-12-25 20:35:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:35:05 - End Time 2024-12-25 20:35:05 [2024-12-25 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101997', 'tblTempUsageDetail_20' ) start [2024-12-25 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14101997', 'tblTempUsageDetail_20' ) end [2024-12-25 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101997', 'tblTempVendorCDR_20' ) start [2024-12-25 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14101997', 'tblTempVendorCDR_20' ) end [2024-12-25 20:35:19] Production.INFO: ProcessCDR(1,14101997,1,1,2) [2024-12-25 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14101997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14101997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14101997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14101997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101997', 'tblTempUsageDetail_20' ) start [2024-12-25 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14101997', 'tblTempUsageDetail_20' ) end [2024-12-25 20:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:35:22] Production.INFO: ==31322== Releasing lock... [2024-12-25 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:35:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:36:04 [end_date_ymd] => 2024-12-25 20:36:04 [RateCDR] => 1 ) [2024-12-25 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-25 17:36:04' and `end` < '2024-12-25 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-25 20:36:17] Production.INFO: count ==3002 [2024-12-25 20:36:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:36:04 - End Time 2024-12-25 20:36:04 [2024-12-25 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102002', 'tblTempUsageDetail_20' ) start [2024-12-25 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102002', 'tblTempUsageDetail_20' ) end [2024-12-25 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102002', 'tblTempVendorCDR_20' ) start [2024-12-25 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102002', 'tblTempVendorCDR_20' ) end [2024-12-25 20:36:18] Production.INFO: ProcessCDR(1,14102002,1,1,2) [2024-12-25 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102002', 'tblTempUsageDetail_20' ) start [2024-12-25 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102002', 'tblTempUsageDetail_20' ) end [2024-12-25 20:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:36:21] Production.INFO: ==31406== Releasing lock... [2024-12-25 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:36:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:37:05 [end_date_ymd] => 2024-12-25 20:37:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:37:05' and `end` < '2024-12-25 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-25 20:37:17] Production.INFO: count ==3001 [2024-12-25 20:37:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:37:05 - End Time 2024-12-25 20:37:05 [2024-12-25 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102007', 'tblTempUsageDetail_20' ) start [2024-12-25 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102007', 'tblTempUsageDetail_20' ) end [2024-12-25 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102007', 'tblTempVendorCDR_20' ) start [2024-12-25 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102007', 'tblTempVendorCDR_20' ) end [2024-12-25 20:37:18] Production.INFO: ProcessCDR(1,14102007,1,1,2) [2024-12-25 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102007', 'tblTempUsageDetail_20' ) start [2024-12-25 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102007', 'tblTempUsageDetail_20' ) end [2024-12-25 20:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:37:23] Production.INFO: ==31488== Releasing lock... [2024-12-25 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:37:23] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:38:04 [end_date_ymd] => 2024-12-25 20:38:04 [RateCDR] => 1 ) [2024-12-25 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-25 17:38:04' and `end` < '2024-12-25 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-25 20:38:17] Production.INFO: count ==2991 [2024-12-25 20:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:38:04 - End Time 2024-12-25 20:38:04 [2024-12-25 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102012', 'tblTempUsageDetail_20' ) start [2024-12-25 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102012', 'tblTempUsageDetail_20' ) end [2024-12-25 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102012', 'tblTempVendorCDR_20' ) start [2024-12-25 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102012', 'tblTempVendorCDR_20' ) end [2024-12-25 20:38:18] Production.INFO: ProcessCDR(1,14102012,1,1,2) [2024-12-25 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102012', 'tblTempUsageDetail_20' ) start [2024-12-25 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102012', 'tblTempUsageDetail_20' ) end [2024-12-25 20:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:38:21] Production.INFO: ==31571== Releasing lock... [2024-12-25 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:38:21] Production.INFO: 50.5 MB #Memory Used# [2024-12-25 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:39:05 [end_date_ymd] => 2024-12-25 20:39:05 [RateCDR] => 1 ) [2024-12-25 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:39:05' and `end` < '2024-12-25 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:39:17] Production.INFO: count ==2989 [2024-12-25 20:39:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:39:05 - End Time 2024-12-25 20:39:05 [2024-12-25 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102017', 'tblTempUsageDetail_20' ) start [2024-12-25 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102017', 'tblTempUsageDetail_20' ) end [2024-12-25 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102017', 'tblTempVendorCDR_20' ) start [2024-12-25 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102017', 'tblTempVendorCDR_20' ) end [2024-12-25 20:39:18] Production.INFO: ProcessCDR(1,14102017,1,1,2) [2024-12-25 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102017', 'tblTempUsageDetail_20' ) start [2024-12-25 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102017', 'tblTempUsageDetail_20' ) end [2024-12-25 20:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:39:21] Production.INFO: ==31648== Releasing lock... [2024-12-25 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:39:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:40:06 [end_date_ymd] => 2024-12-25 20:40:06 [RateCDR] => 1 ) [2024-12-25 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-25 17:40:06' and `end` < '2024-12-25 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:40:18] Production.INFO: count ==2987 [2024-12-25 20:40:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:40:06 - End Time 2024-12-25 20:40:06 [2024-12-25 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102023', 'tblTempUsageDetail_20' ) start [2024-12-25 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102023', 'tblTempUsageDetail_20' ) end [2024-12-25 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102023', 'tblTempVendorCDR_20' ) start [2024-12-25 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102023', 'tblTempVendorCDR_20' ) end [2024-12-25 20:40:19] Production.INFO: ProcessCDR(1,14102023,1,1,2) [2024-12-25 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102023', 'tblTempUsageDetail_20' ) start [2024-12-25 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102023', 'tblTempUsageDetail_20' ) end [2024-12-25 20:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:40:22] Production.INFO: ==31738== Releasing lock... [2024-12-25 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:40:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:41:05 [end_date_ymd] => 2024-12-25 20:41:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:41:05' and `end` < '2024-12-25 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-25 20:41:19] Production.INFO: count ==2989 [2024-12-25 20:41:20] Production.ERROR: pbx CDR StartTime 2024-12-25 17:41:05 - End Time 2024-12-25 20:41:05 [2024-12-25 20:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102028', 'tblTempUsageDetail_20' ) start [2024-12-25 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102028', 'tblTempUsageDetail_20' ) end [2024-12-25 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102028', 'tblTempVendorCDR_20' ) start [2024-12-25 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102028', 'tblTempVendorCDR_20' ) end [2024-12-25 20:41:20] Production.INFO: ProcessCDR(1,14102028,1,1,2) [2024-12-25 20:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102028', 'tblTempUsageDetail_20' ) start [2024-12-25 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102028', 'tblTempUsageDetail_20' ) end [2024-12-25 20:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:41:23] Production.INFO: ==31817== Releasing lock... [2024-12-25 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:41:23] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:42:05 [end_date_ymd] => 2024-12-25 20:42:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:42:05' and `end` < '2024-12-25 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-25 20:42:17] Production.INFO: count ==2996 [2024-12-25 20:42:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:42:05 - End Time 2024-12-25 20:42:05 [2024-12-25 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102033', 'tblTempUsageDetail_20' ) start [2024-12-25 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102033', 'tblTempUsageDetail_20' ) end [2024-12-25 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102033', 'tblTempVendorCDR_20' ) start [2024-12-25 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102033', 'tblTempVendorCDR_20' ) end [2024-12-25 20:42:18] Production.INFO: ProcessCDR(1,14102033,1,1,2) [2024-12-25 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102033', 'tblTempUsageDetail_20' ) start [2024-12-25 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102033', 'tblTempUsageDetail_20' ) end [2024-12-25 20:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:42:21] Production.INFO: ==31900== Releasing lock... [2024-12-25 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:42:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:43:05 [end_date_ymd] => 2024-12-25 20:43:05 [RateCDR] => 1 ) [2024-12-25 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:43:05' and `end` < '2024-12-25 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:43:18] Production.INFO: count ==3005 [2024-12-25 20:43:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:43:05 - End Time 2024-12-25 20:43:05 [2024-12-25 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102038', 'tblTempUsageDetail_20' ) start [2024-12-25 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102038', 'tblTempUsageDetail_20' ) end [2024-12-25 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102038', 'tblTempVendorCDR_20' ) start [2024-12-25 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102038', 'tblTempVendorCDR_20' ) end [2024-12-25 20:43:19] Production.INFO: ProcessCDR(1,14102038,1,1,2) [2024-12-25 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102038', 'tblTempUsageDetail_20' ) start [2024-12-25 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102038', 'tblTempUsageDetail_20' ) end [2024-12-25 20:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:43:22] Production.INFO: ==31982== Releasing lock... [2024-12-25 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:43:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:44:04 [end_date_ymd] => 2024-12-25 20:44:04 [RateCDR] => 1 ) [2024-12-25 20:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:44:04' and `end` < '2024-12-25 20:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:44:17] Production.INFO: count ==3006 [2024-12-25 20:44:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:44:04 - End Time 2024-12-25 20:44:04 [2024-12-25 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102043', 'tblTempUsageDetail_20' ) start [2024-12-25 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102043', 'tblTempUsageDetail_20' ) end [2024-12-25 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102043', 'tblTempVendorCDR_20' ) start [2024-12-25 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102043', 'tblTempVendorCDR_20' ) end [2024-12-25 20:44:18] Production.INFO: ProcessCDR(1,14102043,1,1,2) [2024-12-25 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102043', 'tblTempUsageDetail_20' ) start [2024-12-25 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102043', 'tblTempUsageDetail_20' ) end [2024-12-25 20:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:44:21] Production.INFO: ==32102== Releasing lock... [2024-12-25 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:44:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:45:04 [end_date_ymd] => 2024-12-25 20:45:04 [RateCDR] => 1 ) [2024-12-25 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-25 17:45:04' and `end` < '2024-12-25 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-25 20:45:17] Production.INFO: count ==3011 [2024-12-25 20:45:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:45:04 - End Time 2024-12-25 20:45:04 [2024-12-25 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102048', 'tblTempUsageDetail_20' ) start [2024-12-25 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102048', 'tblTempUsageDetail_20' ) end [2024-12-25 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102048', 'tblTempVendorCDR_20' ) start [2024-12-25 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102048', 'tblTempVendorCDR_20' ) end [2024-12-25 20:45:18] Production.INFO: ProcessCDR(1,14102048,1,1,2) [2024-12-25 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102048', 'tblTempUsageDetail_20' ) start [2024-12-25 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102048', 'tblTempUsageDetail_20' ) end [2024-12-25 20:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:45:21] Production.INFO: ==32177== Releasing lock... [2024-12-25 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:45:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:46:05 [end_date_ymd] => 2024-12-25 20:46:05 [RateCDR] => 1 ) [2024-12-25 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:46:05' and `end` < '2024-12-25 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:46:17] Production.INFO: count ==3016 [2024-12-25 20:46:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:46:05 - End Time 2024-12-25 20:46:05 [2024-12-25 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102053', 'tblTempUsageDetail_20' ) start [2024-12-25 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102053', 'tblTempUsageDetail_20' ) end [2024-12-25 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102053', 'tblTempVendorCDR_20' ) start [2024-12-25 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102053', 'tblTempVendorCDR_20' ) end [2024-12-25 20:46:18] Production.INFO: ProcessCDR(1,14102053,1,1,2) [2024-12-25 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102053', 'tblTempUsageDetail_20' ) start [2024-12-25 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102053', 'tblTempUsageDetail_20' ) end [2024-12-25 20:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:46:22] Production.INFO: ==32254== Releasing lock... [2024-12-25 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:46:22] Production.INFO: 50.75 MB #Memory Used# [2024-12-25 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:47:05 [end_date_ymd] => 2024-12-25 20:47:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:47:05' and `end` < '2024-12-25 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-25 20:47:18] Production.INFO: count ==3018 [2024-12-25 20:47:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:47:05 - End Time 2024-12-25 20:47:05 [2024-12-25 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102058', 'tblTempUsageDetail_20' ) start [2024-12-25 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102058', 'tblTempUsageDetail_20' ) end [2024-12-25 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102058', 'tblTempVendorCDR_20' ) start [2024-12-25 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102058', 'tblTempVendorCDR_20' ) end [2024-12-25 20:47:19] Production.INFO: ProcessCDR(1,14102058,1,1,2) [2024-12-25 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102058', 'tblTempUsageDetail_20' ) start [2024-12-25 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102058', 'tblTempUsageDetail_20' ) end [2024-12-25 20:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:47:22] Production.INFO: ==32333== Releasing lock... [2024-12-25 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:47:22] Production.INFO: 50.5 MB #Memory Used# [2024-12-25 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:48:05 [end_date_ymd] => 2024-12-25 20:48:05 [RateCDR] => 1 ) [2024-12-25 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:48:05' and `end` < '2024-12-25 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:48:17] Production.INFO: count ==3013 [2024-12-25 20:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:48:05 - End Time 2024-12-25 20:48:05 [2024-12-25 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102063', 'tblTempUsageDetail_20' ) start [2024-12-25 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102063', 'tblTempUsageDetail_20' ) end [2024-12-25 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102063', 'tblTempVendorCDR_20' ) start [2024-12-25 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102063', 'tblTempVendorCDR_20' ) end [2024-12-25 20:48:18] Production.INFO: ProcessCDR(1,14102063,1,1,2) [2024-12-25 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102063', 'tblTempUsageDetail_20' ) start [2024-12-25 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102063', 'tblTempUsageDetail_20' ) end [2024-12-25 20:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:48:21] Production.INFO: ==32419== Releasing lock... [2024-12-25 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:48:21] Production.INFO: 51.25 MB #Memory Used# [2024-12-25 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:49:04 [end_date_ymd] => 2024-12-25 20:49:04 [RateCDR] => 1 ) [2024-12-25 20: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-25 17:49:04' and `end` < '2024-12-25 20:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:49:17] Production.INFO: count ==3026 [2024-12-25 20:49:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:49:04 - End Time 2024-12-25 20:49:04 [2024-12-25 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102068', 'tblTempUsageDetail_20' ) start [2024-12-25 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102068', 'tblTempUsageDetail_20' ) end [2024-12-25 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102068', 'tblTempVendorCDR_20' ) start [2024-12-25 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102068', 'tblTempVendorCDR_20' ) end [2024-12-25 20:49:18] Production.INFO: ProcessCDR(1,14102068,1,1,2) [2024-12-25 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102068', 'tblTempUsageDetail_20' ) start [2024-12-25 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102068', 'tblTempUsageDetail_20' ) end [2024-12-25 20:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:49:21] Production.INFO: ==32496== Releasing lock... [2024-12-25 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:49:21] Production.INFO: 50.5 MB #Memory Used# [2024-12-25 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:50:05 [end_date_ymd] => 2024-12-25 20:50:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:50:05' and `end` < '2024-12-25 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-25 20:50:18] Production.INFO: count ==3029 [2024-12-25 20:50:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:50:05 - End Time 2024-12-25 20:50:05 [2024-12-25 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102074', 'tblTempUsageDetail_20' ) start [2024-12-25 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102074', 'tblTempUsageDetail_20' ) end [2024-12-25 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102074', 'tblTempVendorCDR_20' ) start [2024-12-25 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102074', 'tblTempVendorCDR_20' ) end [2024-12-25 20:50:19] Production.INFO: ProcessCDR(1,14102074,1,1,2) [2024-12-25 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102074', 'tblTempUsageDetail_20' ) start [2024-12-25 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102074', 'tblTempUsageDetail_20' ) end [2024-12-25 20:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:50:22] Production.INFO: ==32574== Releasing lock... [2024-12-25 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:50:22] Production.INFO: 51 MB #Memory Used# [2024-12-25 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:51:05 [end_date_ymd] => 2024-12-25 20:51:05 [RateCDR] => 1 ) [2024-12-25 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:51:05' and `end` < '2024-12-25 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:51:17] Production.INFO: count ==3006 [2024-12-25 20:51:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:51:05 - End Time 2024-12-25 20:51:05 [2024-12-25 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102079', 'tblTempUsageDetail_20' ) start [2024-12-25 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102079', 'tblTempUsageDetail_20' ) end [2024-12-25 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102079', 'tblTempVendorCDR_20' ) start [2024-12-25 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102079', 'tblTempVendorCDR_20' ) end [2024-12-25 20:51:19] Production.INFO: ProcessCDR(1,14102079,1,1,2) [2024-12-25 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102079', 'tblTempUsageDetail_20' ) start [2024-12-25 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102079', 'tblTempUsageDetail_20' ) end [2024-12-25 20:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:51:22] Production.INFO: ==32654== Releasing lock... [2024-12-25 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:51:22] Production.INFO: 50.75 MB #Memory Used# [2024-12-25 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:52:04 [end_date_ymd] => 2024-12-25 20:52:04 [RateCDR] => 1 ) [2024-12-25 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-25 17:52:04' and `end` < '2024-12-25 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-25 20:52:17] Production.INFO: count ==3004 [2024-12-25 20:52:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:52:04 - End Time 2024-12-25 20:52:04 [2024-12-25 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102084', 'tblTempUsageDetail_20' ) start [2024-12-25 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102084', 'tblTempUsageDetail_20' ) end [2024-12-25 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102084', 'tblTempVendorCDR_20' ) start [2024-12-25 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102084', 'tblTempVendorCDR_20' ) end [2024-12-25 20:52:18] Production.INFO: ProcessCDR(1,14102084,1,1,2) [2024-12-25 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102084', 'tblTempUsageDetail_20' ) start [2024-12-25 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102084', 'tblTempUsageDetail_20' ) end [2024-12-25 20:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:52:21] Production.INFO: ==32727== Releasing lock... [2024-12-25 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:52:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:53:05 [end_date_ymd] => 2024-12-25 20:53:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:53:05' and `end` < '2024-12-25 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-25 20:53:18] Production.INFO: count ==3008 [2024-12-25 20:53:19] Production.ERROR: pbx CDR StartTime 2024-12-25 17:53:05 - End Time 2024-12-25 20:53:05 [2024-12-25 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102089', 'tblTempUsageDetail_20' ) start [2024-12-25 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102089', 'tblTempUsageDetail_20' ) end [2024-12-25 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102089', 'tblTempVendorCDR_20' ) start [2024-12-25 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102089', 'tblTempVendorCDR_20' ) end [2024-12-25 20:53:19] Production.INFO: ProcessCDR(1,14102089,1,1,2) [2024-12-25 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102089', 'tblTempUsageDetail_20' ) start [2024-12-25 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102089', 'tblTempUsageDetail_20' ) end [2024-12-25 20:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:53:22] Production.INFO: ==358== Releasing lock... [2024-12-25 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:53:22] Production.INFO: 50.75 MB #Memory Used# [2024-12-25 20:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:54:04 [end_date_ymd] => 2024-12-25 20:54:04 [RateCDR] => 1 ) [2024-12-25 20:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:54:04' and `end` < '2024-12-25 20:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:54:17] Production.INFO: count ==3013 [2024-12-25 20:54:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:54:04 - End Time 2024-12-25 20:54:04 [2024-12-25 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102094', 'tblTempUsageDetail_20' ) start [2024-12-25 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102094', 'tblTempUsageDetail_20' ) end [2024-12-25 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102094', 'tblTempVendorCDR_20' ) start [2024-12-25 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102094', 'tblTempVendorCDR_20' ) end [2024-12-25 20:54:18] Production.INFO: ProcessCDR(1,14102094,1,1,2) [2024-12-25 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102094', 'tblTempUsageDetail_20' ) start [2024-12-25 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102094', 'tblTempUsageDetail_20' ) end [2024-12-25 20:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:54:23] Production.INFO: ==431== Releasing lock... [2024-12-25 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:54:23] Production.INFO: 50.5 MB #Memory Used# [2024-12-25 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:55:05 [end_date_ymd] => 2024-12-25 20:55:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:55:05' and `end` < '2024-12-25 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-25 20:55:17] Production.INFO: count ==3014 [2024-12-25 20:55:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:55:05 - End Time 2024-12-25 20:55:05 [2024-12-25 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102099', 'tblTempUsageDetail_20' ) start [2024-12-25 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102099', 'tblTempUsageDetail_20' ) end [2024-12-25 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102099', 'tblTempVendorCDR_20' ) start [2024-12-25 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102099', 'tblTempVendorCDR_20' ) end [2024-12-25 20:55:18] Production.INFO: ProcessCDR(1,14102099,1,1,2) [2024-12-25 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102099', 'tblTempUsageDetail_20' ) start [2024-12-25 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102099', 'tblTempUsageDetail_20' ) end [2024-12-25 20:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:55:21] Production.INFO: ==513== Releasing lock... [2024-12-25 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:55:21] Production.INFO: 50.5 MB #Memory Used# [2024-12-25 20:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:56:04 [end_date_ymd] => 2024-12-25 20:56:04 [RateCDR] => 1 ) [2024-12-25 20:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:56:04' and `end` < '2024-12-25 20:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:56:17] Production.INFO: count ==3006 [2024-12-25 20:56:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:56:04 - End Time 2024-12-25 20:56:04 [2024-12-25 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102104', 'tblTempUsageDetail_20' ) start [2024-12-25 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102104', 'tblTempUsageDetail_20' ) end [2024-12-25 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102104', 'tblTempVendorCDR_20' ) start [2024-12-25 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102104', 'tblTempVendorCDR_20' ) end [2024-12-25 20:56:18] Production.INFO: ProcessCDR(1,14102104,1,1,2) [2024-12-25 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102104', 'tblTempUsageDetail_20' ) start [2024-12-25 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102104', 'tblTempUsageDetail_20' ) end [2024-12-25 20:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:56:22] Production.INFO: ==591== Releasing lock... [2024-12-25 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:56:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:57:04 [end_date_ymd] => 2024-12-25 20:57:04 [RateCDR] => 1 ) [2024-12-25 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-25 17:57:04' and `end` < '2024-12-25 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-25 20:57:17] Production.INFO: count ==3009 [2024-12-25 20:57:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:57:04 - End Time 2024-12-25 20:57:04 [2024-12-25 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102109', 'tblTempUsageDetail_20' ) start [2024-12-25 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102109', 'tblTempUsageDetail_20' ) end [2024-12-25 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102109', 'tblTempVendorCDR_20' ) start [2024-12-25 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102109', 'tblTempVendorCDR_20' ) end [2024-12-25 20:57:18] Production.INFO: ProcessCDR(1,14102109,1,1,2) [2024-12-25 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102109', 'tblTempUsageDetail_20' ) start [2024-12-25 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102109', 'tblTempUsageDetail_20' ) end [2024-12-25 20:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:57:21] Production.INFO: ==700== Releasing lock... [2024-12-25 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:57:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:58:05 [end_date_ymd] => 2024-12-25 20:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 17:58:05' and `end` < '2024-12-25 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-25 20:58:18] Production.INFO: count ==3007 [2024-12-25 20:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:58:05 - End Time 2024-12-25 20:58:05 [2024-12-25 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102114', 'tblTempUsageDetail_20' ) start [2024-12-25 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102114', 'tblTempUsageDetail_20' ) end [2024-12-25 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102114', 'tblTempVendorCDR_20' ) start [2024-12-25 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102114', 'tblTempVendorCDR_20' ) end [2024-12-25 20:58:18] Production.INFO: ProcessCDR(1,14102114,1,1,2) [2024-12-25 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102114', 'tblTempUsageDetail_20' ) start [2024-12-25 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102114', 'tblTempUsageDetail_20' ) end [2024-12-25 20:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:58:21] Production.INFO: ==787== Releasing lock... [2024-12-25 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:58:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 17:59:05 [end_date_ymd] => 2024-12-25 20:59:05 [RateCDR] => 1 ) [2024-12-25 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 17:59:05' and `end` < '2024-12-25 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 20:59:17] Production.INFO: count ==3002 [2024-12-25 20:59:18] Production.ERROR: pbx CDR StartTime 2024-12-25 17:59:05 - End Time 2024-12-25 20:59:05 [2024-12-25 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102119', 'tblTempUsageDetail_20' ) start [2024-12-25 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102119', 'tblTempUsageDetail_20' ) end [2024-12-25 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102119', 'tblTempVendorCDR_20' ) start [2024-12-25 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102119', 'tblTempVendorCDR_20' ) end [2024-12-25 20:59:18] Production.INFO: ProcessCDR(1,14102119,1,1,2) [2024-12-25 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102119', 'tblTempUsageDetail_20' ) start [2024-12-25 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102119', 'tblTempUsageDetail_20' ) end [2024-12-25 20:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 20:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 20:59:21] Production.INFO: ==863== Releasing lock... [2024-12-25 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 20:59:21] Production.INFO: 50.5 MB #Memory Used# [2024-12-25 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:00:06 [end_date_ymd] => 2024-12-25 21:00:06 [RateCDR] => 1 ) [2024-12-25 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-25 18:00:06' and `end` < '2024-12-25 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-25 21:00:18] Production.INFO: count ==2997 [2024-12-25 21:00:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:00:06 - End Time 2024-12-25 21:00:06 [2024-12-25 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102125', 'tblTempUsageDetail_20' ) start [2024-12-25 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102125', 'tblTempUsageDetail_20' ) end [2024-12-25 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102125', 'tblTempVendorCDR_20' ) start [2024-12-25 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102125', 'tblTempVendorCDR_20' ) end [2024-12-25 21:00:19] Production.INFO: ProcessCDR(1,14102125,1,1,2) [2024-12-25 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102125', 'tblTempUsageDetail_20' ) start [2024-12-25 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102125', 'tblTempUsageDetail_20' ) end [2024-12-25 21:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:00:22] Production.INFO: ==981== Releasing lock... [2024-12-25 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:00:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:01:05 [end_date_ymd] => 2024-12-25 21:01:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:01:05' and `end` < '2024-12-25 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-25 21:01:17] Production.INFO: count ==2977 [2024-12-25 21:01:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:01:05 - End Time 2024-12-25 21:01:05 [2024-12-25 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102130', 'tblTempUsageDetail_20' ) start [2024-12-25 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102130', 'tblTempUsageDetail_20' ) end [2024-12-25 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102130', 'tblTempVendorCDR_20' ) start [2024-12-25 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102130', 'tblTempVendorCDR_20' ) end [2024-12-25 21:01:18] Production.INFO: ProcessCDR(1,14102130,1,1,2) [2024-12-25 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102130', 'tblTempUsageDetail_20' ) start [2024-12-25 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102130', 'tblTempUsageDetail_20' ) end [2024-12-25 21:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:01:21] Production.INFO: ==1077== Releasing lock... [2024-12-25 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:01:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:02:05 [end_date_ymd] => 2024-12-25 21:02:05 [RateCDR] => 1 ) [2024-12-25 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:02:05' and `end` < '2024-12-25 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:02:18] Production.INFO: count ==2970 [2024-12-25 21:02:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:02:05 - End Time 2024-12-25 21:02:05 [2024-12-25 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102135', 'tblTempUsageDetail_20' ) start [2024-12-25 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102135', 'tblTempUsageDetail_20' ) end [2024-12-25 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102135', 'tblTempVendorCDR_20' ) start [2024-12-25 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102135', 'tblTempVendorCDR_20' ) end [2024-12-25 21:02:19] Production.INFO: ProcessCDR(1,14102135,1,1,2) [2024-12-25 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102135', 'tblTempUsageDetail_20' ) start [2024-12-25 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102135', 'tblTempUsageDetail_20' ) end [2024-12-25 21:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:02:22] Production.INFO: ==1162== Releasing lock... [2024-12-25 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:02:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:03:04 [end_date_ymd] => 2024-12-25 21:03:04 [RateCDR] => 1 ) [2024-12-25 21: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-25 18:03:04' and `end` < '2024-12-25 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-25 21:03:17] Production.INFO: count ==2965 [2024-12-25 21:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:03:04 - End Time 2024-12-25 21:03:04 [2024-12-25 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102140', 'tblTempUsageDetail_20' ) start [2024-12-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102140', 'tblTempUsageDetail_20' ) end [2024-12-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102140', 'tblTempVendorCDR_20' ) start [2024-12-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102140', 'tblTempVendorCDR_20' ) end [2024-12-25 21:03:18] Production.INFO: ProcessCDR(1,14102140,1,1,2) [2024-12-25 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102140', 'tblTempUsageDetail_20' ) start [2024-12-25 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102140', 'tblTempUsageDetail_20' ) end [2024-12-25 21:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:03:21] Production.INFO: ==1247== Releasing lock... [2024-12-25 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:03:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:04:05 [end_date_ymd] => 2024-12-25 21:04:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:04:05' and `end` < '2024-12-25 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-25 21:04:17] Production.INFO: count ==2959 [2024-12-25 21:04:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:04:05 - End Time 2024-12-25 21:04:05 [2024-12-25 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102145', 'tblTempUsageDetail_20' ) start [2024-12-25 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102145', 'tblTempUsageDetail_20' ) end [2024-12-25 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102145', 'tblTempVendorCDR_20' ) start [2024-12-25 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102145', 'tblTempVendorCDR_20' ) end [2024-12-25 21:04:18] Production.INFO: ProcessCDR(1,14102145,1,1,2) [2024-12-25 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102145', 'tblTempUsageDetail_20' ) start [2024-12-25 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102145', 'tblTempUsageDetail_20' ) end [2024-12-25 21:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:04:21] Production.INFO: ==1333== Releasing lock... [2024-12-25 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:04:21] Production.INFO: 50.5 MB #Memory Used# [2024-12-25 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:05:04 [end_date_ymd] => 2024-12-25 21:05:04 [RateCDR] => 1 ) [2024-12-25 21: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-25 18:05:04' and `end` < '2024-12-25 21: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-25 21:05:17] Production.INFO: count ==2955 [2024-12-25 21:05:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:05:04 - End Time 2024-12-25 21:05:04 [2024-12-25 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102150', 'tblTempUsageDetail_20' ) start [2024-12-25 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102150', 'tblTempUsageDetail_20' ) end [2024-12-25 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102150', 'tblTempVendorCDR_20' ) start [2024-12-25 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102150', 'tblTempVendorCDR_20' ) end [2024-12-25 21:05:18] Production.INFO: ProcessCDR(1,14102150,1,1,2) [2024-12-25 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102150', 'tblTempUsageDetail_20' ) start [2024-12-25 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102150', 'tblTempUsageDetail_20' ) end [2024-12-25 21:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:05:21] Production.INFO: ==1407== Releasing lock... [2024-12-25 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:05:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:06:05 [end_date_ymd] => 2024-12-25 21:06:05 [RateCDR] => 1 ) [2024-12-25 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:06:05' and `end` < '2024-12-25 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:06:17] Production.INFO: count ==2952 [2024-12-25 21:06:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:06:05 - End Time 2024-12-25 21:06:05 [2024-12-25 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102155', 'tblTempUsageDetail_20' ) start [2024-12-25 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102155', 'tblTempUsageDetail_20' ) end [2024-12-25 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102155', 'tblTempVendorCDR_20' ) start [2024-12-25 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102155', 'tblTempVendorCDR_20' ) end [2024-12-25 21:06:18] Production.INFO: ProcessCDR(1,14102155,1,1,2) [2024-12-25 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102155', 'tblTempUsageDetail_20' ) start [2024-12-25 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102155', 'tblTempUsageDetail_20' ) end [2024-12-25 21:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:06:21] Production.INFO: ==1483== Releasing lock... [2024-12-25 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:06:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:07:05 [end_date_ymd] => 2024-12-25 21:07:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:07:05' and `end` < '2024-12-25 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-25 21:07:19] Production.INFO: count ==2948 [2024-12-25 21:07:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:07:05 - End Time 2024-12-25 21:07:05 [2024-12-25 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102160', 'tblTempUsageDetail_20' ) start [2024-12-25 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102160', 'tblTempUsageDetail_20' ) end [2024-12-25 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102160', 'tblTempVendorCDR_20' ) start [2024-12-25 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102160', 'tblTempVendorCDR_20' ) end [2024-12-25 21:07:20] Production.INFO: ProcessCDR(1,14102160,1,1,2) [2024-12-25 21:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102160', 'tblTempUsageDetail_20' ) start [2024-12-25 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102160', 'tblTempUsageDetail_20' ) end [2024-12-25 21:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:07:23] Production.INFO: ==1597== Releasing lock... [2024-12-25 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:07:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:08:04 [end_date_ymd] => 2024-12-25 21:08:04 [RateCDR] => 1 ) [2024-12-25 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-25 18:08:04' and `end` < '2024-12-25 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-25 21:08:17] Production.INFO: count ==2949 [2024-12-25 21:08:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:08:04 - End Time 2024-12-25 21:08:04 [2024-12-25 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102165', 'tblTempUsageDetail_20' ) start [2024-12-25 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102165', 'tblTempUsageDetail_20' ) end [2024-12-25 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102165', 'tblTempVendorCDR_20' ) start [2024-12-25 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102165', 'tblTempVendorCDR_20' ) end [2024-12-25 21:08:18] Production.INFO: ProcessCDR(1,14102165,1,1,2) [2024-12-25 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102165', 'tblTempUsageDetail_20' ) start [2024-12-25 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102165', 'tblTempUsageDetail_20' ) end [2024-12-25 21:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:08:21] Production.INFO: ==1672== Releasing lock... [2024-12-25 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:08:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:09:05 [end_date_ymd] => 2024-12-25 21:09:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:09:05' and `end` < '2024-12-25 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-25 21:09:17] Production.INFO: count ==2986 [2024-12-25 21:09:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:09:05 - End Time 2024-12-25 21:09:05 [2024-12-25 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102170', 'tblTempUsageDetail_20' ) start [2024-12-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102170', 'tblTempUsageDetail_20' ) end [2024-12-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102170', 'tblTempVendorCDR_20' ) start [2024-12-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102170', 'tblTempVendorCDR_20' ) end [2024-12-25 21:09:18] Production.INFO: ProcessCDR(1,14102170,1,1,2) [2024-12-25 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102170', 'tblTempUsageDetail_20' ) start [2024-12-25 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102170', 'tblTempUsageDetail_20' ) end [2024-12-25 21:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:09:22] Production.INFO: ==1748== Releasing lock... [2024-12-25 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:09:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:10:05 [end_date_ymd] => 2024-12-25 21:10:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:10:05' and `end` < '2024-12-25 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-25 21:10:17] Production.INFO: count ==2989 [2024-12-25 21:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:10:05 - End Time 2024-12-25 21:10:05 [2024-12-25 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102175', 'tblTempUsageDetail_20' ) start [2024-12-25 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102175', 'tblTempUsageDetail_20' ) end [2024-12-25 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102175', 'tblTempVendorCDR_20' ) start [2024-12-25 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102175', 'tblTempVendorCDR_20' ) end [2024-12-25 21:10:18] Production.INFO: ProcessCDR(1,14102175,1,1,2) [2024-12-25 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102175', 'tblTempUsageDetail_20' ) start [2024-12-25 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102175', 'tblTempUsageDetail_20' ) end [2024-12-25 21:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:10:21] Production.INFO: ==1832== Releasing lock... [2024-12-25 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:10:21] Production.INFO: 50.5 MB #Memory Used# [2024-12-25 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:11:05 [end_date_ymd] => 2024-12-25 21:11:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:11:05' and `end` < '2024-12-25 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-25 21:11:17] Production.INFO: count ==2944 [2024-12-25 21:11:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:11:05 - End Time 2024-12-25 21:11:05 [2024-12-25 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102181', 'tblTempUsageDetail_20' ) start [2024-12-25 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102181', 'tblTempUsageDetail_20' ) end [2024-12-25 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102181', 'tblTempVendorCDR_20' ) start [2024-12-25 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102181', 'tblTempVendorCDR_20' ) end [2024-12-25 21:11:18] Production.INFO: ProcessCDR(1,14102181,1,1,2) [2024-12-25 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102181', 'tblTempUsageDetail_20' ) start [2024-12-25 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102181', 'tblTempUsageDetail_20' ) end [2024-12-25 21:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:11:21] Production.INFO: ==1908== Releasing lock... [2024-12-25 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:11:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:12:05 [end_date_ymd] => 2024-12-25 21:12:05 [RateCDR] => 1 ) [2024-12-25 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:12:05' and `end` < '2024-12-25 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:12:18] Production.INFO: count ==2950 [2024-12-25 21:12:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:12:05 - End Time 2024-12-25 21:12:05 [2024-12-25 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102186', 'tblTempUsageDetail_20' ) start [2024-12-25 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102186', 'tblTempUsageDetail_20' ) end [2024-12-25 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102186', 'tblTempVendorCDR_20' ) start [2024-12-25 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102186', 'tblTempVendorCDR_20' ) end [2024-12-25 21:12:19] Production.INFO: ProcessCDR(1,14102186,1,1,2) [2024-12-25 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102186', 'tblTempUsageDetail_20' ) start [2024-12-25 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102186', 'tblTempUsageDetail_20' ) end [2024-12-25 21:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:12:22] Production.INFO: ==1988== Releasing lock... [2024-12-25 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:12:22] Production.INFO: 50 MB #Memory Used# [2024-12-25 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:13:04 [end_date_ymd] => 2024-12-25 21:13:04 [RateCDR] => 1 ) [2024-12-25 21:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:13:04' and `end` < '2024-12-25 21:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:13:17] Production.INFO: count ==2953 [2024-12-25 21:13:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:13:04 - End Time 2024-12-25 21:13:04 [2024-12-25 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102191', 'tblTempUsageDetail_20' ) start [2024-12-25 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102191', 'tblTempUsageDetail_20' ) end [2024-12-25 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102191', 'tblTempVendorCDR_20' ) start [2024-12-25 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102191', 'tblTempVendorCDR_20' ) end [2024-12-25 21:13:18] Production.INFO: ProcessCDR(1,14102191,1,1,2) [2024-12-25 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102191', 'tblTempUsageDetail_20' ) start [2024-12-25 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102191', 'tblTempUsageDetail_20' ) end [2024-12-25 21:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:13:21] Production.INFO: ==2076== Releasing lock... [2024-12-25 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:13:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:14:05 [end_date_ymd] => 2024-12-25 21:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:14:05' and `end` < '2024-12-25 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-25 21:14:17] Production.INFO: count ==2954 [2024-12-25 21:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:14:05 - End Time 2024-12-25 21:14:05 [2024-12-25 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102196', 'tblTempUsageDetail_20' ) start [2024-12-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102196', 'tblTempUsageDetail_20' ) end [2024-12-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102196', 'tblTempVendorCDR_20' ) start [2024-12-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102196', 'tblTempVendorCDR_20' ) end [2024-12-25 21:14:18] Production.INFO: ProcessCDR(1,14102196,1,1,2) [2024-12-25 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102196', 'tblTempUsageDetail_20' ) start [2024-12-25 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102196', 'tblTempUsageDetail_20' ) end [2024-12-25 21:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:14:21] Production.INFO: ==2150== Releasing lock... [2024-12-25 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:14:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:15:04 [end_date_ymd] => 2024-12-25 21:15:04 [RateCDR] => 1 ) [2024-12-25 21: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-25 18:15:04' and `end` < '2024-12-25 21: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-25 21:15:17] Production.INFO: count ==2958 [2024-12-25 21:15:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:15:04 - End Time 2024-12-25 21:15:04 [2024-12-25 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102201', 'tblTempUsageDetail_20' ) start [2024-12-25 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102201', 'tblTempUsageDetail_20' ) end [2024-12-25 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102201', 'tblTempVendorCDR_20' ) start [2024-12-25 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102201', 'tblTempVendorCDR_20' ) end [2024-12-25 21:15:18] Production.INFO: ProcessCDR(1,14102201,1,1,2) [2024-12-25 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102201', 'tblTempUsageDetail_20' ) start [2024-12-25 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102201', 'tblTempUsageDetail_20' ) end [2024-12-25 21:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:15:21] Production.INFO: ==2269== Releasing lock... [2024-12-25 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:15:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:16:05 [end_date_ymd] => 2024-12-25 21:16:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:16:05' and `end` < '2024-12-25 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-25 21:16:18] Production.INFO: count ==2961 [2024-12-25 21:16:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:16:05 - End Time 2024-12-25 21:16:05 [2024-12-25 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102206', 'tblTempUsageDetail_20' ) start [2024-12-25 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102206', 'tblTempUsageDetail_20' ) end [2024-12-25 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102206', 'tblTempVendorCDR_20' ) start [2024-12-25 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102206', 'tblTempVendorCDR_20' ) end [2024-12-25 21:16:19] Production.INFO: ProcessCDR(1,14102206,1,1,2) [2024-12-25 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102206', 'tblTempUsageDetail_20' ) start [2024-12-25 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102206', 'tblTempUsageDetail_20' ) end [2024-12-25 21:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:16:21] Production.INFO: ==2351== Releasing lock... [2024-12-25 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:16:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:17:05 [end_date_ymd] => 2024-12-25 21:17:05 [RateCDR] => 1 ) [2024-12-25 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:17:05' and `end` < '2024-12-25 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:17:19] Production.INFO: count ==2964 [2024-12-25 21:17:20] Production.ERROR: pbx CDR StartTime 2024-12-25 18:17:05 - End Time 2024-12-25 21:17:05 [2024-12-25 21:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102211', 'tblTempUsageDetail_20' ) start [2024-12-25 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102211', 'tblTempUsageDetail_20' ) end [2024-12-25 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102211', 'tblTempVendorCDR_20' ) start [2024-12-25 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102211', 'tblTempVendorCDR_20' ) end [2024-12-25 21:17:21] Production.INFO: ProcessCDR(1,14102211,1,1,2) [2024-12-25 21:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102211', 'tblTempUsageDetail_20' ) start [2024-12-25 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102211', 'tblTempUsageDetail_20' ) end [2024-12-25 21:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:17:24] Production.INFO: ==2430== Releasing lock... [2024-12-25 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:17:24] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:18:05 [end_date_ymd] => 2024-12-25 21:18:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:18:05' and `end` < '2024-12-25 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-25 21:18:17] Production.INFO: count ==2957 [2024-12-25 21:18:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:18:05 - End Time 2024-12-25 21:18:05 [2024-12-25 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102216', 'tblTempUsageDetail_20' ) start [2024-12-25 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102216', 'tblTempUsageDetail_20' ) end [2024-12-25 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102216', 'tblTempVendorCDR_20' ) start [2024-12-25 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102216', 'tblTempVendorCDR_20' ) end [2024-12-25 21:18:18] Production.INFO: ProcessCDR(1,14102216,1,1,2) [2024-12-25 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102216', 'tblTempUsageDetail_20' ) start [2024-12-25 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102216', 'tblTempUsageDetail_20' ) end [2024-12-25 21:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:18:21] Production.INFO: ==2506== Releasing lock... [2024-12-25 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:18:21] Production.INFO: 50 MB #Memory Used# [2024-12-25 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:19:05 [end_date_ymd] => 2024-12-25 21:19:05 [RateCDR] => 1 ) [2024-12-25 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:19:05' and `end` < '2024-12-25 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:19:18] Production.INFO: count ==2950 [2024-12-25 21:19:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:19:05 - End Time 2024-12-25 21:19:05 [2024-12-25 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102221', 'tblTempUsageDetail_20' ) start [2024-12-25 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102221', 'tblTempUsageDetail_20' ) end [2024-12-25 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102221', 'tblTempVendorCDR_20' ) start [2024-12-25 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102221', 'tblTempVendorCDR_20' ) end [2024-12-25 21:19:19] Production.INFO: ProcessCDR(1,14102221,1,1,2) [2024-12-25 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102221', 'tblTempUsageDetail_20' ) start [2024-12-25 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102221', 'tblTempUsageDetail_20' ) end [2024-12-25 21:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:19:22] Production.INFO: ==2581== Releasing lock... [2024-12-25 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:19:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:20:05 [end_date_ymd] => 2024-12-25 21:20:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:20:05' and `end` < '2024-12-25 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-25 21:20:18] Production.INFO: count ==2954 [2024-12-25 21:20:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:20:05 - End Time 2024-12-25 21:20:05 [2024-12-25 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102226', 'tblTempUsageDetail_20' ) start [2024-12-25 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102226', 'tblTempUsageDetail_20' ) end [2024-12-25 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102226', 'tblTempVendorCDR_20' ) start [2024-12-25 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102226', 'tblTempVendorCDR_20' ) end [2024-12-25 21:20:18] Production.INFO: ProcessCDR(1,14102226,1,1,2) [2024-12-25 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102226', 'tblTempUsageDetail_20' ) start [2024-12-25 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102226', 'tblTempUsageDetail_20' ) end [2024-12-25 21:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:20:22] Production.INFO: ==2660== Releasing lock... [2024-12-25 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:20:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:21:05 [end_date_ymd] => 2024-12-25 21:21:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:21:05' and `end` < '2024-12-25 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-25 21:21:17] Production.INFO: count ==2949 [2024-12-25 21:21:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:21:05 - End Time 2024-12-25 21:21:05 [2024-12-25 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102232', 'tblTempUsageDetail_20' ) start [2024-12-25 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102232', 'tblTempUsageDetail_20' ) end [2024-12-25 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102232', 'tblTempVendorCDR_20' ) start [2024-12-25 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102232', 'tblTempVendorCDR_20' ) end [2024-12-25 21:21:18] Production.INFO: ProcessCDR(1,14102232,1,1,2) [2024-12-25 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102232', 'tblTempUsageDetail_20' ) start [2024-12-25 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102232', 'tblTempUsageDetail_20' ) end [2024-12-25 21:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:21:21] Production.INFO: ==2737== Releasing lock... [2024-12-25 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:21:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:22:05 [end_date_ymd] => 2024-12-25 21:22:05 [RateCDR] => 1 ) [2024-12-25 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:22:05' and `end` < '2024-12-25 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:22:18] Production.INFO: count ==2955 [2024-12-25 21:22:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:22:05 - End Time 2024-12-25 21:22:05 [2024-12-25 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102237', 'tblTempUsageDetail_20' ) start [2024-12-25 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102237', 'tblTempUsageDetail_20' ) end [2024-12-25 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102237', 'tblTempVendorCDR_20' ) start [2024-12-25 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102237', 'tblTempVendorCDR_20' ) end [2024-12-25 21:22:19] Production.INFO: ProcessCDR(1,14102237,1,1,2) [2024-12-25 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102237', 'tblTempUsageDetail_20' ) start [2024-12-25 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102237', 'tblTempUsageDetail_20' ) end [2024-12-25 21:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:22:22] Production.INFO: ==2816== Releasing lock... [2024-12-25 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:22:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-25 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:23:04 [end_date_ymd] => 2024-12-25 21:23:04 [RateCDR] => 1 ) [2024-12-25 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:23:04' and `end` < '2024-12-25 21:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:23:17] Production.INFO: count ==2944 [2024-12-25 21:23:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:23:04 - End Time 2024-12-25 21:23:04 [2024-12-25 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102242', 'tblTempUsageDetail_20' ) start [2024-12-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102242', 'tblTempUsageDetail_20' ) end [2024-12-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102242', 'tblTempVendorCDR_20' ) start [2024-12-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102242', 'tblTempVendorCDR_20' ) end [2024-12-25 21:23:18] Production.INFO: ProcessCDR(1,14102242,1,1,2) [2024-12-25 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102242', 'tblTempUsageDetail_20' ) start [2024-12-25 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102242', 'tblTempUsageDetail_20' ) end [2024-12-25 21:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:23:21] Production.INFO: ==2891== Releasing lock... [2024-12-25 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:23:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:24:05 [end_date_ymd] => 2024-12-25 21:24:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:24:05' and `end` < '2024-12-25 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-25 21:24:18] Production.INFO: count ==2942 [2024-12-25 21:24:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:24:05 - End Time 2024-12-25 21:24:05 [2024-12-25 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102247', 'tblTempUsageDetail_20' ) start [2024-12-25 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102247', 'tblTempUsageDetail_20' ) end [2024-12-25 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102247', 'tblTempVendorCDR_20' ) start [2024-12-25 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102247', 'tblTempVendorCDR_20' ) end [2024-12-25 21:24:19] Production.INFO: ProcessCDR(1,14102247,1,1,2) [2024-12-25 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102247', 'tblTempUsageDetail_20' ) start [2024-12-25 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102247', 'tblTempUsageDetail_20' ) end [2024-12-25 21:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:24:22] Production.INFO: ==2969== Releasing lock... [2024-12-25 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:24:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:25:04 [end_date_ymd] => 2024-12-25 21:25:04 [RateCDR] => 1 ) [2024-12-25 21:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:25:04' and `end` < '2024-12-25 21:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:25:17] Production.INFO: count ==2938 [2024-12-25 21:25:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:25:04 - End Time 2024-12-25 21:25:04 [2024-12-25 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102252', 'tblTempUsageDetail_20' ) start [2024-12-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102252', 'tblTempUsageDetail_20' ) end [2024-12-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102252', 'tblTempVendorCDR_20' ) start [2024-12-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102252', 'tblTempVendorCDR_20' ) end [2024-12-25 21:25:18] Production.INFO: ProcessCDR(1,14102252,1,1,2) [2024-12-25 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102252', 'tblTempUsageDetail_20' ) start [2024-12-25 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102252', 'tblTempUsageDetail_20' ) end [2024-12-25 21:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:25:21] Production.INFO: ==3042== Releasing lock... [2024-12-25 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:25:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:26:04 [end_date_ymd] => 2024-12-25 21:26:04 [RateCDR] => 1 ) [2024-12-25 21: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-25 18:26:04' and `end` < '2024-12-25 21: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-25 21:26:17] Production.INFO: count ==2937 [2024-12-25 21:26:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:26:04 - End Time 2024-12-25 21:26:04 [2024-12-25 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102257', 'tblTempUsageDetail_20' ) start [2024-12-25 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102257', 'tblTempUsageDetail_20' ) end [2024-12-25 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102257', 'tblTempVendorCDR_20' ) start [2024-12-25 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102257', 'tblTempVendorCDR_20' ) end [2024-12-25 21:26:18] Production.INFO: ProcessCDR(1,14102257,1,1,2) [2024-12-25 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102257', 'tblTempUsageDetail_20' ) start [2024-12-25 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102257', 'tblTempUsageDetail_20' ) end [2024-12-25 21:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:26:21] Production.INFO: ==3120== Releasing lock... [2024-12-25 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:26:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:27:05 [end_date_ymd] => 2024-12-25 21:27:05 [RateCDR] => 1 ) [2024-12-25 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:27:05' and `end` < '2024-12-25 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:27:17] Production.INFO: count ==2936 [2024-12-25 21:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:27:05 - End Time 2024-12-25 21:27:05 [2024-12-25 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102262', 'tblTempUsageDetail_20' ) start [2024-12-25 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102262', 'tblTempUsageDetail_20' ) end [2024-12-25 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102262', 'tblTempVendorCDR_20' ) start [2024-12-25 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102262', 'tblTempVendorCDR_20' ) end [2024-12-25 21:27:18] Production.INFO: ProcessCDR(1,14102262,1,1,2) [2024-12-25 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102262', 'tblTempUsageDetail_20' ) start [2024-12-25 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102262', 'tblTempUsageDetail_20' ) end [2024-12-25 21:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:27:21] Production.INFO: ==3211== Releasing lock... [2024-12-25 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:27:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 21:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:28:04 [end_date_ymd] => 2024-12-25 21:28:04 [RateCDR] => 1 ) [2024-12-25 21: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-25 18:28:04' and `end` < '2024-12-25 21: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-25 21:28:18] Production.INFO: count ==2933 [2024-12-25 21:28:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:28:04 - End Time 2024-12-25 21:28:04 [2024-12-25 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102267', 'tblTempUsageDetail_20' ) start [2024-12-25 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102267', 'tblTempUsageDetail_20' ) end [2024-12-25 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102267', 'tblTempVendorCDR_20' ) start [2024-12-25 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102267', 'tblTempVendorCDR_20' ) end [2024-12-25 21:28:19] Production.INFO: ProcessCDR(1,14102267,1,1,2) [2024-12-25 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102267', 'tblTempUsageDetail_20' ) start [2024-12-25 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102267', 'tblTempUsageDetail_20' ) end [2024-12-25 21:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:28:22] Production.INFO: ==3291== Releasing lock... [2024-12-25 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:28:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:29:05 [end_date_ymd] => 2024-12-25 21:29:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:29:05' and `end` < '2024-12-25 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-25 21:29:18] Production.INFO: count ==2938 [2024-12-25 21:29:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:29:05 - End Time 2024-12-25 21:29:05 [2024-12-25 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102272', 'tblTempUsageDetail_20' ) start [2024-12-25 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102272', 'tblTempUsageDetail_20' ) end [2024-12-25 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102272', 'tblTempVendorCDR_20' ) start [2024-12-25 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102272', 'tblTempVendorCDR_20' ) end [2024-12-25 21:29:19] Production.INFO: ProcessCDR(1,14102272,1,1,2) [2024-12-25 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102272', 'tblTempUsageDetail_20' ) start [2024-12-25 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102272', 'tblTempUsageDetail_20' ) end [2024-12-25 21:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:29:22] Production.INFO: ==3369== Releasing lock... [2024-12-25 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:29:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:30:05 [end_date_ymd] => 2024-12-25 21:30:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:30:05' and `end` < '2024-12-25 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-25 21:30:17] Production.INFO: count ==2935 [2024-12-25 21:30:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:30:05 - End Time 2024-12-25 21:30:05 [2024-12-25 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102278', 'tblTempUsageDetail_20' ) start [2024-12-25 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102278', 'tblTempUsageDetail_20' ) end [2024-12-25 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102278', 'tblTempVendorCDR_20' ) start [2024-12-25 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102278', 'tblTempVendorCDR_20' ) end [2024-12-25 21:30:18] Production.INFO: ProcessCDR(1,14102278,1,1,2) [2024-12-25 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102278', 'tblTempUsageDetail_20' ) start [2024-12-25 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102278', 'tblTempUsageDetail_20' ) end [2024-12-25 21:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:30:21] Production.INFO: ==3449== Releasing lock... [2024-12-25 21:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:30:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-25 21:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:31:04 [end_date_ymd] => 2024-12-25 21:31:04 [RateCDR] => 1 ) [2024-12-25 21: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-25 18:31:04' and `end` < '2024-12-25 21: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-25 21:31:17] Production.INFO: count ==2859 [2024-12-25 21:31:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:31:04 - End Time 2024-12-25 21:31:04 [2024-12-25 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102283', 'tblTempUsageDetail_20' ) start [2024-12-25 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102283', 'tblTempUsageDetail_20' ) end [2024-12-25 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102283', 'tblTempVendorCDR_20' ) start [2024-12-25 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102283', 'tblTempVendorCDR_20' ) end [2024-12-25 21:31:18] Production.INFO: ProcessCDR(1,14102283,1,1,2) [2024-12-25 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102283', 'tblTempUsageDetail_20' ) start [2024-12-25 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102283', 'tblTempUsageDetail_20' ) end [2024-12-25 21:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:31:21] Production.INFO: ==3566== Releasing lock... [2024-12-25 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:31:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-25 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:32:05 [end_date_ymd] => 2024-12-25 21:32:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:32:05' and `end` < '2024-12-25 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-25 21:32:18] Production.INFO: count ==2772 [2024-12-25 21:32:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:32:05 - End Time 2024-12-25 21:32:05 [2024-12-25 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102288', 'tblTempUsageDetail_20' ) start [2024-12-25 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102288', 'tblTempUsageDetail_20' ) end [2024-12-25 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102288', 'tblTempVendorCDR_20' ) start [2024-12-25 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102288', 'tblTempVendorCDR_20' ) end [2024-12-25 21:32:19] Production.INFO: ProcessCDR(1,14102288,1,1,2) [2024-12-25 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102288', 'tblTempUsageDetail_20' ) start [2024-12-25 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102288', 'tblTempUsageDetail_20' ) end [2024-12-25 21:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:32:22] Production.INFO: ==3641== Releasing lock... [2024-12-25 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:32:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-25 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:33:05 [end_date_ymd] => 2024-12-25 21:33:05 [RateCDR] => 1 ) [2024-12-25 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:33:05' and `end` < '2024-12-25 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:33:17] Production.INFO: count ==2706 [2024-12-25 21:33:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:33:05 - End Time 2024-12-25 21:33:05 [2024-12-25 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102293', 'tblTempUsageDetail_20' ) start [2024-12-25 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102293', 'tblTempUsageDetail_20' ) end [2024-12-25 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102293', 'tblTempVendorCDR_20' ) start [2024-12-25 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102293', 'tblTempVendorCDR_20' ) end [2024-12-25 21:33:18] Production.INFO: ProcessCDR(1,14102293,1,1,2) [2024-12-25 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102293', 'tblTempUsageDetail_20' ) start [2024-12-25 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102293', 'tblTempUsageDetail_20' ) end [2024-12-25 21:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:33:21] Production.INFO: ==3725== Releasing lock... [2024-12-25 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:33:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-25 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:34:05 [end_date_ymd] => 2024-12-25 21:34:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:34:05' and `end` < '2024-12-25 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-25 21:34:17] Production.INFO: count ==2700 [2024-12-25 21:34:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:34:05 - End Time 2024-12-25 21:34:05 [2024-12-25 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102298', 'tblTempUsageDetail_20' ) start [2024-12-25 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102298', 'tblTempUsageDetail_20' ) end [2024-12-25 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102298', 'tblTempVendorCDR_20' ) start [2024-12-25 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102298', 'tblTempVendorCDR_20' ) end [2024-12-25 21:34:18] Production.INFO: ProcessCDR(1,14102298,1,1,2) [2024-12-25 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102298', 'tblTempUsageDetail_20' ) start [2024-12-25 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102298', 'tblTempUsageDetail_20' ) end [2024-12-25 21:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:34:21] Production.INFO: ==3802== Releasing lock... [2024-12-25 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:34:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-25 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:35:04 [end_date_ymd] => 2024-12-25 21:35:04 [RateCDR] => 1 ) [2024-12-25 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-25 18:35:04' and `end` < '2024-12-25 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-25 21:35:17] Production.INFO: count ==2701 [2024-12-25 21:35:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:35:04 - End Time 2024-12-25 21:35:04 [2024-12-25 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102303', 'tblTempUsageDetail_20' ) start [2024-12-25 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102303', 'tblTempUsageDetail_20' ) end [2024-12-25 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102303', 'tblTempVendorCDR_20' ) start [2024-12-25 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102303', 'tblTempVendorCDR_20' ) end [2024-12-25 21:35:18] Production.INFO: ProcessCDR(1,14102303,1,1,2) [2024-12-25 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102303', 'tblTempUsageDetail_20' ) start [2024-12-25 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102303', 'tblTempUsageDetail_20' ) end [2024-12-25 21:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:35:21] Production.INFO: ==3878== Releasing lock... [2024-12-25 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:35:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-25 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:36:05 [end_date_ymd] => 2024-12-25 21:36:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:36:05' and `end` < '2024-12-25 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-25 21:36:17] Production.INFO: count ==2693 [2024-12-25 21:36:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:36:05 - End Time 2024-12-25 21:36:05 [2024-12-25 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102308', 'tblTempUsageDetail_20' ) start [2024-12-25 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102308', 'tblTempUsageDetail_20' ) end [2024-12-25 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102308', 'tblTempVendorCDR_20' ) start [2024-12-25 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102308', 'tblTempVendorCDR_20' ) end [2024-12-25 21:36:18] Production.INFO: ProcessCDR(1,14102308,1,1,2) [2024-12-25 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102308', 'tblTempUsageDetail_20' ) start [2024-12-25 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102308', 'tblTempUsageDetail_20' ) end [2024-12-25 21:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:36:21] Production.INFO: ==3954== Releasing lock... [2024-12-25 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:36:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-25 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:37:04 [end_date_ymd] => 2024-12-25 21:37:04 [RateCDR] => 1 ) [2024-12-25 21:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:37:04' and `end` < '2024-12-25 21:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:37:17] Production.INFO: count ==2693 [2024-12-25 21:37:17] Production.ERROR: pbx CDR StartTime 2024-12-25 18:37:04 - End Time 2024-12-25 21:37:04 [2024-12-25 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102313', 'tblTempUsageDetail_20' ) start [2024-12-25 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102313', 'tblTempUsageDetail_20' ) end [2024-12-25 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102313', 'tblTempVendorCDR_20' ) start [2024-12-25 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102313', 'tblTempVendorCDR_20' ) end [2024-12-25 21:37:17] Production.INFO: ProcessCDR(1,14102313,1,1,2) [2024-12-25 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102313', 'tblTempUsageDetail_20' ) start [2024-12-25 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102313', 'tblTempUsageDetail_20' ) end [2024-12-25 21:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:37:21] Production.INFO: ==4031== Releasing lock... [2024-12-25 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:37:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-25 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:38:05 [end_date_ymd] => 2024-12-25 21:38:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:38:05' and `end` < '2024-12-25 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-25 21:38:17] Production.INFO: count ==2681 [2024-12-25 21:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:38:05 - End Time 2024-12-25 21:38:05 [2024-12-25 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102318', 'tblTempUsageDetail_20' ) start [2024-12-25 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102318', 'tblTempUsageDetail_20' ) end [2024-12-25 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102318', 'tblTempVendorCDR_20' ) start [2024-12-25 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102318', 'tblTempVendorCDR_20' ) end [2024-12-25 21:38:18] Production.INFO: ProcessCDR(1,14102318,1,1,2) [2024-12-25 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102318', 'tblTempUsageDetail_20' ) start [2024-12-25 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102318', 'tblTempUsageDetail_20' ) end [2024-12-25 21:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:38:21] Production.INFO: ==4106== Releasing lock... [2024-12-25 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:38:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-25 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:39:05 [end_date_ymd] => 2024-12-25 21:39:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:39:05' and `end` < '2024-12-25 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-25 21:39:17] Production.INFO: count ==2669 [2024-12-25 21:39:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:39:05 - End Time 2024-12-25 21:39:05 [2024-12-25 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102323', 'tblTempUsageDetail_20' ) start [2024-12-25 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102323', 'tblTempUsageDetail_20' ) end [2024-12-25 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102323', 'tblTempVendorCDR_20' ) start [2024-12-25 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102323', 'tblTempVendorCDR_20' ) end [2024-12-25 21:39:18] Production.INFO: ProcessCDR(1,14102323,1,1,2) [2024-12-25 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102323', 'tblTempUsageDetail_20' ) start [2024-12-25 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102323', 'tblTempUsageDetail_20' ) end [2024-12-25 21:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:39:22] Production.INFO: ==4182== Releasing lock... [2024-12-25 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:39:22] Production.INFO: 48 MB #Memory Used# [2024-12-25 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:40:05 [end_date_ymd] => 2024-12-25 21:40:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:40:05' and `end` < '2024-12-25 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-25 21:40:18] Production.INFO: count ==2662 [2024-12-25 21:40:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:40:05 - End Time 2024-12-25 21:40:05 [2024-12-25 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102329', 'tblTempUsageDetail_20' ) start [2024-12-25 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102329', 'tblTempUsageDetail_20' ) end [2024-12-25 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102329', 'tblTempVendorCDR_20' ) start [2024-12-25 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102329', 'tblTempVendorCDR_20' ) end [2024-12-25 21:40:19] Production.INFO: ProcessCDR(1,14102329,1,1,2) [2024-12-25 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102329', 'tblTempUsageDetail_20' ) start [2024-12-25 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102329', 'tblTempUsageDetail_20' ) end [2024-12-25 21:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:40:22] Production.INFO: ==4258== Releasing lock... [2024-12-25 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:40:22] Production.INFO: 48 MB #Memory Used# [2024-12-25 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:41:05 [end_date_ymd] => 2024-12-25 21:41:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:41:05' and `end` < '2024-12-25 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-25 21:41:17] Production.INFO: count ==2646 [2024-12-25 21:41:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:41:05 - End Time 2024-12-25 21:41:05 [2024-12-25 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102334', 'tblTempUsageDetail_20' ) start [2024-12-25 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102334', 'tblTempUsageDetail_20' ) end [2024-12-25 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102334', 'tblTempVendorCDR_20' ) start [2024-12-25 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102334', 'tblTempVendorCDR_20' ) end [2024-12-25 21:41:18] Production.INFO: ProcessCDR(1,14102334,1,1,2) [2024-12-25 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102334', 'tblTempUsageDetail_20' ) start [2024-12-25 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102334', 'tblTempUsageDetail_20' ) end [2024-12-25 21:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:41:22] Production.INFO: ==4352== Releasing lock... [2024-12-25 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:41:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:42:05 [end_date_ymd] => 2024-12-25 21:42:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:42:05' and `end` < '2024-12-25 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-25 21:42:17] Production.INFO: count ==2643 [2024-12-25 21:42:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:42:05 - End Time 2024-12-25 21:42:05 [2024-12-25 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102339', 'tblTempUsageDetail_20' ) start [2024-12-25 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102339', 'tblTempUsageDetail_20' ) end [2024-12-25 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102339', 'tblTempVendorCDR_20' ) start [2024-12-25 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102339', 'tblTempVendorCDR_20' ) end [2024-12-25 21:42:18] Production.INFO: ProcessCDR(1,14102339,1,1,2) [2024-12-25 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102339', 'tblTempUsageDetail_20' ) start [2024-12-25 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102339', 'tblTempUsageDetail_20' ) end [2024-12-25 21:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:42:23] Production.INFO: ==4433== Releasing lock... [2024-12-25 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:42:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:43:04 [end_date_ymd] => 2024-12-25 21:43:04 [RateCDR] => 1 ) [2024-12-25 21: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-25 18:43:04' and `end` < '2024-12-25 21: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-25 21:43:17] Production.INFO: count ==2642 [2024-12-25 21:43:17] Production.ERROR: pbx CDR StartTime 2024-12-25 18:43:04 - End Time 2024-12-25 21:43:04 [2024-12-25 21:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102344', 'tblTempUsageDetail_20' ) start [2024-12-25 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102344', 'tblTempUsageDetail_20' ) end [2024-12-25 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102344', 'tblTempVendorCDR_20' ) start [2024-12-25 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102344', 'tblTempVendorCDR_20' ) end [2024-12-25 21:43:18] Production.INFO: ProcessCDR(1,14102344,1,1,2) [2024-12-25 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102344', 'tblTempUsageDetail_20' ) start [2024-12-25 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102344', 'tblTempUsageDetail_20' ) end [2024-12-25 21:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:43:21] Production.INFO: ==4510== Releasing lock... [2024-12-25 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:43:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:44:05 [end_date_ymd] => 2024-12-25 21:44:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:44:05' and `end` < '2024-12-25 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-25 21:44:18] Production.INFO: count ==2633 [2024-12-25 21:44:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:44:05 - End Time 2024-12-25 21:44:05 [2024-12-25 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102349', 'tblTempUsageDetail_20' ) start [2024-12-25 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102349', 'tblTempUsageDetail_20' ) end [2024-12-25 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102349', 'tblTempVendorCDR_20' ) start [2024-12-25 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102349', 'tblTempVendorCDR_20' ) end [2024-12-25 21:44:19] Production.INFO: ProcessCDR(1,14102349,1,1,2) [2024-12-25 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102349', 'tblTempUsageDetail_20' ) start [2024-12-25 21:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102349', 'tblTempUsageDetail_20' ) end [2024-12-25 21:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:44:24] Production.INFO: ==4592== Releasing lock... [2024-12-25 21:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:44:24] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:45:05 [end_date_ymd] => 2024-12-25 21:45:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:45:05' and `end` < '2024-12-25 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-25 21:45:17] Production.INFO: count ==2640 [2024-12-25 21:45:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:45:05 - End Time 2024-12-25 21:45:05 [2024-12-25 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102354', 'tblTempUsageDetail_20' ) start [2024-12-25 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102354', 'tblTempUsageDetail_20' ) end [2024-12-25 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102354', 'tblTempVendorCDR_20' ) start [2024-12-25 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102354', 'tblTempVendorCDR_20' ) end [2024-12-25 21:45:18] Production.INFO: ProcessCDR(1,14102354,1,1,2) [2024-12-25 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102354', 'tblTempUsageDetail_20' ) start [2024-12-25 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102354', 'tblTempUsageDetail_20' ) end [2024-12-25 21:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:45:21] Production.INFO: ==4670== Releasing lock... [2024-12-25 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:45:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:46:05 [end_date_ymd] => 2024-12-25 21:46:05 [RateCDR] => 1 ) [2024-12-25 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:46:05' and `end` < '2024-12-25 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:46:18] Production.INFO: count ==2641 [2024-12-25 21:46:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:46:05 - End Time 2024-12-25 21:46:05 [2024-12-25 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102359', 'tblTempUsageDetail_20' ) start [2024-12-25 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102359', 'tblTempUsageDetail_20' ) end [2024-12-25 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102359', 'tblTempVendorCDR_20' ) start [2024-12-25 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102359', 'tblTempVendorCDR_20' ) end [2024-12-25 21:46:19] Production.INFO: ProcessCDR(1,14102359,1,1,2) [2024-12-25 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102359', 'tblTempUsageDetail_20' ) start [2024-12-25 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102359', 'tblTempUsageDetail_20' ) end [2024-12-25 21:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:46:22] Production.INFO: ==4746== Releasing lock... [2024-12-25 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:46:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:47:05 [end_date_ymd] => 2024-12-25 21:47:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:47:05' and `end` < '2024-12-25 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-25 21:47:19] Production.INFO: count ==2644 [2024-12-25 21:47:20] Production.ERROR: pbx CDR StartTime 2024-12-25 18:47:05 - End Time 2024-12-25 21:47:05 [2024-12-25 21:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102364', 'tblTempUsageDetail_20' ) start [2024-12-25 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102364', 'tblTempUsageDetail_20' ) end [2024-12-25 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102364', 'tblTempVendorCDR_20' ) start [2024-12-25 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102364', 'tblTempVendorCDR_20' ) end [2024-12-25 21:47:20] Production.INFO: ProcessCDR(1,14102364,1,1,2) [2024-12-25 21:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102364', 'tblTempUsageDetail_20' ) start [2024-12-25 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102364', 'tblTempUsageDetail_20' ) end [2024-12-25 21:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:47:23] Production.INFO: ==4867== Releasing lock... [2024-12-25 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:47:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:48:05 [end_date_ymd] => 2024-12-25 21:48:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:48:05' and `end` < '2024-12-25 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-25 21:48:17] Production.INFO: count ==2644 [2024-12-25 21:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:48:05 - End Time 2024-12-25 21:48:05 [2024-12-25 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102369', 'tblTempUsageDetail_20' ) start [2024-12-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102369', 'tblTempUsageDetail_20' ) end [2024-12-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102369', 'tblTempVendorCDR_20' ) start [2024-12-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102369', 'tblTempVendorCDR_20' ) end [2024-12-25 21:48:18] Production.INFO: ProcessCDR(1,14102369,1,1,2) [2024-12-25 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102369', 'tblTempUsageDetail_20' ) start [2024-12-25 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102369', 'tblTempUsageDetail_20' ) end [2024-12-25 21:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:48:21] Production.INFO: ==4955== Releasing lock... [2024-12-25 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:48:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:49:05 [end_date_ymd] => 2024-12-25 21:49:05 [RateCDR] => 1 ) [2024-12-25 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:49:05' and `end` < '2024-12-25 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:49:18] Production.INFO: count ==2641 [2024-12-25 21:49:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:49:05 - End Time 2024-12-25 21:49:05 [2024-12-25 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102374', 'tblTempUsageDetail_20' ) start [2024-12-25 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102374', 'tblTempUsageDetail_20' ) end [2024-12-25 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102374', 'tblTempVendorCDR_20' ) start [2024-12-25 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102374', 'tblTempVendorCDR_20' ) end [2024-12-25 21:49:19] Production.INFO: ProcessCDR(1,14102374,1,1,2) [2024-12-25 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102374', 'tblTempUsageDetail_20' ) start [2024-12-25 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102374', 'tblTempUsageDetail_20' ) end [2024-12-25 21:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:49:22] Production.INFO: ==5047== Releasing lock... [2024-12-25 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:49:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:50:05 [end_date_ymd] => 2024-12-25 21:50:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:50:05' and `end` < '2024-12-25 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-25 21:50:18] Production.INFO: count ==2644 [2024-12-25 21:50:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:50:05 - End Time 2024-12-25 21:50:05 [2024-12-25 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102380', 'tblTempUsageDetail_20' ) start [2024-12-25 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102380', 'tblTempUsageDetail_20' ) end [2024-12-25 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102380', 'tblTempVendorCDR_20' ) start [2024-12-25 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102380', 'tblTempVendorCDR_20' ) end [2024-12-25 21:50:19] Production.INFO: ProcessCDR(1,14102380,1,1,2) [2024-12-25 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102380', 'tblTempUsageDetail_20' ) start [2024-12-25 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102380', 'tblTempUsageDetail_20' ) end [2024-12-25 21:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:50:22] Production.INFO: ==5177== Releasing lock... [2024-12-25 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:50:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:51:05 [end_date_ymd] => 2024-12-25 21:51:05 [RateCDR] => 1 ) [2024-12-25 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:51:05' and `end` < '2024-12-25 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:51:18] Production.INFO: count ==2630 [2024-12-25 21:51:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:51:05 - End Time 2024-12-25 21:51:05 [2024-12-25 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102385', 'tblTempUsageDetail_20' ) start [2024-12-25 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102385', 'tblTempUsageDetail_20' ) end [2024-12-25 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102385', 'tblTempVendorCDR_20' ) start [2024-12-25 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102385', 'tblTempVendorCDR_20' ) end [2024-12-25 21:51:18] Production.INFO: ProcessCDR(1,14102385,1,1,2) [2024-12-25 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102385', 'tblTempUsageDetail_20' ) start [2024-12-25 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102385', 'tblTempUsageDetail_20' ) end [2024-12-25 21:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:51:22] Production.INFO: ==5302== Releasing lock... [2024-12-25 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:51:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:52:05 [end_date_ymd] => 2024-12-25 21:52:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:52:05' and `end` < '2024-12-25 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-25 21:52:17] Production.INFO: count ==2637 [2024-12-25 21:52:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:52:05 - End Time 2024-12-25 21:52:05 [2024-12-25 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102390', 'tblTempUsageDetail_20' ) start [2024-12-25 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102390', 'tblTempUsageDetail_20' ) end [2024-12-25 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102390', 'tblTempVendorCDR_20' ) start [2024-12-25 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102390', 'tblTempVendorCDR_20' ) end [2024-12-25 21:52:18] Production.INFO: ProcessCDR(1,14102390,1,1,2) [2024-12-25 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102390', 'tblTempUsageDetail_20' ) start [2024-12-25 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102390', 'tblTempUsageDetail_20' ) end [2024-12-25 21:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:52:22] Production.INFO: ==5431== Releasing lock... [2024-12-25 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:52:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:53:05 [end_date_ymd] => 2024-12-25 21:53:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:53:05' and `end` < '2024-12-25 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-25 21:53:18] Production.INFO: count ==2637 [2024-12-25 21:53:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:53:05 - End Time 2024-12-25 21:53:05 [2024-12-25 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102395', 'tblTempUsageDetail_20' ) start [2024-12-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102395', 'tblTempUsageDetail_20' ) end [2024-12-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102395', 'tblTempVendorCDR_20' ) start [2024-12-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102395', 'tblTempVendorCDR_20' ) end [2024-12-25 21:53:19] Production.INFO: ProcessCDR(1,14102395,1,1,2) [2024-12-25 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102395', 'tblTempUsageDetail_20' ) start [2024-12-25 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102395', 'tblTempUsageDetail_20' ) end [2024-12-25 21:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:53:22] Production.INFO: ==5554== Releasing lock... [2024-12-25 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:53:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:54:04 [end_date_ymd] => 2024-12-25 21:54:04 [RateCDR] => 1 ) [2024-12-25 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-25 18:54:04' and `end` < '2024-12-25 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-25 21:54:17] Production.INFO: count ==2634 [2024-12-25 21:54:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:54:04 - End Time 2024-12-25 21:54:04 [2024-12-25 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102400', 'tblTempUsageDetail_20' ) start [2024-12-25 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102400', 'tblTempUsageDetail_20' ) end [2024-12-25 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102400', 'tblTempVendorCDR_20' ) start [2024-12-25 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102400', 'tblTempVendorCDR_20' ) end [2024-12-25 21:54:18] Production.INFO: ProcessCDR(1,14102400,1,1,2) [2024-12-25 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102400', 'tblTempUsageDetail_20' ) start [2024-12-25 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102400', 'tblTempUsageDetail_20' ) end [2024-12-25 21:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:54:22] Production.INFO: ==5680== Releasing lock... [2024-12-25 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:54:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:55:05 [end_date_ymd] => 2024-12-25 21:55:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:55:05' and `end` < '2024-12-25 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-25 21:55:17] Production.INFO: count ==2616 [2024-12-25 21:55:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:55:05 - End Time 2024-12-25 21:55:05 [2024-12-25 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102405', 'tblTempUsageDetail_20' ) start [2024-12-25 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102405', 'tblTempUsageDetail_20' ) end [2024-12-25 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102405', 'tblTempVendorCDR_20' ) start [2024-12-25 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102405', 'tblTempVendorCDR_20' ) end [2024-12-25 21:55:18] Production.INFO: ProcessCDR(1,14102405,1,1,2) [2024-12-25 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102405', 'tblTempUsageDetail_20' ) start [2024-12-25 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102405', 'tblTempUsageDetail_20' ) end [2024-12-25 21:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:55:23] Production.INFO: ==5807== Releasing lock... [2024-12-25 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:55:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:56:06 [end_date_ymd] => 2024-12-25 21:56:06 [RateCDR] => 1 ) [2024-12-25 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:56:06' and `end` < '2024-12-25 21:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:56:19] Production.INFO: count ==2607 [2024-12-25 21:56:20] Production.ERROR: pbx CDR StartTime 2024-12-25 18:56:06 - End Time 2024-12-25 21:56:06 [2024-12-25 21:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102410', 'tblTempUsageDetail_20' ) start [2024-12-25 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102410', 'tblTempUsageDetail_20' ) end [2024-12-25 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102410', 'tblTempVendorCDR_20' ) start [2024-12-25 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102410', 'tblTempVendorCDR_20' ) end [2024-12-25 21:56:20] Production.INFO: ProcessCDR(1,14102410,1,1,2) [2024-12-25 21:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102410', 'tblTempUsageDetail_20' ) start [2024-12-25 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102410', 'tblTempUsageDetail_20' ) end [2024-12-25 21:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:56:23] Production.INFO: ==5940== Releasing lock... [2024-12-25 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:56:23] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:57:05 [end_date_ymd] => 2024-12-25 21:57:05 [RateCDR] => 1 ) [2024-12-25 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-25 18:57:05' and `end` < '2024-12-25 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-25 21:57:17] Production.INFO: count ==2609 [2024-12-25 21:57:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:57:05 - End Time 2024-12-25 21:57:05 [2024-12-25 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102415', 'tblTempUsageDetail_20' ) start [2024-12-25 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102415', 'tblTempUsageDetail_20' ) end [2024-12-25 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102415', 'tblTempVendorCDR_20' ) start [2024-12-25 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102415', 'tblTempVendorCDR_20' ) end [2024-12-25 21:57:18] Production.INFO: ProcessCDR(1,14102415,1,1,2) [2024-12-25 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102415', 'tblTempUsageDetail_20' ) start [2024-12-25 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102415', 'tblTempUsageDetail_20' ) end [2024-12-25 21:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:57:21] Production.INFO: ==6065== Releasing lock... [2024-12-25 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:57:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:58:05 [end_date_ymd] => 2024-12-25 21:58:05 [RateCDR] => 1 ) [2024-12-25 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 18:58:05' and `end` < '2024-12-25 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 21:58:18] Production.INFO: count ==2612 [2024-12-25 21:58:19] Production.ERROR: pbx CDR StartTime 2024-12-25 18:58:05 - End Time 2024-12-25 21:58:05 [2024-12-25 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102420', 'tblTempUsageDetail_20' ) start [2024-12-25 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102420', 'tblTempUsageDetail_20' ) end [2024-12-25 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102420', 'tblTempVendorCDR_20' ) start [2024-12-25 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102420', 'tblTempVendorCDR_20' ) end [2024-12-25 21:58:19] Production.INFO: ProcessCDR(1,14102420,1,1,2) [2024-12-25 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102420', 'tblTempUsageDetail_20' ) start [2024-12-25 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102420', 'tblTempUsageDetail_20' ) end [2024-12-25 21:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:58:22] Production.INFO: ==6195== Releasing lock... [2024-12-25 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:58:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 18:59:04 [end_date_ymd] => 2024-12-25 21:59:04 [RateCDR] => 1 ) [2024-12-25 21: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-25 18:59:04' and `end` < '2024-12-25 21: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-25 21:59:18] Production.INFO: count ==2602 [2024-12-25 21:59:18] Production.ERROR: pbx CDR StartTime 2024-12-25 18:59:04 - End Time 2024-12-25 21:59:04 [2024-12-25 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102425', 'tblTempUsageDetail_20' ) start [2024-12-25 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102425', 'tblTempUsageDetail_20' ) end [2024-12-25 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102425', 'tblTempVendorCDR_20' ) start [2024-12-25 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102425', 'tblTempVendorCDR_20' ) end [2024-12-25 21:59:19] Production.INFO: ProcessCDR(1,14102425,1,1,2) [2024-12-25 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102425', 'tblTempUsageDetail_20' ) start [2024-12-25 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102425', 'tblTempUsageDetail_20' ) end [2024-12-25 21:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 21:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 21:59:22] Production.INFO: ==6314== Releasing lock... [2024-12-25 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 21:59:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-25 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:00:06 [end_date_ymd] => 2024-12-25 22:00:06 [RateCDR] => 1 ) [2024-12-25 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:00:06' and `end` < '2024-12-25 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:00:19] Production.INFO: count ==2601 [2024-12-25 22:00:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:00:06 - End Time 2024-12-25 22:00:06 [2024-12-25 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102431', 'tblTempUsageDetail_20' ) start [2024-12-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102431', 'tblTempUsageDetail_20' ) end [2024-12-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102431', 'tblTempVendorCDR_20' ) start [2024-12-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102431', 'tblTempVendorCDR_20' ) end [2024-12-25 22:00:20] Production.INFO: ProcessCDR(1,14102431,1,1,2) [2024-12-25 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102431', 'tblTempUsageDetail_20' ) start [2024-12-25 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102431', 'tblTempUsageDetail_20' ) end [2024-12-25 22:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:00:24] Production.INFO: ==6400== Releasing lock... [2024-12-25 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:00:24] Production.INFO: 47.75 MB #Memory Used# [2024-12-25 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:01:05 [end_date_ymd] => 2024-12-25 22:01:05 [RateCDR] => 1 ) [2024-12-25 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:01:05' and `end` < '2024-12-25 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:01:17] Production.INFO: count ==2536 [2024-12-25 22:01:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:01:05 - End Time 2024-12-25 22:01:05 [2024-12-25 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102436', 'tblTempUsageDetail_20' ) start [2024-12-25 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102436', 'tblTempUsageDetail_20' ) end [2024-12-25 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102436', 'tblTempVendorCDR_20' ) start [2024-12-25 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102436', 'tblTempVendorCDR_20' ) end [2024-12-25 22:01:18] Production.INFO: ProcessCDR(1,14102436,1,1,2) [2024-12-25 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102436', 'tblTempUsageDetail_20' ) start [2024-12-25 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102436', 'tblTempUsageDetail_20' ) end [2024-12-25 22:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:01:21] Production.INFO: ==6495== Releasing lock... [2024-12-25 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:01:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:02:05 [end_date_ymd] => 2024-12-25 22:02:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:02:05' and `end` < '2024-12-25 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-25 22:02:19] Production.INFO: count ==2541 [2024-12-25 22:02:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:02:05 - End Time 2024-12-25 22:02:05 [2024-12-25 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102441', 'tblTempUsageDetail_20' ) start [2024-12-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102441', 'tblTempUsageDetail_20' ) end [2024-12-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102441', 'tblTempVendorCDR_20' ) start [2024-12-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102441', 'tblTempVendorCDR_20' ) end [2024-12-25 22:02:19] Production.INFO: ProcessCDR(1,14102441,1,1,2) [2024-12-25 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102441', 'tblTempUsageDetail_20' ) start [2024-12-25 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102441', 'tblTempUsageDetail_20' ) end [2024-12-25 22:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:02:22] Production.INFO: ==6614== Releasing lock... [2024-12-25 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:02:22] Production.INFO: 47 MB #Memory Used# [2024-12-25 22:03:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:03:06 [end_date_ymd] => 2024-12-25 22:03:06 [RateCDR] => 1 ) [2024-12-25 22:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:03:06' and `end` < '2024-12-25 22:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:03:19] Production.INFO: count ==2531 [2024-12-25 22:03:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:03:06 - End Time 2024-12-25 22:03:06 [2024-12-25 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102446', 'tblTempUsageDetail_20' ) start [2024-12-25 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102446', 'tblTempUsageDetail_20' ) end [2024-12-25 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102446', 'tblTempVendorCDR_20' ) start [2024-12-25 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102446', 'tblTempVendorCDR_20' ) end [2024-12-25 22:03:19] Production.INFO: ProcessCDR(1,14102446,1,1,2) [2024-12-25 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102446', 'tblTempUsageDetail_20' ) start [2024-12-25 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102446', 'tblTempUsageDetail_20' ) end [2024-12-25 22:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:03:23] Production.INFO: ==6698== Releasing lock... [2024-12-25 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:03:23] Production.INFO: 47 MB #Memory Used# [2024-12-25 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:04:05 [end_date_ymd] => 2024-12-25 22:04:05 [RateCDR] => 1 ) [2024-12-25 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:04:05' and `end` < '2024-12-25 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:04:17] Production.INFO: count ==2523 [2024-12-25 22:04:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:04:05 - End Time 2024-12-25 22:04:05 [2024-12-25 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102451', 'tblTempUsageDetail_20' ) start [2024-12-25 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102451', 'tblTempUsageDetail_20' ) end [2024-12-25 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102451', 'tblTempVendorCDR_20' ) start [2024-12-25 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102451', 'tblTempVendorCDR_20' ) end [2024-12-25 22:04:18] Production.INFO: ProcessCDR(1,14102451,1,1,2) [2024-12-25 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102451', 'tblTempUsageDetail_20' ) start [2024-12-25 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102451', 'tblTempUsageDetail_20' ) end [2024-12-25 22:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:04:21] Production.INFO: ==6771== Releasing lock... [2024-12-25 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:04:21] Production.INFO: 47 MB #Memory Used# [2024-12-25 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:05:04 [end_date_ymd] => 2024-12-25 22:05:04 [RateCDR] => 1 ) [2024-12-25 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-25 19:05:04' and `end` < '2024-12-25 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-25 22:05:17] Production.INFO: count ==2511 [2024-12-25 22:05:17] Production.ERROR: pbx CDR StartTime 2024-12-25 19:05:04 - End Time 2024-12-25 22:05:04 [2024-12-25 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102456', 'tblTempUsageDetail_20' ) start [2024-12-25 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102456', 'tblTempUsageDetail_20' ) end [2024-12-25 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102456', 'tblTempVendorCDR_20' ) start [2024-12-25 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102456', 'tblTempVendorCDR_20' ) end [2024-12-25 22:05:18] Production.INFO: ProcessCDR(1,14102456,1,1,2) [2024-12-25 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102456', 'tblTempUsageDetail_20' ) start [2024-12-25 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102456', 'tblTempUsageDetail_20' ) end [2024-12-25 22:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:05:21] Production.INFO: ==6845== Releasing lock... [2024-12-25 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:05:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:06:05 [end_date_ymd] => 2024-12-25 22:06:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:06:05' and `end` < '2024-12-25 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-25 22:06:17] Production.INFO: count ==2509 [2024-12-25 22:06:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:06:05 - End Time 2024-12-25 22:06:05 [2024-12-25 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102461', 'tblTempUsageDetail_20' ) start [2024-12-25 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102461', 'tblTempUsageDetail_20' ) end [2024-12-25 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102461', 'tblTempVendorCDR_20' ) start [2024-12-25 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102461', 'tblTempVendorCDR_20' ) end [2024-12-25 22:06:18] Production.INFO: ProcessCDR(1,14102461,1,1,2) [2024-12-25 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102461', 'tblTempUsageDetail_20' ) start [2024-12-25 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102461', 'tblTempUsageDetail_20' ) end [2024-12-25 22:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:06:21] Production.INFO: ==6920== Releasing lock... [2024-12-25 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:06:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:07:04 [end_date_ymd] => 2024-12-25 22:07:04 [RateCDR] => 1 ) [2024-12-25 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-25 19:07:04' and `end` < '2024-12-25 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-25 22:07:17] Production.INFO: count ==2515 [2024-12-25 22:07:17] Production.ERROR: pbx CDR StartTime 2024-12-25 19:07:04 - End Time 2024-12-25 22:07:04 [2024-12-25 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102466', 'tblTempUsageDetail_20' ) start [2024-12-25 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102466', 'tblTempUsageDetail_20' ) end [2024-12-25 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102466', 'tblTempVendorCDR_20' ) start [2024-12-25 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102466', 'tblTempVendorCDR_20' ) end [2024-12-25 22:07:17] Production.INFO: ProcessCDR(1,14102466,1,1,2) [2024-12-25 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102466', 'tblTempUsageDetail_20' ) start [2024-12-25 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102466', 'tblTempUsageDetail_20' ) end [2024-12-25 22:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:07:21] Production.INFO: ==7000== Releasing lock... [2024-12-25 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:07:21] Production.INFO: 47 MB #Memory Used# [2024-12-25 22:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:08:04 [end_date_ymd] => 2024-12-25 22:08:04 [RateCDR] => 1 ) [2024-12-25 22:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:08:04' and `end` < '2024-12-25 22:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:08:17] Production.INFO: count ==2510 [2024-12-25 22:08:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:08:04 - End Time 2024-12-25 22:08:04 [2024-12-25 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102471', 'tblTempUsageDetail_20' ) start [2024-12-25 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102471', 'tblTempUsageDetail_20' ) end [2024-12-25 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102471', 'tblTempVendorCDR_20' ) start [2024-12-25 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102471', 'tblTempVendorCDR_20' ) end [2024-12-25 22:08:18] Production.INFO: ProcessCDR(1,14102471,1,1,2) [2024-12-25 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102471', 'tblTempUsageDetail_20' ) start [2024-12-25 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102471', 'tblTempUsageDetail_20' ) end [2024-12-25 22:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:08:21] Production.INFO: ==7075== Releasing lock... [2024-12-25 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:08:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:09:05 [end_date_ymd] => 2024-12-25 22:09:05 [RateCDR] => 1 ) [2024-12-25 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:09:05' and `end` < '2024-12-25 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:09:18] Production.INFO: count ==2509 [2024-12-25 22:09:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:09:05 - End Time 2024-12-25 22:09:05 [2024-12-25 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102476', 'tblTempUsageDetail_20' ) start [2024-12-25 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102476', 'tblTempUsageDetail_20' ) end [2024-12-25 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102476', 'tblTempVendorCDR_20' ) start [2024-12-25 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102476', 'tblTempVendorCDR_20' ) end [2024-12-25 22:09:18] Production.INFO: ProcessCDR(1,14102476,1,1,2) [2024-12-25 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102476', 'tblTempUsageDetail_20' ) start [2024-12-25 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102476', 'tblTempUsageDetail_20' ) end [2024-12-25 22:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:09:21] Production.INFO: ==7152== Releasing lock... [2024-12-25 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:09:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:10:06 [end_date_ymd] => 2024-12-25 22:10:06 [RateCDR] => 1 ) [2024-12-25 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-25 19:10:06' and `end` < '2024-12-25 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-25 22:10:18] Production.INFO: count ==2517 [2024-12-25 22:10:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:10:06 - End Time 2024-12-25 22:10:06 [2024-12-25 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102482', 'tblTempUsageDetail_20' ) start [2024-12-25 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102482', 'tblTempUsageDetail_20' ) end [2024-12-25 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102482', 'tblTempVendorCDR_20' ) start [2024-12-25 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102482', 'tblTempVendorCDR_20' ) end [2024-12-25 22:10:19] Production.INFO: ProcessCDR(1,14102482,1,1,2) [2024-12-25 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102482', 'tblTempUsageDetail_20' ) start [2024-12-25 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102482', 'tblTempUsageDetail_20' ) end [2024-12-25 22:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:10:22] Production.INFO: ==7238== Releasing lock... [2024-12-25 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:10:22] Production.INFO: 47 MB #Memory Used# [2024-12-25 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:11:05 [end_date_ymd] => 2024-12-25 22:11:05 [RateCDR] => 1 ) [2024-12-25 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:11:05' and `end` < '2024-12-25 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:11:18] Production.INFO: count ==2518 [2024-12-25 22:11:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:11:05 - End Time 2024-12-25 22:11:05 [2024-12-25 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102487', 'tblTempUsageDetail_20' ) start [2024-12-25 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102487', 'tblTempUsageDetail_20' ) end [2024-12-25 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102487', 'tblTempVendorCDR_20' ) start [2024-12-25 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102487', 'tblTempVendorCDR_20' ) end [2024-12-25 22:11:19] Production.INFO: ProcessCDR(1,14102487,1,1,2) [2024-12-25 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102487', 'tblTempUsageDetail_20' ) start [2024-12-25 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102487', 'tblTempUsageDetail_20' ) end [2024-12-25 22:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:11:22] Production.INFO: ==7318== Releasing lock... [2024-12-25 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:11:22] Production.INFO: 47 MB #Memory Used# [2024-12-25 22:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:12:04 [end_date_ymd] => 2024-12-25 22:12:04 [RateCDR] => 1 ) [2024-12-25 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-25 19:12:04' and `end` < '2024-12-25 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-25 22:12:17] Production.INFO: count ==2510 [2024-12-25 22:12:17] Production.ERROR: pbx CDR StartTime 2024-12-25 19:12:04 - End Time 2024-12-25 22:12:04 [2024-12-25 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102492', 'tblTempUsageDetail_20' ) start [2024-12-25 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102492', 'tblTempUsageDetail_20' ) end [2024-12-25 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102492', 'tblTempVendorCDR_20' ) start [2024-12-25 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102492', 'tblTempVendorCDR_20' ) end [2024-12-25 22:12:17] Production.INFO: ProcessCDR(1,14102492,1,1,2) [2024-12-25 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102492', 'tblTempUsageDetail_20' ) start [2024-12-25 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102492', 'tblTempUsageDetail_20' ) end [2024-12-25 22:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:12:21] Production.INFO: ==7394== Releasing lock... [2024-12-25 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:12:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:13:05 [end_date_ymd] => 2024-12-25 22:13:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:13:05' and `end` < '2024-12-25 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-25 22:13:17] Production.INFO: count ==2501 [2024-12-25 22:13:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:13:05 - End Time 2024-12-25 22:13:05 [2024-12-25 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102497', 'tblTempUsageDetail_20' ) start [2024-12-25 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102497', 'tblTempUsageDetail_20' ) end [2024-12-25 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102497', 'tblTempVendorCDR_20' ) start [2024-12-25 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102497', 'tblTempVendorCDR_20' ) end [2024-12-25 22:13:18] Production.INFO: ProcessCDR(1,14102497,1,1,2) [2024-12-25 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102497', 'tblTempUsageDetail_20' ) start [2024-12-25 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102497', 'tblTempUsageDetail_20' ) end [2024-12-25 22:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:13:21] Production.INFO: ==7473== Releasing lock... [2024-12-25 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:13:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:14:04 [end_date_ymd] => 2024-12-25 22:14:04 [RateCDR] => 1 ) [2024-12-25 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-25 19:14:04' and `end` < '2024-12-25 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-25 22:14:17] Production.INFO: count ==2500 [2024-12-25 22:14:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:14:04 - End Time 2024-12-25 22:14:04 [2024-12-25 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102502', 'tblTempUsageDetail_20' ) start [2024-12-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102502', 'tblTempUsageDetail_20' ) end [2024-12-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102502', 'tblTempVendorCDR_20' ) start [2024-12-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102502', 'tblTempVendorCDR_20' ) end [2024-12-25 22:14:18] Production.INFO: ProcessCDR(1,14102502,1,1,2) [2024-12-25 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102502', 'tblTempUsageDetail_20' ) start [2024-12-25 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102502', 'tblTempUsageDetail_20' ) end [2024-12-25 22:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:14:21] Production.INFO: ==7551== Releasing lock... [2024-12-25 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:14:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:15:05 [end_date_ymd] => 2024-12-25 22:15:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:15:05' and `end` < '2024-12-25 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-25 22:15:17] Production.INFO: count ==2501 [2024-12-25 22:15:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:15:05 - End Time 2024-12-25 22:15:05 [2024-12-25 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102507', 'tblTempUsageDetail_20' ) start [2024-12-25 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102507', 'tblTempUsageDetail_20' ) end [2024-12-25 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102507', 'tblTempVendorCDR_20' ) start [2024-12-25 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102507', 'tblTempVendorCDR_20' ) end [2024-12-25 22:15:18] Production.INFO: ProcessCDR(1,14102507,1,1,2) [2024-12-25 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102507', 'tblTempUsageDetail_20' ) start [2024-12-25 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102507', 'tblTempUsageDetail_20' ) end [2024-12-25 22:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:15:21] Production.INFO: ==7625== Releasing lock... [2024-12-25 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:15:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:16:05 [end_date_ymd] => 2024-12-25 22:16:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:16:05' and `end` < '2024-12-25 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-25 22:16:17] Production.INFO: count ==2511 [2024-12-25 22:16:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:16:05 - End Time 2024-12-25 22:16:05 [2024-12-25 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102512', 'tblTempUsageDetail_20' ) start [2024-12-25 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102512', 'tblTempUsageDetail_20' ) end [2024-12-25 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102512', 'tblTempVendorCDR_20' ) start [2024-12-25 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102512', 'tblTempVendorCDR_20' ) end [2024-12-25 22:16:18] Production.INFO: ProcessCDR(1,14102512,1,1,2) [2024-12-25 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102512', 'tblTempUsageDetail_20' ) start [2024-12-25 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102512', 'tblTempUsageDetail_20' ) end [2024-12-25 22:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:16:21] Production.INFO: ==7701== Releasing lock... [2024-12-25 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:16:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:17:05 [end_date_ymd] => 2024-12-25 22:17:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:17:05' and `end` < '2024-12-25 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-25 22:17:17] Production.INFO: count ==2515 [2024-12-25 22:17:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:17:05 - End Time 2024-12-25 22:17:05 [2024-12-25 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102517', 'tblTempUsageDetail_20' ) start [2024-12-25 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102517', 'tblTempUsageDetail_20' ) end [2024-12-25 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102517', 'tblTempVendorCDR_20' ) start [2024-12-25 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102517', 'tblTempVendorCDR_20' ) end [2024-12-25 22:17:18] Production.INFO: ProcessCDR(1,14102517,1,1,2) [2024-12-25 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102517', 'tblTempUsageDetail_20' ) start [2024-12-25 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102517', 'tblTempUsageDetail_20' ) end [2024-12-25 22:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:17:21] Production.INFO: ==7778== Releasing lock... [2024-12-25 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:17:21] Production.INFO: 47 MB #Memory Used# [2024-12-25 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:18:05 [end_date_ymd] => 2024-12-25 22:18:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:18:05' and `end` < '2024-12-25 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-25 22:18:18] Production.INFO: count ==2537 [2024-12-25 22:18:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:18:05 - End Time 2024-12-25 22:18:05 [2024-12-25 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102522', 'tblTempUsageDetail_20' ) start [2024-12-25 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102522', 'tblTempUsageDetail_20' ) end [2024-12-25 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102522', 'tblTempVendorCDR_20' ) start [2024-12-25 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102522', 'tblTempVendorCDR_20' ) end [2024-12-25 22:18:19] Production.INFO: ProcessCDR(1,14102522,1,1,2) [2024-12-25 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102522', 'tblTempUsageDetail_20' ) start [2024-12-25 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102522', 'tblTempUsageDetail_20' ) end [2024-12-25 22:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:18:22] Production.INFO: ==7894== Releasing lock... [2024-12-25 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:18:22] Production.INFO: 47 MB #Memory Used# [2024-12-25 22:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:19:04 [end_date_ymd] => 2024-12-25 22:19:04 [RateCDR] => 1 ) [2024-12-25 22:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:19:04' and `end` < '2024-12-25 22:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:19:17] Production.INFO: count ==2540 [2024-12-25 22:19:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:19:04 - End Time 2024-12-25 22:19:04 [2024-12-25 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102527', 'tblTempUsageDetail_20' ) start [2024-12-25 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102527', 'tblTempUsageDetail_20' ) end [2024-12-25 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102527', 'tblTempVendorCDR_20' ) start [2024-12-25 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102527', 'tblTempVendorCDR_20' ) end [2024-12-25 22:19:18] Production.INFO: ProcessCDR(1,14102527,1,1,2) [2024-12-25 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102527', 'tblTempUsageDetail_20' ) start [2024-12-25 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102527', 'tblTempUsageDetail_20' ) end [2024-12-25 22:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:19:21] Production.INFO: ==7975== Releasing lock... [2024-12-25 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:19:21] Production.INFO: 47 MB #Memory Used# [2024-12-25 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:20:06 [end_date_ymd] => 2024-12-25 22:20:06 [RateCDR] => 1 ) [2024-12-25 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-25 19:20:06' and `end` < '2024-12-25 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-25 22:20:18] Production.INFO: count ==2540 [2024-12-25 22:20:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:20:06 - End Time 2024-12-25 22:20:06 [2024-12-25 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102533', 'tblTempUsageDetail_20' ) start [2024-12-25 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102533', 'tblTempUsageDetail_20' ) end [2024-12-25 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102533', 'tblTempVendorCDR_20' ) start [2024-12-25 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102533', 'tblTempVendorCDR_20' ) end [2024-12-25 22:20:19] Production.INFO: ProcessCDR(1,14102533,1,1,2) [2024-12-25 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102533', 'tblTempUsageDetail_20' ) start [2024-12-25 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102533', 'tblTempUsageDetail_20' ) end [2024-12-25 22:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:20:22] Production.INFO: ==8056== Releasing lock... [2024-12-25 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:20:22] Production.INFO: 47 MB #Memory Used# [2024-12-25 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:21:04 [end_date_ymd] => 2024-12-25 22:21:04 [RateCDR] => 1 ) [2024-12-25 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-25 19:21:04' and `end` < '2024-12-25 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-25 22:21:17] Production.INFO: count ==2503 [2024-12-25 22:21:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:21:04 - End Time 2024-12-25 22:21:04 [2024-12-25 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102538', 'tblTempUsageDetail_20' ) start [2024-12-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102538', 'tblTempUsageDetail_20' ) end [2024-12-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102538', 'tblTempVendorCDR_20' ) start [2024-12-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102538', 'tblTempVendorCDR_20' ) end [2024-12-25 22:21:18] Production.INFO: ProcessCDR(1,14102538,1,1,2) [2024-12-25 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102538', 'tblTempUsageDetail_20' ) start [2024-12-25 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102538', 'tblTempUsageDetail_20' ) end [2024-12-25 22:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:21:21] Production.INFO: ==8133== Releasing lock... [2024-12-25 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:21:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:22:05 [end_date_ymd] => 2024-12-25 22:22:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:22:05' and `end` < '2024-12-25 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-25 22:22:19] Production.INFO: count ==2488 [2024-12-25 22:22:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:22:05 - End Time 2024-12-25 22:22:05 [2024-12-25 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102543', 'tblTempUsageDetail_20' ) start [2024-12-25 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102543', 'tblTempUsageDetail_20' ) end [2024-12-25 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102543', 'tblTempVendorCDR_20' ) start [2024-12-25 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102543', 'tblTempVendorCDR_20' ) end [2024-12-25 22:22:19] Production.INFO: ProcessCDR(1,14102543,1,1,2) [2024-12-25 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102543', 'tblTempUsageDetail_20' ) start [2024-12-25 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102543', 'tblTempUsageDetail_20' ) end [2024-12-25 22:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:22:23] Production.INFO: ==8209== Releasing lock... [2024-12-25 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:22:23] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:23:04 [end_date_ymd] => 2024-12-25 22:23:04 [RateCDR] => 1 ) [2024-12-25 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-25 19:23:04' and `end` < '2024-12-25 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-25 22:23:17] Production.INFO: count ==2497 [2024-12-25 22:23:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:23:04 - End Time 2024-12-25 22:23:04 [2024-12-25 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102548', 'tblTempUsageDetail_20' ) start [2024-12-25 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102548', 'tblTempUsageDetail_20' ) end [2024-12-25 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102548', 'tblTempVendorCDR_20' ) start [2024-12-25 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102548', 'tblTempVendorCDR_20' ) end [2024-12-25 22:23:18] Production.INFO: ProcessCDR(1,14102548,1,1,2) [2024-12-25 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102548', 'tblTempUsageDetail_20' ) start [2024-12-25 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102548', 'tblTempUsageDetail_20' ) end [2024-12-25 22:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:23:21] Production.INFO: ==8287== Releasing lock... [2024-12-25 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:23:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:24:05 [end_date_ymd] => 2024-12-25 22:24:05 [RateCDR] => 1 ) [2024-12-25 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:24:05' and `end` < '2024-12-25 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:24:17] Production.INFO: count ==2489 [2024-12-25 22:24:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:24:05 - End Time 2024-12-25 22:24:05 [2024-12-25 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102553', 'tblTempUsageDetail_20' ) start [2024-12-25 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102553', 'tblTempUsageDetail_20' ) end [2024-12-25 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102553', 'tblTempVendorCDR_20' ) start [2024-12-25 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102553', 'tblTempVendorCDR_20' ) end [2024-12-25 22:24:18] Production.INFO: ProcessCDR(1,14102553,1,1,2) [2024-12-25 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102553', 'tblTempUsageDetail_20' ) start [2024-12-25 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102553', 'tblTempUsageDetail_20' ) end [2024-12-25 22:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:24:21] Production.INFO: ==8363== Releasing lock... [2024-12-25 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:24:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-25 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:25:05 [end_date_ymd] => 2024-12-25 22:25:05 [RateCDR] => 1 ) [2024-12-25 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:25:05' and `end` < '2024-12-25 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:25:18] Production.INFO: count ==2479 [2024-12-25 22:25:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:25:05 - End Time 2024-12-25 22:25:05 [2024-12-25 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102558', 'tblTempUsageDetail_20' ) start [2024-12-25 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102558', 'tblTempUsageDetail_20' ) end [2024-12-25 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102558', 'tblTempVendorCDR_20' ) start [2024-12-25 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102558', 'tblTempVendorCDR_20' ) end [2024-12-25 22:25:19] Production.INFO: ProcessCDR(1,14102558,1,1,2) [2024-12-25 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102558', 'tblTempUsageDetail_20' ) start [2024-12-25 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102558', 'tblTempUsageDetail_20' ) end [2024-12-25 22:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:25:22] Production.INFO: ==8437== Releasing lock... [2024-12-25 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:25:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-25 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:26:05 [end_date_ymd] => 2024-12-25 22:26:05 [RateCDR] => 1 ) [2024-12-25 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:26:05' and `end` < '2024-12-25 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:26:19] Production.INFO: count ==2473 [2024-12-25 22:26:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:26:05 - End Time 2024-12-25 22:26:05 [2024-12-25 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102563', 'tblTempUsageDetail_20' ) start [2024-12-25 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102563', 'tblTempUsageDetail_20' ) end [2024-12-25 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102563', 'tblTempVendorCDR_20' ) start [2024-12-25 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102563', 'tblTempVendorCDR_20' ) end [2024-12-25 22:26:19] Production.INFO: ProcessCDR(1,14102563,1,1,2) [2024-12-25 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102563', 'tblTempUsageDetail_20' ) start [2024-12-25 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102563', 'tblTempUsageDetail_20' ) end [2024-12-25 22:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:26:22] Production.INFO: ==8530== Releasing lock... [2024-12-25 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:26:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-25 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:27:05 [end_date_ymd] => 2024-12-25 22:27:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:27:05' and `end` < '2024-12-25 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-25 22:27:17] Production.INFO: count ==2463 [2024-12-25 22:27:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:27:05 - End Time 2024-12-25 22:27:05 [2024-12-25 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102568', 'tblTempUsageDetail_20' ) start [2024-12-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102568', 'tblTempUsageDetail_20' ) end [2024-12-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102568', 'tblTempVendorCDR_20' ) start [2024-12-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102568', 'tblTempVendorCDR_20' ) end [2024-12-25 22:27:18] Production.INFO: ProcessCDR(1,14102568,1,1,2) [2024-12-25 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102568', 'tblTempUsageDetail_20' ) start [2024-12-25 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102568', 'tblTempUsageDetail_20' ) end [2024-12-25 22:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:27:21] Production.INFO: ==8610== Releasing lock... [2024-12-25 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:27:21] Production.INFO: 46.5 MB #Memory Used# [2024-12-25 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:28:04 [end_date_ymd] => 2024-12-25 22:28:04 [RateCDR] => 1 ) [2024-12-25 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-25 19:28:04' and `end` < '2024-12-25 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-25 22:28:17] Production.INFO: count ==2444 [2024-12-25 22:28:17] Production.ERROR: pbx CDR StartTime 2024-12-25 19:28:04 - End Time 2024-12-25 22:28:04 [2024-12-25 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102573', 'tblTempUsageDetail_20' ) start [2024-12-25 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102573', 'tblTempUsageDetail_20' ) end [2024-12-25 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102573', 'tblTempVendorCDR_20' ) start [2024-12-25 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102573', 'tblTempVendorCDR_20' ) end [2024-12-25 22:28:17] Production.INFO: ProcessCDR(1,14102573,1,1,2) [2024-12-25 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102573', 'tblTempUsageDetail_20' ) start [2024-12-25 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102573', 'tblTempUsageDetail_20' ) end [2024-12-25 22:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:28:22] Production.INFO: ==8689== Releasing lock... [2024-12-25 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:28:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-25 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:29:04 [end_date_ymd] => 2024-12-25 22:29:04 [RateCDR] => 1 ) [2024-12-25 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-25 19:29:04' and `end` < '2024-12-25 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-25 22:29:18] Production.INFO: count ==2423 [2024-12-25 22:29:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:29:04 - End Time 2024-12-25 22:29:04 [2024-12-25 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102578', 'tblTempUsageDetail_20' ) start [2024-12-25 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102578', 'tblTempUsageDetail_20' ) end [2024-12-25 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102578', 'tblTempVendorCDR_20' ) start [2024-12-25 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102578', 'tblTempVendorCDR_20' ) end [2024-12-25 22:29:19] Production.INFO: ProcessCDR(1,14102578,1,1,2) [2024-12-25 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102578', 'tblTempUsageDetail_20' ) start [2024-12-25 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102578', 'tblTempUsageDetail_20' ) end [2024-12-25 22:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:29:22] Production.INFO: ==8771== Releasing lock... [2024-12-25 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:29:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:30:06 [end_date_ymd] => 2024-12-25 22:30:06 [RateCDR] => 1 ) [2024-12-25 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:30:06' and `end` < '2024-12-25 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:30:19] Production.INFO: count ==2412 [2024-12-25 22:30:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:30:06 - End Time 2024-12-25 22:30:06 [2024-12-25 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102584', 'tblTempUsageDetail_20' ) start [2024-12-25 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102584', 'tblTempUsageDetail_20' ) end [2024-12-25 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102584', 'tblTempVendorCDR_20' ) start [2024-12-25 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102584', 'tblTempVendorCDR_20' ) end [2024-12-25 22:30:20] Production.INFO: ProcessCDR(1,14102584,1,1,2) [2024-12-25 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102584', 'tblTempUsageDetail_20' ) start [2024-12-25 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102584', 'tblTempUsageDetail_20' ) end [2024-12-25 22:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:30:23] Production.INFO: ==8850== Releasing lock... [2024-12-25 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:30:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-25 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:31:05 [end_date_ymd] => 2024-12-25 22:31:05 [RateCDR] => 1 ) [2024-12-25 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:31:05' and `end` < '2024-12-25 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:31:17] Production.INFO: count ==2359 [2024-12-25 22:31:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:31:05 - End Time 2024-12-25 22:31:05 [2024-12-25 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102589', 'tblTempUsageDetail_20' ) start [2024-12-25 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102589', 'tblTempUsageDetail_20' ) end [2024-12-25 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102589', 'tblTempVendorCDR_20' ) start [2024-12-25 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102589', 'tblTempVendorCDR_20' ) end [2024-12-25 22:31:18] Production.INFO: ProcessCDR(1,14102589,1,1,2) [2024-12-25 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102589', 'tblTempUsageDetail_20' ) start [2024-12-25 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102589', 'tblTempUsageDetail_20' ) end [2024-12-25 22:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:31:21] Production.INFO: ==8928== Releasing lock... [2024-12-25 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:31:21] Production.INFO: 45.75 MB #Memory Used# [2024-12-25 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:32:05 [end_date_ymd] => 2024-12-25 22:32:05 [RateCDR] => 1 ) [2024-12-25 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:32:05' and `end` < '2024-12-25 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:32:18] Production.INFO: count ==2337 [2024-12-25 22:32:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:32:05 - End Time 2024-12-25 22:32:05 [2024-12-25 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102594', 'tblTempUsageDetail_20' ) start [2024-12-25 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102594', 'tblTempUsageDetail_20' ) end [2024-12-25 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102594', 'tblTempVendorCDR_20' ) start [2024-12-25 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102594', 'tblTempVendorCDR_20' ) end [2024-12-25 22:32:18] Production.INFO: ProcessCDR(1,14102594,1,1,2) [2024-12-25 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102594', 'tblTempUsageDetail_20' ) start [2024-12-25 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102594', 'tblTempUsageDetail_20' ) end [2024-12-25 22:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:32:21] Production.INFO: ==9010== Releasing lock... [2024-12-25 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:32:21] Production.INFO: 45.5 MB #Memory Used# [2024-12-25 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:33:04 [end_date_ymd] => 2024-12-25 22:33:04 [RateCDR] => 1 ) [2024-12-25 22:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:33:04' and `end` < '2024-12-25 22:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:33:18] Production.INFO: count ==2315 [2024-12-25 22:33:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:33:04 - End Time 2024-12-25 22:33:04 [2024-12-25 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102599', 'tblTempUsageDetail_20' ) start [2024-12-25 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102599', 'tblTempUsageDetail_20' ) end [2024-12-25 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102599', 'tblTempVendorCDR_20' ) start [2024-12-25 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102599', 'tblTempVendorCDR_20' ) end [2024-12-25 22:33:18] Production.INFO: ProcessCDR(1,14102599,1,1,2) [2024-12-25 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102599', 'tblTempUsageDetail_20' ) start [2024-12-25 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102599', 'tblTempUsageDetail_20' ) end [2024-12-25 22:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:33:21] Production.INFO: ==9086== Releasing lock... [2024-12-25 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:33:21] Production.INFO: 45.5 MB #Memory Used# [2024-12-25 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:34:05 [end_date_ymd] => 2024-12-25 22:34:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:34:05' and `end` < '2024-12-25 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-25 22:34:18] Production.INFO: count ==2296 [2024-12-25 22:34:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:34:05 - End Time 2024-12-25 22:34:05 [2024-12-25 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102604', 'tblTempUsageDetail_20' ) start [2024-12-25 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102604', 'tblTempUsageDetail_20' ) end [2024-12-25 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102604', 'tblTempVendorCDR_20' ) start [2024-12-25 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102604', 'tblTempVendorCDR_20' ) end [2024-12-25 22:34:19] Production.INFO: ProcessCDR(1,14102604,1,1,2) [2024-12-25 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102604', 'tblTempUsageDetail_20' ) start [2024-12-25 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102604', 'tblTempUsageDetail_20' ) end [2024-12-25 22:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:34:22] Production.INFO: ==9225== Releasing lock... [2024-12-25 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:34:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-25 22:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:35:04 [end_date_ymd] => 2024-12-25 22:35:04 [RateCDR] => 1 ) [2024-12-25 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-25 19:35:04' and `end` < '2024-12-25 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-25 22:35:17] Production.INFO: count ==2283 [2024-12-25 22:35:17] Production.ERROR: pbx CDR StartTime 2024-12-25 19:35:04 - End Time 2024-12-25 22:35:04 [2024-12-25 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102609', 'tblTempUsageDetail_20' ) start [2024-12-25 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102609', 'tblTempUsageDetail_20' ) end [2024-12-25 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102609', 'tblTempVendorCDR_20' ) start [2024-12-25 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102609', 'tblTempVendorCDR_20' ) end [2024-12-25 22:35:17] Production.INFO: ProcessCDR(1,14102609,1,1,2) [2024-12-25 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102609', 'tblTempUsageDetail_20' ) start [2024-12-25 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102609', 'tblTempUsageDetail_20' ) end [2024-12-25 22:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:35:21] Production.INFO: ==9300== Releasing lock... [2024-12-25 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:35:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-25 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:36:05 [end_date_ymd] => 2024-12-25 22:36:05 [RateCDR] => 1 ) [2024-12-25 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:36:05' and `end` < '2024-12-25 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:36:18] Production.INFO: count ==2268 [2024-12-25 22:36:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:36:05 - End Time 2024-12-25 22:36:05 [2024-12-25 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102614', 'tblTempUsageDetail_20' ) start [2024-12-25 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102614', 'tblTempUsageDetail_20' ) end [2024-12-25 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102614', 'tblTempVendorCDR_20' ) start [2024-12-25 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102614', 'tblTempVendorCDR_20' ) end [2024-12-25 22:36:18] Production.INFO: ProcessCDR(1,14102614,1,1,2) [2024-12-25 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102614', 'tblTempUsageDetail_20' ) start [2024-12-25 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102614', 'tblTempUsageDetail_20' ) end [2024-12-25 22:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:36:22] Production.INFO: ==9377== Releasing lock... [2024-12-25 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:36:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-25 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:37:05 [end_date_ymd] => 2024-12-25 22:37:05 [RateCDR] => 1 ) [2024-12-25 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:37:05' and `end` < '2024-12-25 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:37:18] Production.INFO: count ==2253 [2024-12-25 22:37:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:37:05 - End Time 2024-12-25 22:37:05 [2024-12-25 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102619', 'tblTempUsageDetail_20' ) start [2024-12-25 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102619', 'tblTempUsageDetail_20' ) end [2024-12-25 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102619', 'tblTempVendorCDR_20' ) start [2024-12-25 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102619', 'tblTempVendorCDR_20' ) end [2024-12-25 22:37:19] Production.INFO: ProcessCDR(1,14102619,1,1,2) [2024-12-25 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102619', 'tblTempUsageDetail_20' ) start [2024-12-25 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102619', 'tblTempUsageDetail_20' ) end [2024-12-25 22:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:37:22] Production.INFO: ==9454== Releasing lock... [2024-12-25 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:37:22] Production.INFO: 45 MB #Memory Used# [2024-12-25 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:38:05 [end_date_ymd] => 2024-12-25 22:38:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:38:05' and `end` < '2024-12-25 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-25 22:38:17] Production.INFO: count ==2249 [2024-12-25 22:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:38:05 - End Time 2024-12-25 22:38:05 [2024-12-25 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102624', 'tblTempUsageDetail_20' ) start [2024-12-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102624', 'tblTempUsageDetail_20' ) end [2024-12-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102624', 'tblTempVendorCDR_20' ) start [2024-12-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102624', 'tblTempVendorCDR_20' ) end [2024-12-25 22:38:18] Production.INFO: ProcessCDR(1,14102624,1,1,2) [2024-12-25 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102624', 'tblTempUsageDetail_20' ) start [2024-12-25 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102624', 'tblTempUsageDetail_20' ) end [2024-12-25 22:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:38:21] Production.INFO: ==9529== Releasing lock... [2024-12-25 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:38:21] Production.INFO: 45 MB #Memory Used# [2024-12-25 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:39:04 [end_date_ymd] => 2024-12-25 22:39:04 [RateCDR] => 1 ) [2024-12-25 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-25 19:39:04' and `end` < '2024-12-25 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-25 22:39:17] Production.INFO: count ==2252 [2024-12-25 22:39:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:39:04 - End Time 2024-12-25 22:39:04 [2024-12-25 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102629', 'tblTempUsageDetail_20' ) start [2024-12-25 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102629', 'tblTempUsageDetail_20' ) end [2024-12-25 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102629', 'tblTempVendorCDR_20' ) start [2024-12-25 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102629', 'tblTempVendorCDR_20' ) end [2024-12-25 22:39:18] Production.INFO: ProcessCDR(1,14102629,1,1,2) [2024-12-25 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102629', 'tblTempUsageDetail_20' ) start [2024-12-25 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102629', 'tblTempUsageDetail_20' ) end [2024-12-25 22:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:39:21] Production.INFO: ==9604== Releasing lock... [2024-12-25 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:39:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-25 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:40:05 [end_date_ymd] => 2024-12-25 22:40:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:40:05' and `end` < '2024-12-25 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-25 22:40:18] Production.INFO: count ==2241 [2024-12-25 22:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:40:05 - End Time 2024-12-25 22:40:05 [2024-12-25 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102634', 'tblTempUsageDetail_20' ) start [2024-12-25 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102634', 'tblTempUsageDetail_20' ) end [2024-12-25 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102634', 'tblTempVendorCDR_20' ) start [2024-12-25 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102634', 'tblTempVendorCDR_20' ) end [2024-12-25 22:40:18] Production.INFO: ProcessCDR(1,14102634,1,1,2) [2024-12-25 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102634', 'tblTempUsageDetail_20' ) start [2024-12-25 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102634', 'tblTempUsageDetail_20' ) end [2024-12-25 22:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:40:22] Production.INFO: ==9688== Releasing lock... [2024-12-25 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:40:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-25 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:41:05 [end_date_ymd] => 2024-12-25 22:41:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:41:05' and `end` < '2024-12-25 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-25 22:41:17] Production.INFO: count ==2191 [2024-12-25 22:41:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:41:05 - End Time 2024-12-25 22:41:05 [2024-12-25 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102640', 'tblTempUsageDetail_20' ) start [2024-12-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102640', 'tblTempUsageDetail_20' ) end [2024-12-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102640', 'tblTempVendorCDR_20' ) start [2024-12-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102640', 'tblTempVendorCDR_20' ) end [2024-12-25 22:41:18] Production.INFO: ProcessCDR(1,14102640,1,1,2) [2024-12-25 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102640', 'tblTempUsageDetail_20' ) start [2024-12-25 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102640', 'tblTempUsageDetail_20' ) end [2024-12-25 22:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:41:21] Production.INFO: ==9764== Releasing lock... [2024-12-25 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:41:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-25 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:42:05 [end_date_ymd] => 2024-12-25 22:42:05 [RateCDR] => 1 ) [2024-12-25 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:42:05' and `end` < '2024-12-25 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:42:17] Production.INFO: count ==2170 [2024-12-25 22:42:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:42:05 - End Time 2024-12-25 22:42:05 [2024-12-25 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102645', 'tblTempUsageDetail_20' ) start [2024-12-25 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102645', 'tblTempUsageDetail_20' ) end [2024-12-25 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102645', 'tblTempVendorCDR_20' ) start [2024-12-25 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102645', 'tblTempVendorCDR_20' ) end [2024-12-25 22:42:18] Production.INFO: ProcessCDR(1,14102645,1,1,2) [2024-12-25 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102645', 'tblTempUsageDetail_20' ) start [2024-12-25 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102645', 'tblTempUsageDetail_20' ) end [2024-12-25 22:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:42:21] Production.INFO: ==9849== Releasing lock... [2024-12-25 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:42:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-25 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:43:05 [end_date_ymd] => 2024-12-25 22:43:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:43:05' and `end` < '2024-12-25 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-25 22:43:19] Production.INFO: count ==2164 [2024-12-25 22:43:20] Production.ERROR: pbx CDR StartTime 2024-12-25 19:43:05 - End Time 2024-12-25 22:43:05 [2024-12-25 22:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102650', 'tblTempUsageDetail_20' ) start [2024-12-25 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102650', 'tblTempUsageDetail_20' ) end [2024-12-25 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102650', 'tblTempVendorCDR_20' ) start [2024-12-25 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102650', 'tblTempVendorCDR_20' ) end [2024-12-25 22:43:20] Production.INFO: ProcessCDR(1,14102650,1,1,2) [2024-12-25 22:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102650', 'tblTempUsageDetail_20' ) start [2024-12-25 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102650', 'tblTempUsageDetail_20' ) end [2024-12-25 22:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:43:23] Production.INFO: ==9927== Releasing lock... [2024-12-25 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:43:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-25 22:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:44:04 [end_date_ymd] => 2024-12-25 22:44:04 [RateCDR] => 1 ) [2024-12-25 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-25 19:44:04' and `end` < '2024-12-25 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-25 22:44:17] Production.INFO: count ==2151 [2024-12-25 22:44:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:44:04 - End Time 2024-12-25 22:44:04 [2024-12-25 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102655', 'tblTempUsageDetail_20' ) start [2024-12-25 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102655', 'tblTempUsageDetail_20' ) end [2024-12-25 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102655', 'tblTempVendorCDR_20' ) start [2024-12-25 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102655', 'tblTempVendorCDR_20' ) end [2024-12-25 22:44:18] Production.INFO: ProcessCDR(1,14102655,1,1,2) [2024-12-25 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102655', 'tblTempUsageDetail_20' ) start [2024-12-25 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102655', 'tblTempUsageDetail_20' ) end [2024-12-25 22:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:44:21] Production.INFO: ==10000== Releasing lock... [2024-12-25 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:44:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-25 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:45:05 [end_date_ymd] => 2024-12-25 22:45:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:45:05' and `end` < '2024-12-25 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-25 22:45:18] Production.INFO: count ==2157 [2024-12-25 22:45:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:45:05 - End Time 2024-12-25 22:45:05 [2024-12-25 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102660', 'tblTempUsageDetail_20' ) start [2024-12-25 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102660', 'tblTempUsageDetail_20' ) end [2024-12-25 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102660', 'tblTempVendorCDR_20' ) start [2024-12-25 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102660', 'tblTempVendorCDR_20' ) end [2024-12-25 22:45:18] Production.INFO: ProcessCDR(1,14102660,1,1,2) [2024-12-25 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102660', 'tblTempUsageDetail_20' ) start [2024-12-25 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102660', 'tblTempUsageDetail_20' ) end [2024-12-25 22:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:45:21] Production.INFO: ==10084== Releasing lock... [2024-12-25 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:45:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-25 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:46:04 [end_date_ymd] => 2024-12-25 22:46:04 [RateCDR] => 1 ) [2024-12-25 22: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-25 19:46:04' and `end` < '2024-12-25 22: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-25 22:46:17] Production.INFO: count ==2155 [2024-12-25 22:46:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:46:04 - End Time 2024-12-25 22:46:04 [2024-12-25 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102665', 'tblTempUsageDetail_20' ) start [2024-12-25 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102665', 'tblTempUsageDetail_20' ) end [2024-12-25 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102665', 'tblTempVendorCDR_20' ) start [2024-12-25 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102665', 'tblTempVendorCDR_20' ) end [2024-12-25 22:46:18] Production.INFO: ProcessCDR(1,14102665,1,1,2) [2024-12-25 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102665', 'tblTempUsageDetail_20' ) start [2024-12-25 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102665', 'tblTempUsageDetail_20' ) end [2024-12-25 22:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:46:21] Production.INFO: ==10159== Releasing lock... [2024-12-25 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:46:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-25 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:47:05 [end_date_ymd] => 2024-12-25 22:47:05 [RateCDR] => 1 ) [2024-12-25 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:47:05' and `end` < '2024-12-25 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:47:17] Production.INFO: count ==2151 [2024-12-25 22:47:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:47:05 - End Time 2024-12-25 22:47:05 [2024-12-25 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102670', 'tblTempUsageDetail_20' ) start [2024-12-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102670', 'tblTempUsageDetail_20' ) end [2024-12-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102670', 'tblTempVendorCDR_20' ) start [2024-12-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102670', 'tblTempVendorCDR_20' ) end [2024-12-25 22:47:18] Production.INFO: ProcessCDR(1,14102670,1,1,2) [2024-12-25 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102670', 'tblTempUsageDetail_20' ) start [2024-12-25 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102670', 'tblTempUsageDetail_20' ) end [2024-12-25 22:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:47:21] Production.INFO: ==10241== Releasing lock... [2024-12-25 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:47:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-25 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:48:05 [end_date_ymd] => 2024-12-25 22:48:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:48:05' and `end` < '2024-12-25 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-25 22:48:18] Production.INFO: count ==2149 [2024-12-25 22:48:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:48:05 - End Time 2024-12-25 22:48:05 [2024-12-25 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102675', 'tblTempUsageDetail_20' ) start [2024-12-25 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102675', 'tblTempUsageDetail_20' ) end [2024-12-25 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102675', 'tblTempVendorCDR_20' ) start [2024-12-25 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102675', 'tblTempVendorCDR_20' ) end [2024-12-25 22:48:18] Production.INFO: ProcessCDR(1,14102675,1,1,2) [2024-12-25 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102675', 'tblTempUsageDetail_20' ) start [2024-12-25 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102675', 'tblTempUsageDetail_20' ) end [2024-12-25 22:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:48:22] Production.INFO: ==10317== Releasing lock... [2024-12-25 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:48:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-25 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:49:04 [end_date_ymd] => 2024-12-25 22:49:04 [RateCDR] => 1 ) [2024-12-25 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-25 19:49:04' and `end` < '2024-12-25 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-25 22:49:17] Production.INFO: count ==2138 [2024-12-25 22:49:17] Production.ERROR: pbx CDR StartTime 2024-12-25 19:49:04 - End Time 2024-12-25 22:49:04 [2024-12-25 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102680', 'tblTempUsageDetail_20' ) start [2024-12-25 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102680', 'tblTempUsageDetail_20' ) end [2024-12-25 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102680', 'tblTempVendorCDR_20' ) start [2024-12-25 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102680', 'tblTempVendorCDR_20' ) end [2024-12-25 22:49:17] Production.INFO: ProcessCDR(1,14102680,1,1,2) [2024-12-25 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102680', 'tblTempUsageDetail_20' ) start [2024-12-25 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102680', 'tblTempUsageDetail_20' ) end [2024-12-25 22:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:49:22] Production.INFO: ==10433== Releasing lock... [2024-12-25 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:49:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-25 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:50:05 [end_date_ymd] => 2024-12-25 22:50:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:50:05' and `end` < '2024-12-25 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-25 22:50:18] Production.INFO: count ==2125 [2024-12-25 22:50:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:50:05 - End Time 2024-12-25 22:50:05 [2024-12-25 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102685', 'tblTempUsageDetail_20' ) start [2024-12-25 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102685', 'tblTempUsageDetail_20' ) end [2024-12-25 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102685', 'tblTempVendorCDR_20' ) start [2024-12-25 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102685', 'tblTempVendorCDR_20' ) end [2024-12-25 22:50:19] Production.INFO: ProcessCDR(1,14102685,1,1,2) [2024-12-25 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102685', 'tblTempUsageDetail_20' ) start [2024-12-25 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102685', 'tblTempUsageDetail_20' ) end [2024-12-25 22:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:50:23] Production.INFO: ==10514== Releasing lock... [2024-12-25 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:50:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-25 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:51:04 [end_date_ymd] => 2024-12-25 22:51:04 [RateCDR] => 1 ) [2024-12-25 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-25 19:51:04' and `end` < '2024-12-25 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-25 22:51:17] Production.INFO: count ==2095 [2024-12-25 22:51:17] Production.ERROR: pbx CDR StartTime 2024-12-25 19:51:04 - End Time 2024-12-25 22:51:04 [2024-12-25 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102691', 'tblTempUsageDetail_20' ) start [2024-12-25 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102691', 'tblTempUsageDetail_20' ) end [2024-12-25 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102691', 'tblTempVendorCDR_20' ) start [2024-12-25 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102691', 'tblTempVendorCDR_20' ) end [2024-12-25 22:51:17] Production.INFO: ProcessCDR(1,14102691,1,1,2) [2024-12-25 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102691', 'tblTempUsageDetail_20' ) start [2024-12-25 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102691', 'tblTempUsageDetail_20' ) end [2024-12-25 22:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:51:20] Production.INFO: ==10594== Releasing lock... [2024-12-25 22:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:51:20] Production.INFO: 44 MB #Memory Used# [2024-12-25 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:52:05 [end_date_ymd] => 2024-12-25 22:52:05 [RateCDR] => 1 ) [2024-12-25 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:52:05' and `end` < '2024-12-25 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:52:18] Production.INFO: count ==2099 [2024-12-25 22:52:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:52:05 - End Time 2024-12-25 22:52:05 [2024-12-25 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102696', 'tblTempUsageDetail_20' ) start [2024-12-25 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102696', 'tblTempUsageDetail_20' ) end [2024-12-25 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102696', 'tblTempVendorCDR_20' ) start [2024-12-25 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102696', 'tblTempVendorCDR_20' ) end [2024-12-25 22:52:18] Production.INFO: ProcessCDR(1,14102696,1,1,2) [2024-12-25 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102696', 'tblTempUsageDetail_20' ) start [2024-12-25 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102696', 'tblTempUsageDetail_20' ) end [2024-12-25 22:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:52:23] Production.INFO: ==10671== Releasing lock... [2024-12-25 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:52:23] Production.INFO: 44 MB #Memory Used# [2024-12-25 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:53:04 [end_date_ymd] => 2024-12-25 22:53:04 [RateCDR] => 1 ) [2024-12-25 22: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-25 19:53:04' and `end` < '2024-12-25 22: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-25 22:53:17] Production.INFO: count ==2101 [2024-12-25 22:53:17] Production.ERROR: pbx CDR StartTime 2024-12-25 19:53:04 - End Time 2024-12-25 22:53:04 [2024-12-25 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102701', 'tblTempUsageDetail_20' ) start [2024-12-25 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102701', 'tblTempUsageDetail_20' ) end [2024-12-25 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102701', 'tblTempVendorCDR_20' ) start [2024-12-25 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102701', 'tblTempVendorCDR_20' ) end [2024-12-25 22:53:17] Production.INFO: ProcessCDR(1,14102701,1,1,2) [2024-12-25 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102701', 'tblTempUsageDetail_20' ) start [2024-12-25 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102701', 'tblTempUsageDetail_20' ) end [2024-12-25 22:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:53:21] Production.INFO: ==10751== Releasing lock... [2024-12-25 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:53:21] Production.INFO: 44 MB #Memory Used# [2024-12-25 22:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:54:04 [end_date_ymd] => 2024-12-25 22:54:04 [RateCDR] => 1 ) [2024-12-25 22:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:54:04' and `end` < '2024-12-25 22:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:54:17] Production.INFO: count ==2103 [2024-12-25 22:54:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:54:04 - End Time 2024-12-25 22:54:04 [2024-12-25 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102706', 'tblTempUsageDetail_20' ) start [2024-12-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102706', 'tblTempUsageDetail_20' ) end [2024-12-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102706', 'tblTempVendorCDR_20' ) start [2024-12-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102706', 'tblTempVendorCDR_20' ) end [2024-12-25 22:54:18] Production.INFO: ProcessCDR(1,14102706,1,1,2) [2024-12-25 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102706', 'tblTempUsageDetail_20' ) start [2024-12-25 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102706', 'tblTempUsageDetail_20' ) end [2024-12-25 22:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:54:21] Production.INFO: ==10832== Releasing lock... [2024-12-25 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:54:21] Production.INFO: 44 MB #Memory Used# [2024-12-25 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:55:05 [end_date_ymd] => 2024-12-25 22:55:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:55:05' and `end` < '2024-12-25 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-25 22:55:18] Production.INFO: count ==2107 [2024-12-25 22:55:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:55:05 - End Time 2024-12-25 22:55:05 [2024-12-25 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102711', 'tblTempUsageDetail_20' ) start [2024-12-25 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102711', 'tblTempUsageDetail_20' ) end [2024-12-25 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102711', 'tblTempVendorCDR_20' ) start [2024-12-25 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102711', 'tblTempVendorCDR_20' ) end [2024-12-25 22:55:19] Production.INFO: ProcessCDR(1,14102711,1,1,2) [2024-12-25 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102711', 'tblTempUsageDetail_20' ) start [2024-12-25 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102711', 'tblTempUsageDetail_20' ) end [2024-12-25 22:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:55:22] Production.INFO: ==10911== Releasing lock... [2024-12-25 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:55:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-25 22:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:56:04 [end_date_ymd] => 2024-12-25 22:56:04 [RateCDR] => 1 ) [2024-12-25 22:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:56:04' and `end` < '2024-12-25 22:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:56:17] Production.INFO: count ==2112 [2024-12-25 22:56:17] Production.ERROR: pbx CDR StartTime 2024-12-25 19:56:04 - End Time 2024-12-25 22:56:04 [2024-12-25 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102716', 'tblTempUsageDetail_20' ) start [2024-12-25 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102716', 'tblTempUsageDetail_20' ) end [2024-12-25 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102716', 'tblTempVendorCDR_20' ) start [2024-12-25 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102716', 'tblTempVendorCDR_20' ) end [2024-12-25 22:56:17] Production.INFO: ProcessCDR(1,14102716,1,1,2) [2024-12-25 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102716', 'tblTempUsageDetail_20' ) start [2024-12-25 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102716', 'tblTempUsageDetail_20' ) end [2024-12-25 22:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:56:21] Production.INFO: ==10996== Releasing lock... [2024-12-25 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:56:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-25 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:57:05 [end_date_ymd] => 2024-12-25 22:57:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:57:05' and `end` < '2024-12-25 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-25 22:57:17] Production.INFO: count ==2118 [2024-12-25 22:57:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:57:05 - End Time 2024-12-25 22:57:05 [2024-12-25 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102721', 'tblTempUsageDetail_20' ) start [2024-12-25 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102721', 'tblTempUsageDetail_20' ) end [2024-12-25 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102721', 'tblTempVendorCDR_20' ) start [2024-12-25 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102721', 'tblTempVendorCDR_20' ) end [2024-12-25 22:57:18] Production.INFO: ProcessCDR(1,14102721,1,1,2) [2024-12-25 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102721', 'tblTempUsageDetail_20' ) start [2024-12-25 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102721', 'tblTempUsageDetail_20' ) end [2024-12-25 22:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:57:21] Production.INFO: ==11075== Releasing lock... [2024-12-25 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:57:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-25 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:58:05 [end_date_ymd] => 2024-12-25 22:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 19:58:05' and `end` < '2024-12-25 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-25 22:58:17] Production.INFO: count ==2118 [2024-12-25 22:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 19:58:05 - End Time 2024-12-25 22:58:05 [2024-12-25 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102726', 'tblTempUsageDetail_20' ) start [2024-12-25 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102726', 'tblTempUsageDetail_20' ) end [2024-12-25 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102726', 'tblTempVendorCDR_20' ) start [2024-12-25 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102726', 'tblTempVendorCDR_20' ) end [2024-12-25 22:58:18] Production.INFO: ProcessCDR(1,14102726,1,1,2) [2024-12-25 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102726', 'tblTempUsageDetail_20' ) start [2024-12-25 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102726', 'tblTempUsageDetail_20' ) end [2024-12-25 22:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:58:21] Production.INFO: ==11168== Releasing lock... [2024-12-25 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:58:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-25 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 19:59:05 [end_date_ymd] => 2024-12-25 22:59:05 [RateCDR] => 1 ) [2024-12-25 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 19:59:05' and `end` < '2024-12-25 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 22:59:18] Production.INFO: count ==2120 [2024-12-25 22:59:19] Production.ERROR: pbx CDR StartTime 2024-12-25 19:59:05 - End Time 2024-12-25 22:59:05 [2024-12-25 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102731', 'tblTempUsageDetail_20' ) start [2024-12-25 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102731', 'tblTempUsageDetail_20' ) end [2024-12-25 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102731', 'tblTempVendorCDR_20' ) start [2024-12-25 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102731', 'tblTempVendorCDR_20' ) end [2024-12-25 22:59:19] Production.INFO: ProcessCDR(1,14102731,1,1,2) [2024-12-25 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102731', 'tblTempUsageDetail_20' ) start [2024-12-25 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102731', 'tblTempUsageDetail_20' ) end [2024-12-25 22:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 22:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 22:59:22] Production.INFO: ==11302== Releasing lock... [2024-12-25 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 22:59:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-25 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:00:05 [end_date_ymd] => 2024-12-25 23:00:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:00:05' and `end` < '2024-12-25 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-25 23:00:17] Production.INFO: count ==2148 [2024-12-25 23:00:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:00:05 - End Time 2024-12-25 23:00:05 [2024-12-25 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102737', 'tblTempUsageDetail_20' ) start [2024-12-25 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102737', 'tblTempUsageDetail_20' ) end [2024-12-25 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102737', 'tblTempVendorCDR_20' ) start [2024-12-25 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102737', 'tblTempVendorCDR_20' ) end [2024-12-25 23:00:18] Production.INFO: ProcessCDR(1,14102737,1,1,2) [2024-12-25 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102737', 'tblTempUsageDetail_20' ) start [2024-12-25 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102737', 'tblTempUsageDetail_20' ) end [2024-12-25 23:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:00:23] Production.INFO: ==11413== Releasing lock... [2024-12-25 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:00:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-25 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:01:05 [end_date_ymd] => 2024-12-25 23:01:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:01:05' and `end` < '2024-12-25 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-25 23:01:19] Production.INFO: count ==2109 [2024-12-25 23:01:19] Production.ERROR: pbx CDR StartTime 2024-12-25 20:01:05 - End Time 2024-12-25 23:01:05 [2024-12-25 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102742', 'tblTempUsageDetail_20' ) start [2024-12-25 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102742', 'tblTempUsageDetail_20' ) end [2024-12-25 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102742', 'tblTempVendorCDR_20' ) start [2024-12-25 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102742', 'tblTempVendorCDR_20' ) end [2024-12-25 23:01:19] Production.INFO: ProcessCDR(1,14102742,1,1,2) [2024-12-25 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102742', 'tblTempUsageDetail_20' ) start [2024-12-25 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102742', 'tblTempUsageDetail_20' ) end [2024-12-25 23:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:01:22] Production.INFO: ==11564== Releasing lock... [2024-12-25 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:01:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-25 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:02:05 [end_date_ymd] => 2024-12-25 23:02:05 [RateCDR] => 1 ) [2024-12-25 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:02:05' and `end` < '2024-12-25 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:02:18] Production.INFO: count ==2111 [2024-12-25 23:02:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:02:05 - End Time 2024-12-25 23:02:05 [2024-12-25 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102747', 'tblTempUsageDetail_20' ) start [2024-12-25 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102747', 'tblTempUsageDetail_20' ) end [2024-12-25 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102747', 'tblTempVendorCDR_20' ) start [2024-12-25 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102747', 'tblTempVendorCDR_20' ) end [2024-12-25 23:02:18] Production.INFO: ProcessCDR(1,14102747,1,1,2) [2024-12-25 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102747', 'tblTempUsageDetail_20' ) start [2024-12-25 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102747', 'tblTempUsageDetail_20' ) end [2024-12-25 23:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:02:21] Production.INFO: ==11770== Releasing lock... [2024-12-25 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:02:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-25 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:03:04 [end_date_ymd] => 2024-12-25 23:03:04 [RateCDR] => 1 ) [2024-12-25 23:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:03:04' and `end` < '2024-12-25 23:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:03:17] Production.INFO: count ==2104 [2024-12-25 23:03:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:03:04 - End Time 2024-12-25 23:03:04 [2024-12-25 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102752', 'tblTempUsageDetail_20' ) start [2024-12-25 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102752', 'tblTempUsageDetail_20' ) end [2024-12-25 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102752', 'tblTempVendorCDR_20' ) start [2024-12-25 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102752', 'tblTempVendorCDR_20' ) end [2024-12-25 23:03:18] Production.INFO: ProcessCDR(1,14102752,1,1,2) [2024-12-25 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102752', 'tblTempUsageDetail_20' ) start [2024-12-25 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102752', 'tblTempUsageDetail_20' ) end [2024-12-25 23:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:03:21] Production.INFO: ==11895== Releasing lock... [2024-12-25 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:03:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-25 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:04:05 [end_date_ymd] => 2024-12-25 23:04:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:04:05' and `end` < '2024-12-25 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-25 23:04:18] Production.INFO: count ==2094 [2024-12-25 23:04:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:04:05 - End Time 2024-12-25 23:04:05 [2024-12-25 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102757', 'tblTempUsageDetail_20' ) start [2024-12-25 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102757', 'tblTempUsageDetail_20' ) end [2024-12-25 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102757', 'tblTempVendorCDR_20' ) start [2024-12-25 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102757', 'tblTempVendorCDR_20' ) end [2024-12-25 23:04:18] Production.INFO: ProcessCDR(1,14102757,1,1,2) [2024-12-25 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102757', 'tblTempUsageDetail_20' ) start [2024-12-25 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102757', 'tblTempUsageDetail_20' ) end [2024-12-25 23:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:04:21] Production.INFO: ==11997== Releasing lock... [2024-12-25 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:04:21] Production.INFO: 44 MB #Memory Used# [2024-12-25 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:05:05 [end_date_ymd] => 2024-12-25 23:05:05 [RateCDR] => 1 ) [2024-12-25 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:05:05' and `end` < '2024-12-25 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:05:17] Production.INFO: count ==2083 [2024-12-25 23:05:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:05:05 - End Time 2024-12-25 23:05:05 [2024-12-25 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102762', 'tblTempUsageDetail_20' ) start [2024-12-25 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102762', 'tblTempUsageDetail_20' ) end [2024-12-25 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102762', 'tblTempVendorCDR_20' ) start [2024-12-25 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102762', 'tblTempVendorCDR_20' ) end [2024-12-25 23:05:18] Production.INFO: ProcessCDR(1,14102762,1,1,2) [2024-12-25 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102762', 'tblTempUsageDetail_20' ) start [2024-12-25 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102762', 'tblTempUsageDetail_20' ) end [2024-12-25 23:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:05:21] Production.INFO: ==12245== Releasing lock... [2024-12-25 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:05:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-25 23:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:06:04 [end_date_ymd] => 2024-12-25 23:06:04 [RateCDR] => 1 ) [2024-12-25 23: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-25 20:06:04' and `end` < '2024-12-25 23: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-25 23:06:17] Production.INFO: count ==2068 [2024-12-25 23:06:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:06:04 - End Time 2024-12-25 23:06:04 [2024-12-25 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102767', 'tblTempUsageDetail_20' ) start [2024-12-25 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102767', 'tblTempUsageDetail_20' ) end [2024-12-25 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102767', 'tblTempVendorCDR_20' ) start [2024-12-25 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102767', 'tblTempVendorCDR_20' ) end [2024-12-25 23:06:17] Production.INFO: ProcessCDR(1,14102767,1,1,2) [2024-12-25 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102767', 'tblTempUsageDetail_20' ) start [2024-12-25 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102767', 'tblTempUsageDetail_20' ) end [2024-12-25 23:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:06:21] Production.INFO: ==12362== Releasing lock... [2024-12-25 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:06:21] Production.INFO: 44 MB #Memory Used# [2024-12-25 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:07:05 [end_date_ymd] => 2024-12-25 23:07:05 [RateCDR] => 1 ) [2024-12-25 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:07:05' and `end` < '2024-12-25 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:07:18] Production.INFO: count ==2062 [2024-12-25 23:07:19] Production.ERROR: pbx CDR StartTime 2024-12-25 20:07:05 - End Time 2024-12-25 23:07:05 [2024-12-25 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102772', 'tblTempUsageDetail_20' ) start [2024-12-25 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102772', 'tblTempUsageDetail_20' ) end [2024-12-25 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102772', 'tblTempVendorCDR_20' ) start [2024-12-25 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102772', 'tblTempVendorCDR_20' ) end [2024-12-25 23:07:19] Production.INFO: ProcessCDR(1,14102772,1,1,2) [2024-12-25 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102772', 'tblTempUsageDetail_20' ) start [2024-12-25 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102772', 'tblTempUsageDetail_20' ) end [2024-12-25 23:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:07:22] Production.INFO: ==12503== Releasing lock... [2024-12-25 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:07:22] Production.INFO: 44 MB #Memory Used# [2024-12-25 23:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:08:04 [end_date_ymd] => 2024-12-25 23:08:04 [RateCDR] => 1 ) [2024-12-25 23: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-25 20:08:04' and `end` < '2024-12-25 23: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-25 23:08:16] Production.INFO: count ==2057 [2024-12-25 23:08:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:08:04 - End Time 2024-12-25 23:08:04 [2024-12-25 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102773', 'tblTempUsageDetail_20' ) start [2024-12-25 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102773', 'tblTempUsageDetail_20' ) end [2024-12-25 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102773', 'tblTempVendorCDR_20' ) start [2024-12-25 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102773', 'tblTempVendorCDR_20' ) end [2024-12-25 23:08:17] Production.INFO: ProcessCDR(1,14102773,1,1,2) [2024-12-25 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102773', 'tblTempUsageDetail_20' ) start [2024-12-25 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102773', 'tblTempUsageDetail_20' ) end [2024-12-25 23:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:08:20] Production.INFO: ==12695== Releasing lock... [2024-12-25 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:08:20] Production.INFO: 44 MB #Memory Used# [2024-12-25 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:09:05 [end_date_ymd] => 2024-12-25 23:09:05 [RateCDR] => 1 ) [2024-12-25 23: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-25 20:09:05' and `end` < '2024-12-25 23: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-25 23:09:17] Production.INFO: count ==2066 [2024-12-25 23:09:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:09:05 - End Time 2024-12-25 23:09:05 [2024-12-25 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102782', 'tblTempUsageDetail_20' ) start [2024-12-25 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102782', 'tblTempUsageDetail_20' ) end [2024-12-25 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102782', 'tblTempVendorCDR_20' ) start [2024-12-25 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102782', 'tblTempVendorCDR_20' ) end [2024-12-25 23:09:18] Production.INFO: ProcessCDR(1,14102782,1,1,2) [2024-12-25 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102782', 'tblTempUsageDetail_20' ) start [2024-12-25 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102782', 'tblTempUsageDetail_20' ) end [2024-12-25 23:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:09:21] Production.INFO: ==12824== Releasing lock... [2024-12-25 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:09:21] Production.INFO: 44 MB #Memory Used# [2024-12-25 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:10:05 [end_date_ymd] => 2024-12-25 23:10:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:10:05' and `end` < '2024-12-25 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-25 23:10:18] Production.INFO: count ==2062 [2024-12-25 23:10:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:10:05 - End Time 2024-12-25 23:10:05 [2024-12-25 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102788', 'tblTempUsageDetail_20' ) start [2024-12-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102788', 'tblTempUsageDetail_20' ) end [2024-12-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102788', 'tblTempVendorCDR_20' ) start [2024-12-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102788', 'tblTempVendorCDR_20' ) end [2024-12-25 23:10:19] Production.INFO: ProcessCDR(1,14102788,1,1,2) [2024-12-25 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102788', 'tblTempUsageDetail_20' ) start [2024-12-25 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102788', 'tblTempUsageDetail_20' ) end [2024-12-25 23:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:10:22] Production.INFO: ==12940== Releasing lock... [2024-12-25 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:10:22] Production.INFO: 44 MB #Memory Used# [2024-12-25 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:11:05 [end_date_ymd] => 2024-12-25 23:11:05 [RateCDR] => 1 ) [2024-12-25 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:11:05' and `end` < '2024-12-25 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:11:19] Production.INFO: count ==2033 [2024-12-25 23:11:19] Production.ERROR: pbx CDR StartTime 2024-12-25 20:11:05 - End Time 2024-12-25 23:11:05 [2024-12-25 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102793', 'tblTempUsageDetail_20' ) start [2024-12-25 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102793', 'tblTempUsageDetail_20' ) end [2024-12-25 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102793', 'tblTempVendorCDR_20' ) start [2024-12-25 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102793', 'tblTempVendorCDR_20' ) end [2024-12-25 23:11:19] Production.INFO: ProcessCDR(1,14102793,1,1,2) [2024-12-25 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102793', 'tblTempUsageDetail_20' ) start [2024-12-25 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102793', 'tblTempUsageDetail_20' ) end [2024-12-25 23:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:11:22] Production.INFO: ==13076== Releasing lock... [2024-12-25 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:11:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-25 23:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:12:04 [end_date_ymd] => 2024-12-25 23:12:04 [RateCDR] => 1 ) [2024-12-25 23: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-25 20:12:04' and `end` < '2024-12-25 23: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-25 23:12:17] Production.INFO: count ==2027 [2024-12-25 23:12:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:12:04 - End Time 2024-12-25 23:12:04 [2024-12-25 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102798', 'tblTempUsageDetail_20' ) start [2024-12-25 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102798', 'tblTempUsageDetail_20' ) end [2024-12-25 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102798', 'tblTempVendorCDR_20' ) start [2024-12-25 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102798', 'tblTempVendorCDR_20' ) end [2024-12-25 23:12:17] Production.INFO: ProcessCDR(1,14102798,1,1,2) [2024-12-25 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102798', 'tblTempUsageDetail_20' ) start [2024-12-25 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102798', 'tblTempUsageDetail_20' ) end [2024-12-25 23:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:12:21] Production.INFO: ==13277== Releasing lock... [2024-12-25 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:12:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-25 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:13:05 [end_date_ymd] => 2024-12-25 23:13:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:13:05' and `end` < '2024-12-25 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-25 23:13:18] Production.INFO: count ==2017 [2024-12-25 23:13:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:13:05 - End Time 2024-12-25 23:13:05 [2024-12-25 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102803', 'tblTempUsageDetail_20' ) start [2024-12-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102803', 'tblTempUsageDetail_20' ) end [2024-12-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102803', 'tblTempVendorCDR_20' ) start [2024-12-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102803', 'tblTempVendorCDR_20' ) end [2024-12-25 23:13:18] Production.INFO: ProcessCDR(1,14102803,1,1,2) [2024-12-25 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102803', 'tblTempUsageDetail_20' ) start [2024-12-25 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102803', 'tblTempUsageDetail_20' ) end [2024-12-25 23:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:13:22] Production.INFO: ==13397== Releasing lock... [2024-12-25 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:13:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-25 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:14:05 [end_date_ymd] => 2024-12-25 23:14:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:14:05' and `end` < '2024-12-25 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-25 23:14:18] Production.INFO: count ==2001 [2024-12-25 23:14:19] Production.ERROR: pbx CDR StartTime 2024-12-25 20:14:05 - End Time 2024-12-25 23:14:05 [2024-12-25 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102808', 'tblTempUsageDetail_20' ) start [2024-12-25 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102808', 'tblTempUsageDetail_20' ) end [2024-12-25 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102808', 'tblTempVendorCDR_20' ) start [2024-12-25 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102808', 'tblTempVendorCDR_20' ) end [2024-12-25 23:14:19] Production.INFO: ProcessCDR(1,14102808,1,1,2) [2024-12-25 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102808', 'tblTempUsageDetail_20' ) start [2024-12-25 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102808', 'tblTempUsageDetail_20' ) end [2024-12-25 23:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:14:22] Production.INFO: ==13511== Releasing lock... [2024-12-25 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:14:22] Production.INFO: 44 MB #Memory Used# [2024-12-25 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:15:05 [end_date_ymd] => 2024-12-25 23:15:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:15:05' and `end` < '2024-12-25 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-25 23:15:17] Production.INFO: count ==1985 [2024-12-25 23:15:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:15:05 - End Time 2024-12-25 23:15:05 [2024-12-25 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102813', 'tblTempUsageDetail_20' ) start [2024-12-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102813', 'tblTempUsageDetail_20' ) end [2024-12-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102813', 'tblTempVendorCDR_20' ) start [2024-12-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102813', 'tblTempVendorCDR_20' ) end [2024-12-25 23:15:18] Production.INFO: ProcessCDR(1,14102813,1,1,2) [2024-12-25 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102813', 'tblTempUsageDetail_20' ) start [2024-12-25 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102813', 'tblTempUsageDetail_20' ) end [2024-12-25 23:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:15:21] Production.INFO: ==13713== Releasing lock... [2024-12-25 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:15:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-25 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:16:05 [end_date_ymd] => 2024-12-25 23:16:05 [RateCDR] => 1 ) [2024-12-25 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:16:05' and `end` < '2024-12-25 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:16:17] Production.INFO: count ==1964 [2024-12-25 23:16:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:16:05 - End Time 2024-12-25 23:16:05 [2024-12-25 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102818', 'tblTempUsageDetail_20' ) start [2024-12-25 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102818', 'tblTempUsageDetail_20' ) end [2024-12-25 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102818', 'tblTempVendorCDR_20' ) start [2024-12-25 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102818', 'tblTempVendorCDR_20' ) end [2024-12-25 23:16:18] Production.INFO: ProcessCDR(1,14102818,1,1,2) [2024-12-25 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102818', 'tblTempUsageDetail_20' ) start [2024-12-25 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102818', 'tblTempUsageDetail_20' ) end [2024-12-25 23:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:16:21] Production.INFO: ==13809== Releasing lock... [2024-12-25 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:16:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-25 23:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:17:04 [end_date_ymd] => 2024-12-25 23:17:04 [RateCDR] => 1 ) [2024-12-25 23: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-25 20:17:04' and `end` < '2024-12-25 23: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-25 23:17:17] Production.INFO: count ==1957 [2024-12-25 23:17:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:17:04 - End Time 2024-12-25 23:17:04 [2024-12-25 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102823', 'tblTempUsageDetail_20' ) start [2024-12-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102823', 'tblTempUsageDetail_20' ) end [2024-12-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102823', 'tblTempVendorCDR_20' ) start [2024-12-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102823', 'tblTempVendorCDR_20' ) end [2024-12-25 23:17:18] Production.INFO: ProcessCDR(1,14102823,1,1,2) [2024-12-25 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102823', 'tblTempUsageDetail_20' ) start [2024-12-25 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102823', 'tblTempUsageDetail_20' ) end [2024-12-25 23:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:17:21] Production.INFO: ==13897== Releasing lock... [2024-12-25 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:17:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-25 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:18:05 [end_date_ymd] => 2024-12-25 23:18:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:18:05' and `end` < '2024-12-25 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-25 23:18:17] Production.INFO: count ==1956 [2024-12-25 23:18:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:18:05 - End Time 2024-12-25 23:18:05 [2024-12-25 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102828', 'tblTempUsageDetail_20' ) start [2024-12-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102828', 'tblTempUsageDetail_20' ) end [2024-12-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102828', 'tblTempVendorCDR_20' ) start [2024-12-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102828', 'tblTempVendorCDR_20' ) end [2024-12-25 23:18:18] Production.INFO: ProcessCDR(1,14102828,1,1,2) [2024-12-25 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102828', 'tblTempUsageDetail_20' ) start [2024-12-25 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102828', 'tblTempUsageDetail_20' ) end [2024-12-25 23:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:18:21] Production.INFO: ==13985== Releasing lock... [2024-12-25 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:18:21] Production.INFO: 43 MB #Memory Used# [2024-12-25 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:19:05 [end_date_ymd] => 2024-12-25 23:19:05 [RateCDR] => 1 ) [2024-12-25 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:19:05' and `end` < '2024-12-25 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:19:18] Production.INFO: count ==1955 [2024-12-25 23:19:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:19:05 - End Time 2024-12-25 23:19:05 [2024-12-25 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102833', 'tblTempUsageDetail_20' ) start [2024-12-25 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102833', 'tblTempUsageDetail_20' ) end [2024-12-25 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102833', 'tblTempVendorCDR_20' ) start [2024-12-25 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102833', 'tblTempVendorCDR_20' ) end [2024-12-25 23:19:18] Production.INFO: ProcessCDR(1,14102833,1,1,2) [2024-12-25 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102833', 'tblTempUsageDetail_20' ) start [2024-12-25 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102833', 'tblTempUsageDetail_20' ) end [2024-12-25 23:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:19:21] Production.INFO: ==14062== Releasing lock... [2024-12-25 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:19:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-25 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:20:05 [end_date_ymd] => 2024-12-25 23:20:05 [RateCDR] => 1 ) [2024-12-25 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:20:05' and `end` < '2024-12-25 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:20:18] Production.INFO: count ==1956 [2024-12-25 23:20:19] Production.ERROR: pbx CDR StartTime 2024-12-25 20:20:05 - End Time 2024-12-25 23:20:05 [2024-12-25 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102839', 'tblTempUsageDetail_20' ) start [2024-12-25 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102839', 'tblTempUsageDetail_20' ) end [2024-12-25 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102839', 'tblTempVendorCDR_20' ) start [2024-12-25 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102839', 'tblTempVendorCDR_20' ) end [2024-12-25 23:20:19] Production.INFO: ProcessCDR(1,14102839,1,1,2) [2024-12-25 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102839', 'tblTempUsageDetail_20' ) start [2024-12-25 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102839', 'tblTempUsageDetail_20' ) end [2024-12-25 23:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:20:22] Production.INFO: ==14142== Releasing lock... [2024-12-25 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:20:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-25 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:21:05 [end_date_ymd] => 2024-12-25 23:21:05 [RateCDR] => 1 ) [2024-12-25 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:21:05' and `end` < '2024-12-25 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:21:17] Production.INFO: count ==1960 [2024-12-25 23:21:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:21:05 - End Time 2024-12-25 23:21:05 [2024-12-25 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102844', 'tblTempUsageDetail_20' ) start [2024-12-25 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102844', 'tblTempUsageDetail_20' ) end [2024-12-25 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102844', 'tblTempVendorCDR_20' ) start [2024-12-25 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102844', 'tblTempVendorCDR_20' ) end [2024-12-25 23:21:18] Production.INFO: ProcessCDR(1,14102844,1,1,2) [2024-12-25 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102844', 'tblTempUsageDetail_20' ) start [2024-12-25 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102844', 'tblTempUsageDetail_20' ) end [2024-12-25 23:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:21:21] Production.INFO: ==14262== Releasing lock... [2024-12-25 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:21:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-25 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:22:04 [end_date_ymd] => 2024-12-25 23:22:04 [RateCDR] => 1 ) [2024-12-25 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-25 20:22:04' and `end` < '2024-12-25 23: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-25 23:22:18] Production.INFO: count ==1961 [2024-12-25 23:22:19] Production.ERROR: pbx CDR StartTime 2024-12-25 20:22:04 - End Time 2024-12-25 23:22:04 [2024-12-25 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102849', 'tblTempUsageDetail_20' ) start [2024-12-25 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102849', 'tblTempUsageDetail_20' ) end [2024-12-25 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102849', 'tblTempVendorCDR_20' ) start [2024-12-25 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102849', 'tblTempVendorCDR_20' ) end [2024-12-25 23:22:19] Production.INFO: ProcessCDR(1,14102849,1,1,2) [2024-12-25 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102849', 'tblTempUsageDetail_20' ) start [2024-12-25 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102849', 'tblTempUsageDetail_20' ) end [2024-12-25 23:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:22:22] Production.INFO: ==14341== Releasing lock... [2024-12-25 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:22:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-25 23:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:23:04 [end_date_ymd] => 2024-12-25 23:23:04 [RateCDR] => 1 ) [2024-12-25 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-25 20:23:04' and `end` < '2024-12-25 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-25 23:23:18] Production.INFO: count ==1960 [2024-12-25 23:23:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:23:04 - End Time 2024-12-25 23:23:04 [2024-12-25 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102854', 'tblTempUsageDetail_20' ) start [2024-12-25 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102854', 'tblTempUsageDetail_20' ) end [2024-12-25 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102854', 'tblTempVendorCDR_20' ) start [2024-12-25 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102854', 'tblTempVendorCDR_20' ) end [2024-12-25 23:23:18] Production.INFO: ProcessCDR(1,14102854,1,1,2) [2024-12-25 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102854', 'tblTempUsageDetail_20' ) start [2024-12-25 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102854', 'tblTempUsageDetail_20' ) end [2024-12-25 23:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:23:21] Production.INFO: ==14420== Releasing lock... [2024-12-25 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:23:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-25 23:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:24:04 [end_date_ymd] => 2024-12-25 23:24:04 [RateCDR] => 1 ) [2024-12-25 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-25 20:24:04' and `end` < '2024-12-25 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-25 23:24:17] Production.INFO: count ==1960 [2024-12-25 23:24:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:24:04 - End Time 2024-12-25 23:24:04 [2024-12-25 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102859', 'tblTempUsageDetail_20' ) start [2024-12-25 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102859', 'tblTempUsageDetail_20' ) end [2024-12-25 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102859', 'tblTempVendorCDR_20' ) start [2024-12-25 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102859', 'tblTempVendorCDR_20' ) end [2024-12-25 23:24:17] Production.INFO: ProcessCDR(1,14102859,1,1,2) [2024-12-25 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102859', 'tblTempUsageDetail_20' ) start [2024-12-25 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102859', 'tblTempUsageDetail_20' ) end [2024-12-25 23:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:24:20] Production.INFO: ==14496== Releasing lock... [2024-12-25 23:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:24:20] Production.INFO: 43.25 MB #Memory Used# [2024-12-25 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:25:05 [end_date_ymd] => 2024-12-25 23:25:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:25:05' and `end` < '2024-12-25 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-25 23:25:17] Production.INFO: count ==1947 [2024-12-25 23:25:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:25:05 - End Time 2024-12-25 23:25:05 [2024-12-25 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102864', 'tblTempUsageDetail_20' ) start [2024-12-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102864', 'tblTempUsageDetail_20' ) end [2024-12-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102864', 'tblTempVendorCDR_20' ) start [2024-12-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102864', 'tblTempVendorCDR_20' ) end [2024-12-25 23:25:18] Production.INFO: ProcessCDR(1,14102864,1,1,2) [2024-12-25 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102864', 'tblTempUsageDetail_20' ) start [2024-12-25 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102864', 'tblTempUsageDetail_20' ) end [2024-12-25 23:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:25:21] Production.INFO: ==14578== Releasing lock... [2024-12-25 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:25:21] Production.INFO: 43 MB #Memory Used# [2024-12-25 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:26:05 [end_date_ymd] => 2024-12-25 23:26:05 [RateCDR] => 1 ) [2024-12-25 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:26:05' and `end` < '2024-12-25 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:26:18] Production.INFO: count ==1940 [2024-12-25 23:26:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:26:05 - End Time 2024-12-25 23:26:05 [2024-12-25 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102869', 'tblTempUsageDetail_20' ) start [2024-12-25 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102869', 'tblTempUsageDetail_20' ) end [2024-12-25 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102869', 'tblTempVendorCDR_20' ) start [2024-12-25 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102869', 'tblTempVendorCDR_20' ) end [2024-12-25 23:26:19] Production.INFO: ProcessCDR(1,14102869,1,1,2) [2024-12-25 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102869', 'tblTempUsageDetail_20' ) start [2024-12-25 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102869', 'tblTempUsageDetail_20' ) end [2024-12-25 23:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:26:22] Production.INFO: ==14653== Releasing lock... [2024-12-25 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:26:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-25 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:27:04 [end_date_ymd] => 2024-12-25 23:27:04 [RateCDR] => 1 ) [2024-12-25 23: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-25 20:27:04' and `end` < '2024-12-25 23: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-25 23:27:17] Production.INFO: count ==1927 [2024-12-25 23:27:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:27:04 - End Time 2024-12-25 23:27:04 [2024-12-25 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102874', 'tblTempUsageDetail_20' ) start [2024-12-25 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102874', 'tblTempUsageDetail_20' ) end [2024-12-25 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102874', 'tblTempVendorCDR_20' ) start [2024-12-25 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102874', 'tblTempVendorCDR_20' ) end [2024-12-25 23:27:17] Production.INFO: ProcessCDR(1,14102874,1,1,2) [2024-12-25 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102874', 'tblTempUsageDetail_20' ) start [2024-12-25 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102874', 'tblTempUsageDetail_20' ) end [2024-12-25 23:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:27:20] Production.INFO: ==14731== Releasing lock... [2024-12-25 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:27:20] Production.INFO: 43 MB #Memory Used# [2024-12-25 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:28:05 [end_date_ymd] => 2024-12-25 23:28:05 [RateCDR] => 1 ) [2024-12-25 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:28:05' and `end` < '2024-12-25 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:28:17] Production.INFO: count ==1916 [2024-12-25 23:28:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:28:05 - End Time 2024-12-25 23:28:05 [2024-12-25 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102879', 'tblTempUsageDetail_20' ) start [2024-12-25 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102879', 'tblTempUsageDetail_20' ) end [2024-12-25 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102879', 'tblTempVendorCDR_20' ) start [2024-12-25 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102879', 'tblTempVendorCDR_20' ) end [2024-12-25 23:28:18] Production.INFO: ProcessCDR(1,14102879,1,1,2) [2024-12-25 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102879', 'tblTempUsageDetail_20' ) start [2024-12-25 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102879', 'tblTempUsageDetail_20' ) end [2024-12-25 23:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:28:22] Production.INFO: ==14814== Releasing lock... [2024-12-25 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:28:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:29:05 [end_date_ymd] => 2024-12-25 23:29:05 [RateCDR] => 1 ) [2024-12-25 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:29:05' and `end` < '2024-12-25 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:29:18] Production.INFO: count ==1926 [2024-12-25 23:29:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:29:05 - End Time 2024-12-25 23:29:05 [2024-12-25 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102884', 'tblTempUsageDetail_20' ) start [2024-12-25 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102884', 'tblTempUsageDetail_20' ) end [2024-12-25 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102884', 'tblTempVendorCDR_20' ) start [2024-12-25 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102884', 'tblTempVendorCDR_20' ) end [2024-12-25 23:29:18] Production.INFO: ProcessCDR(1,14102884,1,1,2) [2024-12-25 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102884', 'tblTempUsageDetail_20' ) start [2024-12-25 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102884', 'tblTempUsageDetail_20' ) end [2024-12-25 23:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:29:23] Production.INFO: ==14889== Releasing lock... [2024-12-25 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:29:23] Production.INFO: 43 MB #Memory Used# [2024-12-25 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:30:05 [end_date_ymd] => 2024-12-25 23:30:05 [RateCDR] => 1 ) [2024-12-25 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:30:05' and `end` < '2024-12-25 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:30:17] Production.INFO: count ==1914 [2024-12-25 23:30:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:30:05 - End Time 2024-12-25 23:30:05 [2024-12-25 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102888', 'tblTempUsageDetail_20' ) start [2024-12-25 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102888', 'tblTempUsageDetail_20' ) end [2024-12-25 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102888', 'tblTempVendorCDR_20' ) start [2024-12-25 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102888', 'tblTempVendorCDR_20' ) end [2024-12-25 23:30:18] Production.INFO: ProcessCDR(1,14102888,1,1,2) [2024-12-25 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102888', 'tblTempUsageDetail_20' ) start [2024-12-25 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102888', 'tblTempUsageDetail_20' ) end [2024-12-25 23:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:30:21] Production.INFO: ==14969== Releasing lock... [2024-12-25 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:30:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-25 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:31:05 [end_date_ymd] => 2024-12-25 23:31:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:31:05' and `end` < '2024-12-25 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-25 23:31:17] Production.INFO: count ==1867 [2024-12-25 23:31:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:31:05 - End Time 2024-12-25 23:31:05 [2024-12-25 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102895', 'tblTempUsageDetail_20' ) start [2024-12-25 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102895', 'tblTempUsageDetail_20' ) end [2024-12-25 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102895', 'tblTempVendorCDR_20' ) start [2024-12-25 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102895', 'tblTempVendorCDR_20' ) end [2024-12-25 23:31:17] Production.INFO: ProcessCDR(1,14102895,1,1,2) [2024-12-25 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102895', 'tblTempUsageDetail_20' ) start [2024-12-25 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102895', 'tblTempUsageDetail_20' ) end [2024-12-25 23:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:31:22] Production.INFO: ==15051== Releasing lock... [2024-12-25 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:31:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-25 23:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:32:04 [end_date_ymd] => 2024-12-25 23:32:04 [RateCDR] => 1 ) [2024-12-25 23: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-25 20:32:04' and `end` < '2024-12-25 23: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-25 23:32:17] Production.INFO: count ==1855 [2024-12-25 23:32:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:32:04 - End Time 2024-12-25 23:32:04 [2024-12-25 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102900', 'tblTempUsageDetail_20' ) start [2024-12-25 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102900', 'tblTempUsageDetail_20' ) end [2024-12-25 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102900', 'tblTempVendorCDR_20' ) start [2024-12-25 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102900', 'tblTempVendorCDR_20' ) end [2024-12-25 23:32:17] Production.INFO: ProcessCDR(1,14102900,1,1,2) [2024-12-25 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102900', 'tblTempUsageDetail_20' ) start [2024-12-25 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102900', 'tblTempUsageDetail_20' ) end [2024-12-25 23:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:32:20] Production.INFO: ==15130== Releasing lock... [2024-12-25 23:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:32:20] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:33:05 [end_date_ymd] => 2024-12-25 23:33:05 [RateCDR] => 1 ) [2024-12-25 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:33:05' and `end` < '2024-12-25 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:33:17] Production.INFO: count ==1855 [2024-12-25 23:33:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:33:05 - End Time 2024-12-25 23:33:05 [2024-12-25 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102905', 'tblTempUsageDetail_20' ) start [2024-12-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102905', 'tblTempUsageDetail_20' ) end [2024-12-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102905', 'tblTempVendorCDR_20' ) start [2024-12-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102905', 'tblTempVendorCDR_20' ) end [2024-12-25 23:33:18] Production.INFO: ProcessCDR(1,14102905,1,1,2) [2024-12-25 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102905', 'tblTempUsageDetail_20' ) start [2024-12-25 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102905', 'tblTempUsageDetail_20' ) end [2024-12-25 23:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:33:21] Production.INFO: ==15206== Releasing lock... [2024-12-25 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:33:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-25 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:34:04 [end_date_ymd] => 2024-12-25 23:34:04 [RateCDR] => 1 ) [2024-12-25 23: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-25 20:34:04' and `end` < '2024-12-25 23: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-25 23:34:18] Production.INFO: count ==1847 [2024-12-25 23:34:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:34:04 - End Time 2024-12-25 23:34:04 [2024-12-25 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102910', 'tblTempUsageDetail_20' ) start [2024-12-25 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102910', 'tblTempUsageDetail_20' ) end [2024-12-25 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102910', 'tblTempVendorCDR_20' ) start [2024-12-25 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102910', 'tblTempVendorCDR_20' ) end [2024-12-25 23:34:18] Production.INFO: ProcessCDR(1,14102910,1,1,2) [2024-12-25 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102910', 'tblTempUsageDetail_20' ) start [2024-12-25 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102910', 'tblTempUsageDetail_20' ) end [2024-12-25 23:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:34:21] Production.INFO: ==15279== Releasing lock... [2024-12-25 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:34:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-25 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:35:05 [end_date_ymd] => 2024-12-25 23:35:05 [RateCDR] => 1 ) [2024-12-25 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:35:05' and `end` < '2024-12-25 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:35:18] Production.INFO: count ==1844 [2024-12-25 23:35:19] Production.ERROR: pbx CDR StartTime 2024-12-25 20:35:05 - End Time 2024-12-25 23:35:05 [2024-12-25 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102915', 'tblTempUsageDetail_20' ) start [2024-12-25 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102915', 'tblTempUsageDetail_20' ) end [2024-12-25 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102915', 'tblTempVendorCDR_20' ) start [2024-12-25 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102915', 'tblTempVendorCDR_20' ) end [2024-12-25 23:35:19] Production.INFO: ProcessCDR(1,14102915,1,1,2) [2024-12-25 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102915', 'tblTempUsageDetail_20' ) start [2024-12-25 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102915', 'tblTempUsageDetail_20' ) end [2024-12-25 23:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:35:22] Production.INFO: ==15358== Releasing lock... [2024-12-25 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:35:22] Production.INFO: 42 MB #Memory Used# [2024-12-25 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:36:05 [end_date_ymd] => 2024-12-25 23:36:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:36:05' and `end` < '2024-12-25 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-25 23:36:18] Production.INFO: count ==1839 [2024-12-25 23:36:19] Production.ERROR: pbx CDR StartTime 2024-12-25 20:36:05 - End Time 2024-12-25 23:36:05 [2024-12-25 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102920', 'tblTempUsageDetail_20' ) start [2024-12-25 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102920', 'tblTempUsageDetail_20' ) end [2024-12-25 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102920', 'tblTempVendorCDR_20' ) start [2024-12-25 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102920', 'tblTempVendorCDR_20' ) end [2024-12-25 23:36:19] Production.INFO: ProcessCDR(1,14102920,1,1,2) [2024-12-25 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102920', 'tblTempUsageDetail_20' ) start [2024-12-25 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102920', 'tblTempUsageDetail_20' ) end [2024-12-25 23:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:36:22] Production.INFO: ==15436== Releasing lock... [2024-12-25 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:36:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-25 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:37:04 [end_date_ymd] => 2024-12-25 23:37:04 [RateCDR] => 1 ) [2024-12-25 23:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:37:04' and `end` < '2024-12-25 23:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:37:17] Production.INFO: count ==1831 [2024-12-25 23:37:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:37:04 - End Time 2024-12-25 23:37:04 [2024-12-25 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102925', 'tblTempUsageDetail_20' ) start [2024-12-25 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102925', 'tblTempUsageDetail_20' ) end [2024-12-25 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102925', 'tblTempVendorCDR_20' ) start [2024-12-25 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102925', 'tblTempVendorCDR_20' ) end [2024-12-25 23:37:17] Production.INFO: ProcessCDR(1,14102925,1,1,2) [2024-12-25 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102925', 'tblTempUsageDetail_20' ) start [2024-12-25 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102925', 'tblTempUsageDetail_20' ) end [2024-12-25 23:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:37:20] Production.INFO: ==15552== Releasing lock... [2024-12-25 23:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:37:20] Production.INFO: 42.25 MB #Memory Used# [2024-12-25 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:38:05 [end_date_ymd] => 2024-12-25 23:38:05 [RateCDR] => 1 ) [2024-12-25 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:38:05' and `end` < '2024-12-25 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:38:17] Production.INFO: count ==1830 [2024-12-25 23:38:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:38:05 - End Time 2024-12-25 23:38:05 [2024-12-25 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102930', 'tblTempUsageDetail_20' ) start [2024-12-25 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102930', 'tblTempUsageDetail_20' ) end [2024-12-25 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102930', 'tblTempVendorCDR_20' ) start [2024-12-25 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102930', 'tblTempVendorCDR_20' ) end [2024-12-25 23:38:18] Production.INFO: ProcessCDR(1,14102930,1,1,2) [2024-12-25 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102930', 'tblTempUsageDetail_20' ) start [2024-12-25 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102930', 'tblTempUsageDetail_20' ) end [2024-12-25 23:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:38:21] Production.INFO: ==15636== Releasing lock... [2024-12-25 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:38:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-25 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:39:04 [end_date_ymd] => 2024-12-25 23:39:04 [RateCDR] => 1 ) [2024-12-25 23: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-25 20:39:04' and `end` < '2024-12-25 23: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-25 23:39:16] Production.INFO: count ==1831 [2024-12-25 23:39:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:39:04 - End Time 2024-12-25 23:39:04 [2024-12-25 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102935', 'tblTempUsageDetail_20' ) start [2024-12-25 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102935', 'tblTempUsageDetail_20' ) end [2024-12-25 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102935', 'tblTempVendorCDR_20' ) start [2024-12-25 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102935', 'tblTempVendorCDR_20' ) end [2024-12-25 23:39:17] Production.INFO: ProcessCDR(1,14102935,1,1,2) [2024-12-25 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102935', 'tblTempUsageDetail_20' ) start [2024-12-25 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102935', 'tblTempUsageDetail_20' ) end [2024-12-25 23:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:39:20] Production.INFO: ==15714== Releasing lock... [2024-12-25 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:39:20] Production.INFO: 42 MB #Memory Used# [2024-12-25 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:40:05 [end_date_ymd] => 2024-12-25 23:40:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:40:05' and `end` < '2024-12-25 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-25 23:40:18] Production.INFO: count ==1831 [2024-12-25 23:40:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:40:05 - End Time 2024-12-25 23:40:05 [2024-12-25 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102940', 'tblTempUsageDetail_20' ) start [2024-12-25 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102940', 'tblTempUsageDetail_20' ) end [2024-12-25 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102940', 'tblTempVendorCDR_20' ) start [2024-12-25 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102940', 'tblTempVendorCDR_20' ) end [2024-12-25 23:40:18] Production.INFO: ProcessCDR(1,14102940,1,1,2) [2024-12-25 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102940', 'tblTempUsageDetail_20' ) start [2024-12-25 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102940', 'tblTempUsageDetail_20' ) end [2024-12-25 23:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:40:21] Production.INFO: ==15790== Releasing lock... [2024-12-25 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:40:21] Production.INFO: 42 MB #Memory Used# [2024-12-25 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:41:04 [end_date_ymd] => 2024-12-25 23:41:04 [RateCDR] => 1 ) [2024-12-25 23: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-25 20:41:04' and `end` < '2024-12-25 23: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-25 23:41:19] Production.INFO: count ==1829 [2024-12-25 23:41:19] Production.ERROR: pbx CDR StartTime 2024-12-25 20:41:04 - End Time 2024-12-25 23:41:04 [2024-12-25 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102946', 'tblTempUsageDetail_20' ) start [2024-12-25 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102946', 'tblTempUsageDetail_20' ) end [2024-12-25 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102946', 'tblTempVendorCDR_20' ) start [2024-12-25 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102946', 'tblTempVendorCDR_20' ) end [2024-12-25 23:41:19] Production.INFO: ProcessCDR(1,14102946,1,1,2) [2024-12-25 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102946', 'tblTempUsageDetail_20' ) start [2024-12-25 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102946', 'tblTempUsageDetail_20' ) end [2024-12-25 23:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:41:22] Production.INFO: ==15868== Releasing lock... [2024-12-25 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:41:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-25 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:42:05 [end_date_ymd] => 2024-12-25 23:42:05 [RateCDR] => 1 ) [2024-12-25 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:42:05' and `end` < '2024-12-25 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:42:17] Production.INFO: count ==1829 [2024-12-25 23:42:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:42:05 - End Time 2024-12-25 23:42:05 [2024-12-25 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102951', 'tblTempUsageDetail_20' ) start [2024-12-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102951', 'tblTempUsageDetail_20' ) end [2024-12-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102951', 'tblTempVendorCDR_20' ) start [2024-12-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102951', 'tblTempVendorCDR_20' ) end [2024-12-25 23:42:18] Production.INFO: ProcessCDR(1,14102951,1,1,2) [2024-12-25 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102951', 'tblTempUsageDetail_20' ) start [2024-12-25 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102951', 'tblTempUsageDetail_20' ) end [2024-12-25 23:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:42:21] Production.INFO: ==15947== Releasing lock... [2024-12-25 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:42:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-25 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:43:05 [end_date_ymd] => 2024-12-25 23:43:05 [RateCDR] => 1 ) [2024-12-25 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:43:05' and `end` < '2024-12-25 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:43:19] Production.INFO: count ==1814 [2024-12-25 23:43:19] Production.ERROR: pbx CDR StartTime 2024-12-25 20:43:05 - End Time 2024-12-25 23:43:05 [2024-12-25 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102956', 'tblTempUsageDetail_20' ) start [2024-12-25 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102956', 'tblTempUsageDetail_20' ) end [2024-12-25 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102956', 'tblTempVendorCDR_20' ) start [2024-12-25 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102956', 'tblTempVendorCDR_20' ) end [2024-12-25 23:43:19] Production.INFO: ProcessCDR(1,14102956,1,1,2) [2024-12-25 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102956', 'tblTempUsageDetail_20' ) start [2024-12-25 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102956', 'tblTempUsageDetail_20' ) end [2024-12-25 23:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:43:22] Production.INFO: ==16023== Releasing lock... [2024-12-25 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:43:22] Production.INFO: 42 MB #Memory Used# [2024-12-25 23:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:44:04 [end_date_ymd] => 2024-12-25 23:44:04 [RateCDR] => 1 ) [2024-12-25 23: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-25 20:44:04' and `end` < '2024-12-25 23: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-25 23:44:18] Production.INFO: count ==1807 [2024-12-25 23:44:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:44:04 - End Time 2024-12-25 23:44:04 [2024-12-25 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102961', 'tblTempUsageDetail_20' ) start [2024-12-25 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102961', 'tblTempUsageDetail_20' ) end [2024-12-25 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102961', 'tblTempVendorCDR_20' ) start [2024-12-25 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102961', 'tblTempVendorCDR_20' ) end [2024-12-25 23:44:18] Production.INFO: ProcessCDR(1,14102961,1,1,2) [2024-12-25 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102961', 'tblTempUsageDetail_20' ) start [2024-12-25 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102961', 'tblTempUsageDetail_20' ) end [2024-12-25 23:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:44:21] Production.INFO: ==16104== Releasing lock... [2024-12-25 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:44:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:45:05 [end_date_ymd] => 2024-12-25 23:45:05 [RateCDR] => 1 ) [2024-12-25 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:45:05' and `end` < '2024-12-25 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:45:17] Production.INFO: count ==1804 [2024-12-25 23:45:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:45:05 - End Time 2024-12-25 23:45:05 [2024-12-25 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102966', 'tblTempUsageDetail_20' ) start [2024-12-25 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102966', 'tblTempUsageDetail_20' ) end [2024-12-25 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102966', 'tblTempVendorCDR_20' ) start [2024-12-25 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102966', 'tblTempVendorCDR_20' ) end [2024-12-25 23:45:18] Production.INFO: ProcessCDR(1,14102966,1,1,2) [2024-12-25 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102966', 'tblTempUsageDetail_20' ) start [2024-12-25 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102966', 'tblTempUsageDetail_20' ) end [2024-12-25 23:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:45:21] Production.INFO: ==16183== Releasing lock... [2024-12-25 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:45:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 23:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:46:04 [end_date_ymd] => 2024-12-25 23:46:04 [RateCDR] => 1 ) [2024-12-25 23: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-25 20:46:04' and `end` < '2024-12-25 23: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-25 23:46:17] Production.INFO: count ==1802 [2024-12-25 23:46:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:46:04 - End Time 2024-12-25 23:46:04 [2024-12-25 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102971', 'tblTempUsageDetail_20' ) start [2024-12-25 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102971', 'tblTempUsageDetail_20' ) end [2024-12-25 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102971', 'tblTempVendorCDR_20' ) start [2024-12-25 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102971', 'tblTempVendorCDR_20' ) end [2024-12-25 23:46:17] Production.INFO: ProcessCDR(1,14102971,1,1,2) [2024-12-25 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102971', 'tblTempUsageDetail_20' ) start [2024-12-25 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102971', 'tblTempUsageDetail_20' ) end [2024-12-25 23:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:46:20] Production.INFO: ==16261== Releasing lock... [2024-12-25 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:46:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:47:05 [end_date_ymd] => 2024-12-25 23:47:05 [RateCDR] => 1 ) [2024-12-25 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:47:05' and `end` < '2024-12-25 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:47:17] Production.INFO: count ==1799 [2024-12-25 23:47:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:47:05 - End Time 2024-12-25 23:47:05 [2024-12-25 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102976', 'tblTempUsageDetail_20' ) start [2024-12-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102976', 'tblTempUsageDetail_20' ) end [2024-12-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102976', 'tblTempVendorCDR_20' ) start [2024-12-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102976', 'tblTempVendorCDR_20' ) end [2024-12-25 23:47:18] Production.INFO: ProcessCDR(1,14102976,1,1,2) [2024-12-25 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102976', 'tblTempUsageDetail_20' ) start [2024-12-25 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102976', 'tblTempUsageDetail_20' ) end [2024-12-25 23:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:47:21] Production.INFO: ==16348== Releasing lock... [2024-12-25 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:47:21] Production.INFO: 42 MB #Memory Used# [2024-12-25 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:48:05 [end_date_ymd] => 2024-12-25 23:48:05 [RateCDR] => 1 ) [2024-12-25 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:48:05' and `end` < '2024-12-25 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:48:18] Production.INFO: count ==1794 [2024-12-25 23:48:19] Production.ERROR: pbx CDR StartTime 2024-12-25 20:48:05 - End Time 2024-12-25 23:48:05 [2024-12-25 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102981', 'tblTempUsageDetail_20' ) start [2024-12-25 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102981', 'tblTempUsageDetail_20' ) end [2024-12-25 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102981', 'tblTempVendorCDR_20' ) start [2024-12-25 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102981', 'tblTempVendorCDR_20' ) end [2024-12-25 23:48:19] Production.INFO: ProcessCDR(1,14102981,1,1,2) [2024-12-25 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102981', 'tblTempUsageDetail_20' ) start [2024-12-25 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102981', 'tblTempUsageDetail_20' ) end [2024-12-25 23:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:48:22] Production.INFO: ==16424== Releasing lock... [2024-12-25 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:48:22] Production.INFO: 42 MB #Memory Used# [2024-12-25 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:49:05 [end_date_ymd] => 2024-12-25 23:49:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:49:05' and `end` < '2024-12-25 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-25 23:49:17] Production.INFO: count ==1780 [2024-12-25 23:49:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:49:05 - End Time 2024-12-25 23:49:05 [2024-12-25 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102986', 'tblTempUsageDetail_20' ) start [2024-12-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102986', 'tblTempUsageDetail_20' ) end [2024-12-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102986', 'tblTempVendorCDR_20' ) start [2024-12-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102986', 'tblTempVendorCDR_20' ) end [2024-12-25 23:49:18] Production.INFO: ProcessCDR(1,14102986,1,1,2) [2024-12-25 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102986', 'tblTempUsageDetail_20' ) start [2024-12-25 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102986', 'tblTempUsageDetail_20' ) end [2024-12-25 23:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:49:21] Production.INFO: ==16505== Releasing lock... [2024-12-25 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:49:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:50:05 [end_date_ymd] => 2024-12-25 23:50:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:50:05' and `end` < '2024-12-25 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-25 23:50:18] Production.INFO: count ==1777 [2024-12-25 23:50:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:50:05 - End Time 2024-12-25 23:50:05 [2024-12-25 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102992', 'tblTempUsageDetail_20' ) start [2024-12-25 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102992', 'tblTempUsageDetail_20' ) end [2024-12-25 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102992', 'tblTempVendorCDR_20' ) start [2024-12-25 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102992', 'tblTempVendorCDR_20' ) end [2024-12-25 23:50:18] Production.INFO: ProcessCDR(1,14102992,1,1,2) [2024-12-25 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102992', 'tblTempUsageDetail_20' ) start [2024-12-25 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102992', 'tblTempUsageDetail_20' ) end [2024-12-25 23:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:50:21] Production.INFO: ==16590== Releasing lock... [2024-12-25 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:50:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:51:05 [end_date_ymd] => 2024-12-25 23:51:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:51:05' and `end` < '2024-12-25 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-25 23:51:17] Production.INFO: count ==1765 [2024-12-25 23:51:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:51:05 - End Time 2024-12-25 23:51:05 [2024-12-25 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102997', 'tblTempUsageDetail_20' ) start [2024-12-25 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14102997', 'tblTempUsageDetail_20' ) end [2024-12-25 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102997', 'tblTempVendorCDR_20' ) start [2024-12-25 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14102997', 'tblTempVendorCDR_20' ) end [2024-12-25 23:51:18] Production.INFO: ProcessCDR(1,14102997,1,1,2) [2024-12-25 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14102997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14102997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14102997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14102997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102997', 'tblTempUsageDetail_20' ) start [2024-12-25 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14102997', 'tblTempUsageDetail_20' ) end [2024-12-25 23:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:51:21] Production.INFO: ==16674== Releasing lock... [2024-12-25 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:51:21] Production.INFO: 42 MB #Memory Used# [2024-12-25 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:52:05 [end_date_ymd] => 2024-12-25 23:52:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:52:05' and `end` < '2024-12-25 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-25 23:52:18] Production.INFO: count ==1759 [2024-12-25 23:52:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:52:05 - End Time 2024-12-25 23:52:05 [2024-12-25 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103002', 'tblTempUsageDetail_20' ) start [2024-12-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103002', 'tblTempUsageDetail_20' ) end [2024-12-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103002', 'tblTempVendorCDR_20' ) start [2024-12-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103002', 'tblTempVendorCDR_20' ) end [2024-12-25 23:52:18] Production.INFO: ProcessCDR(1,14103002,1,1,2) [2024-12-25 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103002', 'tblTempUsageDetail_20' ) start [2024-12-25 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103002', 'tblTempUsageDetail_20' ) end [2024-12-25 23:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:52:22] Production.INFO: ==16791== Releasing lock... [2024-12-25 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:52:22] Production.INFO: 42 MB #Memory Used# [2024-12-25 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:53:05 [end_date_ymd] => 2024-12-25 23:53:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:53:05' and `end` < '2024-12-25 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-25 23:53:18] Production.INFO: count ==1748 [2024-12-25 23:53:19] Production.ERROR: pbx CDR StartTime 2024-12-25 20:53:05 - End Time 2024-12-25 23:53:05 [2024-12-25 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103007', 'tblTempUsageDetail_20' ) start [2024-12-25 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103007', 'tblTempUsageDetail_20' ) end [2024-12-25 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103007', 'tblTempVendorCDR_20' ) start [2024-12-25 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103007', 'tblTempVendorCDR_20' ) end [2024-12-25 23:53:19] Production.INFO: ProcessCDR(1,14103007,1,1,2) [2024-12-25 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103007', 'tblTempUsageDetail_20' ) start [2024-12-25 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103007', 'tblTempUsageDetail_20' ) end [2024-12-25 23:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:53:22] Production.INFO: ==16871== Releasing lock... [2024-12-25 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:53:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 23:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:54:04 [end_date_ymd] => 2024-12-25 23:54:04 [RateCDR] => 1 ) [2024-12-25 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-25 20:54:04' and `end` < '2024-12-25 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-25 23:54:16] Production.INFO: count ==1749 [2024-12-25 23:54:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:54:04 - End Time 2024-12-25 23:54:04 [2024-12-25 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103012', 'tblTempUsageDetail_20' ) start [2024-12-25 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103012', 'tblTempUsageDetail_20' ) end [2024-12-25 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103012', 'tblTempVendorCDR_20' ) start [2024-12-25 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103012', 'tblTempVendorCDR_20' ) end [2024-12-25 23:54:17] Production.INFO: ProcessCDR(1,14103012,1,1,2) [2024-12-25 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103012', 'tblTempUsageDetail_20' ) start [2024-12-25 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103012', 'tblTempUsageDetail_20' ) end [2024-12-25 23:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:54:20] Production.INFO: ==16959== Releasing lock... [2024-12-25 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:54:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:55:04 [end_date_ymd] => 2024-12-25 23:55:04 [RateCDR] => 1 ) [2024-12-25 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:55:04' and `end` < '2024-12-25 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-25 23:55:17] Production.INFO: count ==1741 [2024-12-25 23:55:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:55:04 - End Time 2024-12-25 23:55:04 [2024-12-25 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103017', 'tblTempUsageDetail_20' ) start [2024-12-25 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103017', 'tblTempUsageDetail_20' ) end [2024-12-25 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103017', 'tblTempVendorCDR_20' ) start [2024-12-25 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103017', 'tblTempVendorCDR_20' ) end [2024-12-25 23:55:17] Production.INFO: ProcessCDR(1,14103017,1,1,2) [2024-12-25 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103017', 'tblTempUsageDetail_20' ) start [2024-12-25 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103017', 'tblTempUsageDetail_20' ) end [2024-12-25 23:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:55:20] Production.INFO: ==17039== Releasing lock... [2024-12-25 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:55:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-25 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:56:05 [end_date_ymd] => 2024-12-25 23:56:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:56:05' and `end` < '2024-12-25 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:56:18] Production.INFO: count ==1740 [2024-12-25 23:56:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:56:05 - End Time 2024-12-25 23:56:05 [2024-12-25 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103022', 'tblTempUsageDetail_20' ) start [2024-12-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103022', 'tblTempUsageDetail_20' ) end [2024-12-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103022', 'tblTempVendorCDR_20' ) start [2024-12-25 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103022', 'tblTempVendorCDR_20' ) end [2024-12-25 23:56:19] Production.INFO: ProcessCDR(1,14103022,1,1,2) [2024-12-25 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103022', 'tblTempUsageDetail_20' ) start [2024-12-25 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103022', 'tblTempUsageDetail_20' ) end [2024-12-25 23:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:56:21] Production.INFO: ==17116== Releasing lock... [2024-12-25 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:56:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-25 23:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:57:04 [end_date_ymd] => 2024-12-25 23:57:04 [RateCDR] => 1 ) [2024-12-25 23: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-25 20:57:04' and `end` < '2024-12-25 23: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-25 23:57:17] Production.INFO: count ==1737 [2024-12-25 23:57:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:57:04 - End Time 2024-12-25 23:57:04 [2024-12-25 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103027', 'tblTempUsageDetail_20' ) start [2024-12-25 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103027', 'tblTempUsageDetail_20' ) end [2024-12-25 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103027', 'tblTempVendorCDR_20' ) start [2024-12-25 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103027', 'tblTempVendorCDR_20' ) end [2024-12-25 23:57:17] Production.INFO: ProcessCDR(1,14103027,1,1,2) [2024-12-25 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103027', 'tblTempUsageDetail_20' ) start [2024-12-25 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103027', 'tblTempUsageDetail_20' ) end [2024-12-25 23:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:57:20] Production.INFO: ==17195== Releasing lock... [2024-12-25 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:57:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-25 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:58:05 [end_date_ymd] => 2024-12-25 23:58:05 [RateCDR] => 1 ) [2024-12-25 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-25 20:58:05' and `end` < '2024-12-25 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-25 23:58:17] Production.INFO: count ==1734 [2024-12-25 23:58:18] Production.ERROR: pbx CDR StartTime 2024-12-25 20:58:05 - End Time 2024-12-25 23:58:05 [2024-12-25 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103032', 'tblTempUsageDetail_20' ) start [2024-12-25 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103032', 'tblTempUsageDetail_20' ) end [2024-12-25 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103032', 'tblTempVendorCDR_20' ) start [2024-12-25 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103032', 'tblTempVendorCDR_20' ) end [2024-12-25 23:58:18] Production.INFO: ProcessCDR(1,14103032,1,1,2) [2024-12-25 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103032', 'tblTempUsageDetail_20' ) start [2024-12-25 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103032', 'tblTempUsageDetail_20' ) end [2024-12-25 23:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:58:21] Production.INFO: ==17274== Releasing lock... [2024-12-25 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:58:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-25 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-25 20:59:04 [end_date_ymd] => 2024-12-25 23:59:04 [RateCDR] => 1 ) [2024-12-25 23:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-25 20:59:04' and `end` < '2024-12-25 23:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-25 23:59:17] Production.INFO: count ==1730 [2024-12-25 23:59:17] Production.ERROR: pbx CDR StartTime 2024-12-25 20:59:04 - End Time 2024-12-25 23:59:04 [2024-12-25 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-25 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103036', 'tblTempUsageDetail_20' ) start [2024-12-25 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14103036', 'tblTempUsageDetail_20' ) end [2024-12-25 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103036', 'tblTempVendorCDR_20' ) start [2024-12-25 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14103036', 'tblTempVendorCDR_20' ) end [2024-12-25 23:59:17] Production.INFO: ProcessCDR(1,14103036,1,1,2) [2024-12-25 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14103036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14103036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-25 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14103036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14103036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-25 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103036', 'tblTempUsageDetail_20' ) start [2024-12-25 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14103036', 'tblTempUsageDetail_20' ) end [2024-12-25 23:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-25 23:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-25 23:59:20] Production.INFO: ==17354== Releasing lock... [2024-12-25 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-25 23:59:20] Production.INFO: 41.5 MB #Memory Used#